org.jacorb.imr
public class ImRServerInfo extends Object implements Serializable
Version: $Id: ImRServerInfo.java,v 1.14 2006/07/14 11:41:38 alphonse.bendt Exp $
Field Summary | |
---|---|
protected boolean | active |
protected String | command |
protected boolean | holding |
protected String | host |
protected String | name |
protected boolean | restarting |
static long | serialVersionUID |
Constructor Summary | |
---|---|
ImRServerInfo(String name, String host, String command)
The Constructor. |
Method Summary | |
---|---|
void | addPOA(ImRPOAInfo poa)
Adds a POA to this server.
|
void | awaitRelease()
This method blocks until the server is released, i.e. set
to not holding. |
protected String[] | getPOANames()
Builds an array of of the names of the POAs associated with this server.
|
void | release()
Release the server and unblock all waiting threads. |
void | setDown()
Sets the server down, i.e. not active. |
void | setNotRestarting() |
boolean | shouldBeRestarted()
Tests if this server should be restarted. |
ServerInfo | toServerInfo()
"Converts" this Object to a ServerInfo instance containing
the same info as this object.
|
Parameters: name the logical server name host the name of the host on which the server should be restarted
(ignored when no startup command is specified). command the startup command for this server, passed to the
server startup daemon on host
(in case there is one active).
Throws: IllegalServerName thrown when name
is
null
or of length zero.
Parameters: poa the POA to add.
Returns: an array of POA names
Returns: true, if the server should be restarted by the calling thread.
ServerInfo
instance containing
the same info as this object.
Returns: a ServerInfo
object.