public class ImRServerInfo
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected java.lang.String |
command |
protected boolean |
holding |
protected java.lang.String |
host |
protected java.lang.String |
name |
protected boolean |
restarting |
static long |
serialVersionUID |
| Constructor and Description |
|---|
ImRServerInfo(java.lang.String name,
java.lang.String host,
java.lang.String command)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPOA(ImRPOAInfo poa)
Adds a POA to this server.
|
void |
awaitRelease()
This method blocks until the server is released, i.e.
|
protected java.lang.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.
|
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. |
public static final long serialVersionUID
protected java.lang.String command
protected boolean holding
protected java.lang.String host
protected java.lang.String name
protected boolean active
protected boolean restarting
public ImRServerInfo(java.lang.String name,
java.lang.String host,
java.lang.String command)
throws IllegalServerName
name - the logical server namehost - 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).IllegalServerName - thrown when name is
null or of length zero.public ServerInfo toServerInfo()
ServerInfo instance containing
the same info as this object.ServerInfo object.public void addPOA(ImRPOAInfo poa)
poa - the POA to add.protected java.lang.String[] getPOANames()
public void setDown()
public void awaitRelease()
public void release()
public boolean shouldBeRestarted()
public void setNotRestarting()