|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.imr.ImRPOAInfo
This class stores information about a POA. It also provides methods for reactivation, conversion, and for waiting for reactivation.
Field Summary | |
protected boolean |
active
|
protected java.lang.String |
host
|
protected java.lang.String |
name
|
protected int |
port
|
protected ImRServerInfo |
server
|
protected static long |
timeout
|
Constructor Summary | |
ImRPOAInfo(java.lang.String name,
java.lang.String host,
int port,
ImRServerInfo server)
The constructor of this class. |
Method Summary | |
boolean |
awaitActivation()
This method blocks until the POA is reactivated, or the timeout is exceeded. |
void |
reactivate(java.lang.String host,
int port)
Reactivates this POA, i.e. sets it to active and unblocks any waiting threads. |
POAInfo |
toPOAInfo()
"Converts" this Object to an instance of the POAInfo class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int port
protected ImRServerInfo server
protected java.lang.String host
protected java.lang.String name
protected boolean active
protected static long timeout
Constructor Detail |
public ImRPOAInfo(java.lang.String name, java.lang.String host, int port, ImRServerInfo server) throws IllegalPOAName
name
- the POAs name.host
- the POAs host.port
- the port the POA listens on.server
- the server the POA is associated with.
IllegalPOAName
- thrown when name
is
null
or of length zero.Method Detail |
public POAInfo toPOAInfo()
public void reactivate(java.lang.String host, int port)
host
- the POAs new host.port
- the POAs new port.public boolean awaitActivation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |