$search

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

boolean javax::jmdns::impl::DNSStatefulObject::advanceState ( DNSTask  task  ) 

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

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

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

void javax::jmdns::impl::DNSStatefulObject::associateWithTask ( DNSTask  task,
DNSState  state 
)

Sets the task associated with this Object.

Parameters:
task associated task
state state of the task

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

boolean javax::jmdns::impl::DNSStatefulObject::cancelState (  ) 

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::DNSStatefulObject::DefaultImplementation, javax::jmdns::impl::HostInfo, javax::jmdns::impl::JmDNSImpl, and javax::jmdns::impl::ServiceInfoImpl.

boolean javax::jmdns::impl::DNSStatefulObject::closeState (  ) 

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::DNSStatefulObject::DefaultImplementation, javax::jmdns::impl::HostInfo, javax::jmdns::impl::JmDNSImpl, and javax::jmdns::impl::ServiceInfoImpl.

JmDNSImpl javax::jmdns::impl::DNSStatefulObject::getDns (  ) 
boolean javax::jmdns::impl::DNSStatefulObject::isAnnounced (  ) 

Returns true, if this is an announced state.

Returns:
true if announced state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::isAnnouncing (  ) 

Returns true, if this is an announcing state.

Returns:
true if announcing state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::isAssociatedWithTask ( DNSTask  task,
DNSState  state 
)

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

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

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

boolean javax::jmdns::impl::DNSStatefulObject::isCanceled (  ) 

Returns true, if this is a canceled state.

Returns:
true if canceled state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::isCanceling (  ) 

Returns true, if this is a canceling state.

Returns:
true if canceling state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::isClosed (  ) 

Returns true, if this is a closed state.

Returns:
true if closed state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::isClosing (  ) 

Returns true, if this is a closing state.

Returns:
true if closing state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::isProbing (  ) 

Returns true, if this is a probing state.

Returns:
true if probing state, false otherwise

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

boolean javax::jmdns::impl::DNSStatefulObject::recoverState (  ) 

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::DNSStatefulObject::DefaultImplementation, javax::jmdns::impl::HostInfo, javax::jmdns::impl::JmDNSImpl, and javax::jmdns::impl::ServiceInfoImpl.

void javax::jmdns::impl::DNSStatefulObject::removeAssociationWithTask ( DNSTask  task  ) 

Remove the association of the task with this Object.

Parameters:
task associated task

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

boolean javax::jmdns::impl::DNSStatefulObject::revertState (  ) 

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::DNSStatefulObject::DefaultImplementation, javax::jmdns::impl::HostInfo, javax::jmdns::impl::JmDNSImpl, and javax::jmdns::impl::ServiceInfoImpl.

boolean javax::jmdns::impl::DNSStatefulObject::waitForAnnounced ( long  timeout  ) 

Waits for the object to be announced.

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

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

boolean javax::jmdns::impl::DNSStatefulObject::waitForCanceled ( long  timeout  ) 

Waits for the object to be canceled.

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

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


The documentation for this interface 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:34 2013