|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.AgentId
An AgentId
allows for uniquely identifying and localizing
an agent throughout the distributed system. It defines variable members
describing the identifier and all needed function members to manipulate
the structure (creation, serialization, etc).
The two requirements are then:
AgentIdStamp
,
Serialized FormField Summary | |
static int |
AdminIdStamp
Reserved stamp for admin AgentId . |
static int |
ControlTopicStamp
Reserved stamp for JMS topic AgentId in charge ofsending control events. |
static int |
FactoryIdStamp
Reserved stamp for factory AgentId . |
static int |
FileTransfertStamp
Reserved stamp for fileTransfert service AgentId . |
static int |
JndiServiceStamp
Reserved stamp for JNDI service AgentId . |
static int |
JoramAdminPxStamp
Reserved stamp for JORAM administration proxy AgentId . |
static int |
JoramAdminStamp
Reserved stamp for JORAM administration topic AgentId . |
static int |
LocalJndiServiceStamp
Reserved stamp for local JNDI service AgentId . |
static int |
MaxIdStamp
Maximum reserved stamp. |
static int |
MaxSystemIdStamp
Maximum reserved stamp for system services. |
static int |
MaxWKSIdStamp
Maximum reserved stamp for well known services. |
static int |
MinWKSIdStamp
Minimum reserved stamp for well known services. |
static int |
NameServiceStamp
Reserved stamp for name service AgentId . |
static AgentId |
nullId
null AgentId . |
static int |
NullIdStamp
Reserved stamp for NullId. |
static int |
SCAdminProxyStamp
Reserved stamp for SCAdmin proxy AgentId . |
static int |
SchedulerServiceStamp
Reserved stamp for scheduler service AgentId . |
Constructor Summary | |
AgentId(short from,
short to,
int stamp)
Allocates a new AgentId object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Indicates whether some other agent id. |
static AgentId |
factoryId(short sid)
Returns the AgentId for a remote factory agent. |
static AgentId |
fromString(java.lang.String str)
Parses the string argument as an AgentId . |
short |
getFrom()
|
int |
getStamp()
|
short |
getTo()
|
int |
hashCode()
Returns a hashcode for this AgentId object. |
boolean |
isNullId()
|
static AgentId |
localId(short sid)
|
java.lang.String |
toString()
Returns a string representation of this AgentId object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NullIdStamp
public static final int FactoryIdStamp
AgentId
.
public static final int AdminIdStamp
AgentId
.
public static final int MaxSystemIdStamp
public static int MinWKSIdStamp
public static int NameServiceStamp
AgentId
.
public static int SchedulerServiceStamp
AgentId
.
public static int FileTransfertStamp
AgentId
.
public static int JndiServiceStamp
AgentId
.
public static int LocalJndiServiceStamp
AgentId
.
public static int SCAdminProxyStamp
AgentId
.
public static int JoramAdminStamp
AgentId
.
public static int JoramAdminPxStamp
AgentId
.
public static int ControlTopicStamp
AgentId
in charge ofsending control events.
public static int MaxWKSIdStamp
public static int MaxIdStamp
public static final AgentId nullId
AgentId
.
Constructor Detail |
public AgentId(short from, short to, int stamp)
AgentId
object.
from
- The identification of the agent server hosting the
creating agent.to
- The identification of the agent server hosting the agent.stamp
- The stamp of agent.Method Detail |
public static final AgentId factoryId(short sid)
AgentId
for a remote factory agent.
sid
- remote server id.
AgentId
for a remote factory agent.public static final AgentId localId(short sid)
public final short getFrom()
public final short getTo()
public final int getStamp()
public static AgentId fromString(java.lang.String str)
AgentId
.
AgentId
object represented by the argument.public final java.lang.String toString()
AgentId
object.
public int hashCode()
AgentId
object.
int
value represented by the stamp field.public final boolean isNullId()
true
if this id is equals to NullId;
false
otherwise.public boolean equals(java.lang.Object obj)
true
if and only if obj is an AgentId
and refer to the same agent (from, to and stamp fields are equals).
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |