public class ImRServerInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected String |
command |
protected boolean |
holding |
protected String |
host |
protected String |
name |
protected boolean |
restarting |
static long |
serialVersionUID |
Constructor and Description |
---|
ImRServerInfo(String name,
String host,
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 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 String command
protected boolean holding
protected String host
protected String name
protected boolean active
protected boolean restarting
public ImRServerInfo(String name, String host, 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 String[] getPOANames()
public void setDown()
public void awaitRelease()
public void release()
public boolean shouldBeRestarted()
public void setNotRestarting()
Copyright © 2017 JacORB. All rights reserved.