Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes
javax.jmdns.impl.DNSStatefulObject.DefaultImplementation Class Reference
Inheritance diagram for javax.jmdns.impl.DNSStatefulObject.DefaultImplementation:
Inheritance graph
[legend]

List of all members.

Public Member Functions

boolean advanceState (DNSTask task)
void associateWithTask (DNSTask task, DNSState state)
boolean cancelState ()
boolean closeState ()
 DefaultImplementation ()
JmDNSImpl getDns ()
boolean isAnnounced ()
boolean isAnnouncing ()
boolean isAssociatedWithTask (DNSTask task, DNSState state)
boolean isCanceled ()
boolean isCanceling ()
boolean isClosed ()
boolean isClosing ()
boolean isProbing ()
boolean recoverState ()
void removeAssociationWithTask (DNSTask task)
boolean revertState ()
String toString ()
boolean waitForAnnounced (long timeout)
boolean waitForCanceled (long timeout)

Protected Member Functions

void setDns (JmDNSImpl dns)
void setState (DNSState state)
void setTask (DNSTask task)

Protected Attributes

volatile DNSState _state
volatile DNSTask _task

Private Member Functions

boolean willCancel ()
boolean willClose ()

Private Attributes

final DNSStatefulObjectSemaphore _announcing
final DNSStatefulObjectSemaphore _canceling
volatile JmDNSImpl _dns

Static Private Attributes

static Logger logger = Logger.getLogger(DefaultImplementation.class.getName())
static final long serialVersionUID = -3264781576883412227L

Detailed Description

Definition at line 104 of file DNSStatefulObject.java.


Constructor & Destructor Documentation

Definition at line 119 of file DNSStatefulObject.java.


Member Function Documentation

Sets the state and notifies all objects that wait on the ServiceInfo.

Parameters:
taskassociated task
Returns:
true</code if the state was changed by this thread, false otherwise.
See also:
DNSState::advance()

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 216 of file DNSStatefulObject.java.

Sets the task associated with this Object.

Parameters:
taskassociated task
statestate of the task

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 144 of file DNSStatefulObject.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 257 of file DNSStatefulObject.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 278 of file DNSStatefulObject.java.

Returns the DNS associated with this object.

Returns:
DNS resolver

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 132 of file DNSStatefulObject.java.

Returns true, if this is an announced state.

Returns:
true if announced state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 331 of file DNSStatefulObject.java.

Returns true, if this is an announcing state.

Returns:
true if announcing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 323 of file DNSStatefulObject.java.

Checks if this object is associated with the task and in the same state.

Parameters:
taskassociated task
statestate of the task
Returns:
true is the task is associated with this object, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 178 of file DNSStatefulObject.java.

Returns true, if this is a canceled state.

Returns:
true if canceled state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 347 of file DNSStatefulObject.java.

Returns true, if this is a canceling state.

Returns:
true if canceling state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 339 of file DNSStatefulObject.java.

Returns true, if this is a closed state.

Returns:
true if closed state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 363 of file DNSStatefulObject.java.

Returns true, if this is a closing state.

Returns:
true if closing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 355 of file DNSStatefulObject.java.

Returns true, if this is a probing state.

Returns:
true if probing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 315 of file DNSStatefulObject.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 299 of file DNSStatefulObject.java.

Remove the association of the task with this Object.

Parameters:
taskassociated task

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 161 of file DNSStatefulObject.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.
See also:
DNSState::revert()

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 237 of file DNSStatefulObject.java.

Reimplemented in javax.jmdns.impl.ServiceInfoImpl.ServiceInfoState.

Definition at line 136 of file DNSStatefulObject.java.

Parameters:
statethe state to set

Definition at line 195 of file DNSStatefulObject.java.

Reimplemented in javax.jmdns.impl.ServiceInfoImpl.ServiceInfoState.

Definition at line 187 of file DNSStatefulObject.java.

Definition at line 411 of file DNSStatefulObject.java.

Waits for the object to be announced.

Parameters:
timeoutthe maximum time to wait in milliseconds.
Returns:
true if the object is announced, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 379 of file DNSStatefulObject.java.

Waits for the object to be canceled.

Parameters:
timeoutthe maximum time to wait in milliseconds.
Returns:
true if the object is canceled, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 397 of file DNSStatefulObject.java.

Definition at line 367 of file DNSStatefulObject.java.

Definition at line 371 of file DNSStatefulObject.java.


Member Data Documentation

Definition at line 115 of file DNSStatefulObject.java.

Definition at line 117 of file DNSStatefulObject.java.

Definition at line 109 of file DNSStatefulObject.java.

Definition at line 113 of file DNSStatefulObject.java.

Definition at line 111 of file DNSStatefulObject.java.

Definition at line 105 of file DNSStatefulObject.java.

final long javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.serialVersionUID = -3264781576883412227L [static, private]

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