
| 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) | 
Sets of methods to manage the state machine.
 Implementation note: This interface is accessed from multiple threads. The implementation must be thread safe.
Definition at line 22 of file DNSStatefulObject.java.
| boolean javax.jmdns.impl.DNSStatefulObject.advanceState | ( | DNSTask | task | ) | 
Sets the state and notifies all objects that wait on the ServiceInfo.
| task | associated task | 
true</code if the state was changed by this thread, false otherwise.  DNSState::advance() Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.
| void javax.jmdns.impl.DNSStatefulObject.associateWithTask | ( | DNSTask | task, | 
| DNSState | state | ||
| ) | 
Sets the task associated with this Object.
| task | associated task | 
| state | state of the task | 
Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.
| boolean javax.jmdns.impl.DNSStatefulObject.cancelState | ( | ) | 
Sets the state and notifies all objects that wait on the ServiceInfo.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.closeState | ( | ) | 
Sets the state and notifies all objects that wait on the ServiceInfo.
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.
Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.
| boolean javax.jmdns.impl.DNSStatefulObject.isAnnounced | ( | ) | 
Returns true, if this is an announced state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isAnnouncing | ( | ) | 
Returns true, if this is an announcing state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isAssociatedWithTask | ( | DNSTask | task, | 
| DNSState | state | ||
| ) | 
Checks if this object is associated with the task and in the same state.
| task | associated task | 
| state | state of the task | 
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isCanceled | ( | ) | 
Returns true, if this is a canceled state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isCanceling | ( | ) | 
Returns true, if this is a canceling state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isClosed | ( | ) | 
Returns true, if this is a closed state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isClosing | ( | ) | 
Returns true, if this is a closing state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.isProbing | ( | ) | 
Returns true, if this is a probing state.
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.
| boolean javax.jmdns.impl.DNSStatefulObject.recoverState | ( | ) | 
Sets the state and notifies all objects that wait on the ServiceInfo.
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.
| task | associated task | 
Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.
| boolean javax.jmdns.impl.DNSStatefulObject.revertState | ( | ) | 
Sets the state and notifies all objects that wait on the ServiceInfo.
true</code if the state was changed by this thread, false otherwise.  DNSState::revert() Implemented in javax.jmdns.impl.ServiceInfoImpl, javax.jmdns.impl.JmDNSImpl, javax.jmdns.impl.HostInfo, and javax.jmdns.impl.DNSStatefulObject.DefaultImplementation.
| boolean javax.jmdns.impl.DNSStatefulObject.waitForAnnounced | ( | long | timeout | ) | 
Waits for the object to be announced.
| timeout | the maximum time to wait in milliseconds. | 
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.
| boolean javax.jmdns.impl.DNSStatefulObject.waitForCanceled | ( | long | timeout | ) | 
Waits for the object to be canceled.
| timeout | the maximum time to wait in milliseconds. | 
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.