org.jacorb.imr
Class ImRPOAInfo
java.lang.Object
org.jacorb.imr.ImRPOAInfo
- java.io.Serializable
public class ImRPOAInfo
extends java.lang.Object
implements java.io.Serializable
This class stores information about a POA. It also provides methods
for reactivation, conversion, and for waiting for reactivation.
Version:
- Nicolas Noffke
- Serialized Form
boolean | awaitActivation() - This method blocks until the POA is reactivated, or the
timeout is exceeded.
|
void | reactivate(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.
|
active
protected boolean active
host
protected String host
name
protected String name
timeout
protected long timeout
ImRPOAInfo
public ImRPOAInfo(String name,
String host,
int port,
ImRServerInfo server,
long timeout)
throws IllegalPOAName
The constructor of this class.
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.
awaitActivation
public boolean awaitActivation()
This method blocks until the POA is reactivated, or the
timeout is exceeded.
- false, if the timeout has been exceeded, true otherwise.
reactivate
public void reactivate(String host,
int port)
Reactivates this POA, i.e. sets it to active and unblocks any
waiting threads.
host
- the POAs new host.port
- the POAs new port.
toPOAInfo
public POAInfo toPOAInfo()
"Converts" this Object to an instance of the POAInfo class.
- a POAInfo object.