|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.AdminEventListenerId
The type of listener of an event, can be a Role or a couple <@ip,port>
Field Summary | |
java.net.InetAddress |
address
the InetAdress of the listener (if DISTANT_LISTENER) |
static short |
DISTANT_LISTENER
|
AgentId |
id
the AgentId of the listener (if LOCAL_LISTENER) |
static short |
LOCAL_LISTENER
|
static short |
NULL_LISTENER
|
int |
port
the port number of the listener (if DISTANT_LISTENER) |
short |
type
the type of listener: AgentId or distant Agent (= @ip, port number) |
Constructor Summary | |
AdminEventListenerId(short type)
construct a listener (can be an AgentId or a couple <@ip, port number>) |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares two objects for equality. |
void |
setListener(AgentId id)
Sets the listener id. |
void |
setListener(java.net.InetAddress address,
int port)
Sets the listener address. |
java.lang.String |
toString()
Provides a string image for this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short NULL_LISTENER
public static final short DISTANT_LISTENER
public static final short LOCAL_LISTENER
public short type
public AgentId id
public java.net.InetAddress address
public int port
Constructor Detail |
public AdminEventListenerId(short type)
type
- DISTANT_LISTENER or LOCAL_LISTENERMethod Detail |
public void setListener(AgentId id) throws java.lang.Exception
DISTANT_LISTENER
, returns an
exception.
id
- the agent id of the listener
java.lang.Exception
- when type is not LOCAL_LISTENER
public void setListener(java.net.InetAddress address, int port) throws java.lang.Exception
LOCAL_LISTENER
, returns an
exception.
address
- the IP address of the distant listenerport
- the port number of the distant listener
java.lang.Exception
- when type is not DISTANT_LISTENER
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
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 |