$search

javax::jmdns::impl::tasks::state::DNSStateTask Class Reference

Inheritance diagram for javax::jmdns::impl::tasks::state::DNSStateTask:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DNSStateTask (JmDNSImpl jmDNSImpl, int ttl)
abstract String getTaskDescription ()
int getTTL ()
void run ()

Static Public Member Functions

static int defaultTTL ()
static void setDefaultTTL (int value)

Protected Member Functions

void advanceObjectsState (List< DNSStatefulObject > list)
abstract void advanceTask ()
void associate (DNSState state)
abstract DNSOutgoing buildOutgoingForDNS (DNSOutgoing out) throws IOException
abstract DNSOutgoing buildOutgoingForInfo (ServiceInfoImpl info, DNSOutgoing out) throws IOException
abstract boolean checkRunCondition ()
abstract DNSOutgoing createOugoing ()
DNSState getTaskState ()
abstract void recoverTask (Throwable e)
void removeAssociation ()
void setTaskState (DNSState taskState)

Static Package Attributes

static Logger logger1 = Logger.getLogger(DNSStateTask.class.getName())

Private Attributes

DNSState _taskState = null
final int _ttl

Static Private Attributes

static int _defaultTTL = DNSConstants.DNS_TTL

Detailed Description

This is the root class for all state tasks. These tasks work with objects that implements the javax.jmdns.impl.DNSStatefulObject interface and therefore participate in the state machine.

Author:
Pierre Frisch

Definition at line 24 of file DNSStateTask.java.


Constructor & Destructor Documentation

javax::jmdns::impl::tasks::state::DNSStateTask::DNSStateTask ( JmDNSImpl  jmDNSImpl,
int  ttl 
) [inline]
Parameters:
jmDNSImpl 
ttl 

Definition at line 58 of file DNSStateTask.java.


Member Function Documentation

void javax::jmdns::impl::tasks::state::DNSStateTask::advanceObjectsState ( List< DNSStatefulObject list  )  [inline, protected]

Definition at line 159 of file DNSStateTask.java.

abstract void javax::jmdns::impl::tasks::state::DNSStateTask::advanceTask (  )  [protected, pure virtual]
void javax::jmdns::impl::tasks::state::DNSStateTask::associate ( DNSState  state  )  [inline, protected]

Associate the DNS host and the service infos with this task if not already associated and in the same state.

Parameters:
state target state

Definition at line 76 of file DNSStateTask.java.

abstract DNSOutgoing javax::jmdns::impl::tasks::state::DNSStateTask::buildOutgoingForDNS ( DNSOutgoing  out  )  throws IOException [protected, pure virtual]
abstract DNSOutgoing javax::jmdns::impl::tasks::state::DNSStateTask::buildOutgoingForInfo ( ServiceInfoImpl  info,
DNSOutgoing  out 
) throws IOException [protected, pure virtual]
abstract boolean javax::jmdns::impl::tasks::state::DNSStateTask::checkRunCondition (  )  [protected, pure virtual]
abstract DNSOutgoing javax::jmdns::impl::tasks::state::DNSStateTask::createOugoing (  )  [protected, pure virtual]
static int javax::jmdns::impl::tasks::state::DNSStateTask::defaultTTL (  )  [inline, static]

Definition at line 41 of file DNSStateTask.java.

abstract String javax::jmdns::impl::tasks::state::DNSStateTask::getTaskDescription (  )  [pure virtual]
DNSState javax::jmdns::impl::tasks::state::DNSStateTask::getTaskState (  )  [inline, protected]
Returns:
the taskState

Definition at line 176 of file DNSStateTask.java.

int javax::jmdns::impl::tasks::state::DNSStateTask::getTTL (  )  [inline]
Returns:
the ttl

Definition at line 66 of file DNSStateTask.java.

abstract void javax::jmdns::impl::tasks::state::DNSStateTask::recoverTask ( Throwable  e  )  [protected, pure virtual]
void javax::jmdns::impl::tasks::state::DNSStateTask::removeAssociation (  )  [inline, protected]

Remove the DNS host and service info association with this task.

Definition at line 88 of file DNSStateTask.java.

void javax::jmdns::impl::tasks::state::DNSStateTask::run (  )  [inline]

Definition at line 101 of file DNSStateTask.java.

static void javax::jmdns::impl::tasks::state::DNSStateTask::setDefaultTTL ( int  value  )  [inline, static]

For testing only do not use in production.

Parameters:
value 

Definition at line 50 of file DNSStateTask.java.

void javax::jmdns::impl::tasks::state::DNSStateTask::setTaskState ( DNSState  taskState  )  [inline, protected]
Parameters:
taskState the taskState to set

Definition at line 184 of file DNSStateTask.java.


Member Data Documentation

Definition at line 32 of file DNSStateTask.java.

The state of the task.

Definition at line 37 of file DNSStateTask.java.

By setting a 0 ttl we effectively expire the record.

Definition at line 30 of file DNSStateTask.java.

Logger javax::jmdns::impl::tasks::state::DNSStateTask::logger1 = Logger.getLogger(DNSStateTask.class.getName()) [static, package]

Definition at line 25 of file DNSStateTask.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Wed Jan 16 12:20:36 2013