Classes | Public Member Functions
javax.jmdns.impl.DNSStatefulObject Interface Reference
Inheritance diagram for javax.jmdns.impl.DNSStatefulObject:
Inheritance graph
[legend]

List of all members.

Classes

class  DefaultImplementation
class  DNSStatefulObjectSemaphore

Public Member Functions

boolean advanceState (DNSTask task)
void associateWithTask (DNSTask task, DNSState state)
boolean cancelState ()
boolean closeState ()
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 ()
boolean waitForAnnounced (long timeout)
boolean waitForCanceled (long timeout)

Detailed Description

Sets of methods to manage the state machine.
Implementation note: This interface is accessed from multiple threads. The implementation must be thread safe.

Author:
Pierre Frisch

Definition at line 22 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()

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Sets the task associated with this Object.

Parameters:
taskassociated task
statestate of the task

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

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.

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

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.

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns the DNS associated with this object.

Returns:
DNS resolver

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is an announced state.

Returns:
true if announced state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is an announcing state.

Returns:
true if announcing state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

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.

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is a canceled state.

Returns:
true if canceled state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is a canceling state.

Returns:
true if canceling state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is a closed state.

Returns:
true if closed state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is a closing state.

Returns:
true if closing state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Returns true, if this is a probing state.

Returns:
true if probing state, false otherwise

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

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.

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Remove the association of the task with this Object.

Parameters:
taskassociated task

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

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()

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Waits for the object to be announced.

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

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.

Waits for the object to be canceled.

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

Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.


The documentation for this interface was generated from the following file:


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