Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Package Attributes | Private Attributes | Static Private Attributes
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

Parameters:
jmDNSImpl
ttl

Definition at line 58 of file DNSStateTask.java.


Member Function Documentation

Definition at line 159 of file DNSStateTask.java.

abstract void javax.jmdns.impl.tasks.state.DNSStateTask.advanceTask ( ) [protected, pure virtual]

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

Parameters:
statetarget 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]

Definition at line 41 of file DNSStateTask.java.

Returns:
the taskState

Definition at line 176 of file DNSStateTask.java.

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]

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

Definition at line 88 of file DNSStateTask.java.

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:
taskStatethe 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:


zeroconf_jmdns_suite
Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27