$search

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

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::advanceState ( DNSTask  task  )  [inline]

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

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 216 of file DNSStatefulObject.java.

void javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::associateWithTask ( DNSTask  task,
DNSState  state 
) [inline]

Sets the task associated with this Object.

Parameters:
task associated task
state state of the task

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 144 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::cancelState (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::closeState (  )  [inline]

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.

JmDNSImpl javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::getDns (  )  [inline]

Returns the DNS associated with this object.

Returns:
DNS resolver

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 132 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isAnnounced (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isAnnouncing (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isAssociatedWithTask ( DNSTask  task,
DNSState  state 
) [inline]

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.

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 178 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isCanceled (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isCanceling (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isClosed (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isClosing (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::isProbing (  )  [inline]

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.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::recoverState (  )  [inline]

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.

void javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::removeAssociationWithTask ( DNSTask  task  )  [inline]

Remove the association of the task with this Object.

Parameters:
task associated task

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 161 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::revertState (  )  [inline]

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.

void javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::setDns ( JmDNSImpl  dns  )  [inline, protected]
void javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::setState ( DNSState  state  )  [inline, protected]
Parameters:
state the state to set

Definition at line 195 of file DNSStatefulObject.java.

void javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::setTask ( DNSTask  task  )  [inline, protected]
String javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::toString (  )  [inline]

Definition at line 411 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::waitForAnnounced ( long  timeout  )  [inline]

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

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 379 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::waitForCanceled ( long  timeout  )  [inline]

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

Implements javax::jmdns::impl::DNSStatefulObject.

Definition at line 397 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::willCancel (  )  [inline, private]

Definition at line 367 of file DNSStatefulObject.java.

boolean javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::willClose (  )  [inline, private]

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.

Logger javax::jmdns::impl::DNSStatefulObject::DefaultImplementation::logger = Logger.getLogger(DefaultImplementation.class.getName()) [static, private]

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Wed Jan 16 12:20:34 2013