|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.imr.ImRServerInfo
This class contains the information about a logical server. It has methods for managing the associated POAs, holding and releasing the server, and, for the "client side", a method that blocks until the server is released.
Field Summary | |
protected boolean |
active
|
protected java.lang.String |
command
|
protected boolean |
holding
|
protected java.lang.String |
host
|
protected java.lang.String |
name
|
protected boolean |
restarting
|
Constructor Summary | |
ImRServerInfo(java.lang.String name,
java.lang.String host,
java.lang.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 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. 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String command
protected boolean holding
protected java.lang.String host
protected java.lang.String name
protected boolean active
protected boolean restarting
Constructor Detail |
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.Method Detail |
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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |