com.neeve.daemon.er
Class DmnErLink

java.lang.Object
  extended by com.neeve.root.RootObject
      extended by com.neeve.daemon.er.DmnErEntity
          extended by com.neeve.daemon.er.DmnErLink

public abstract class DmnErLink
extends DmnErEntity

Entity object that represents a link to a daemon agent.

Threading:
This class is safe for concurrent access by multiple threads.

Method Summary
 DmnErAgent getAgent()
          Get the agent associated with this link.
 com.neeve.util.UtlAddressDescriptor getDescriptor()
          Get the link descriptor.
 int getThreadAffinity()
          Get the link's daemon thread affinity
 void setAgent(DmnErAgent agent)
          Set the agent associated with this link.
 void setThreadAffinity(int threadId)
          Set the link's daemon thread affinity.
 String toString()
          Get a string representation of this object.
 boolean wasAccepted()
          Get whether the link was accepted using an acceptor or connector.
 
Methods inherited from class com.neeve.root.RootObject
getChecked, getThreaded, getTracer, setChecked, setTracer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

wasAccepted

public final boolean wasAccepted()
Get whether the link was accepted using an acceptor or connector.

Returns:
A boolean value indicating whether the link was accepted using an acceptor or established using a connector.
Threading:
This method is safe for concurrent access by multiple threads.

getDescriptor

public final com.neeve.util.UtlAddressDescriptor getDescriptor()
Get the link descriptor.

Returns:
The link descriptor.

For accepted links, this method returns the acceptor descriptor. For links established using a connector, this method returns the connector descriptor.

Threading:
This method is safe for concurrent access by multiple threads.

setAgent

public final void setAgent(DmnErAgent agent)
Set the agent associated with this link.

Threading:
This method is safe for concurrent access by multiple threads.

getAgent

public final DmnErAgent getAgent()
Get the agent associated with this link.

Returns:
The agent.
Threading:
This method is safe for concurrent access by multiple threads.

setThreadAffinity

public final void setThreadAffinity(int threadId)
Set the link's daemon thread affinity.

Threading:
This method is safe for concurrent access by multiple threads.

getThreadAffinity

public final int getThreadAffinity()
Get the link's daemon thread affinity

Returns:
The thread that this link has affinity for.
Threading:
This method is safe for concurrent access by multiple threads.

toString

public String toString()
Get a string representation of this object.

Overrides:
toString in class Object


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.