|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectImplementationRepositoryPOA
org.jacorb.imr.ImplementationRepositoryImpl
public class ImplementationRepositoryImpl
This is the main class of the JacORB implementation repository. It keeps track of the registered POAs with lifespan policy PERSISTENT and provides a way for migrating and restarting the POAS servers.
| Constructor Summary | |
|---|---|
ImplementationRepositoryImpl(org.omg.CORBA.ORB orb)
The constructor. |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration myConfiguration)
|
void |
edit_server(java.lang.String name,
java.lang.String command,
java.lang.String host)
Updates the server with a new command and host. |
ImRInfo |
get_imr_info()
Get host and port (wrapped inside an ImRInfo object) of this repository. |
ServerInfo |
get_server_info(java.lang.String server)
Get the ServerInfo object of a specific server. |
java.lang.String |
getIORFile()
|
void |
hold_server(java.lang.String name)
Hold a server. |
HostInfo[] |
list_hosts()
List all hosts currently registered with this repository. |
ServerInfo[] |
list_servers()
List all registered server. |
static void |
main(java.lang.String[] args)
The main method. |
void |
register_host(HostInfo host)
Register a new host with a server startup daemon. |
void |
register_poa(java.lang.String name,
java.lang.String server,
java.lang.String host,
int port)
This method registers a POA. |
void |
register_server(java.lang.String name,
java.lang.String command,
java.lang.String host)
Register a logical server. |
void |
release_server(java.lang.String name)
Release a server from state "holding". |
void |
save_server_table()
Save the server table to a backup file. |
void |
set_server_down(java.lang.String server)
This method sets a server down, i.e. |
void |
shutdown(boolean wait)
Shut the repository down orderly, i.e. |
void |
start_server(java.lang.String name)
Start a server. |
void |
unregister_host(java.lang.String name)
Remove a host from the servertable. |
void |
unregister_server(java.lang.String name)
Remove a logical server from the server table. |
static void |
usage()
Prints the usage screen and exits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImplementationRepositoryImpl(org.omg.CORBA.ORB orb)
| Method Detail |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration myConfiguration)
throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic java.lang.String getIORFile()
public void set_server_down(java.lang.String server)
throws UnknownServerName
server - the servers name.
org.jacorb.imr.UnknownServerName - No server with name
server has been registered.
UnknownServerName
public void register_poa(java.lang.String name,
java.lang.String server,
java.lang.String host,
int port)
throws IllegalPOAName,
DuplicatePOAName,
UnknownServerName
name - the POAs name.server - the logical server name of the server the running in.host - the POAs host.port - the POas port.
org.jacorb.imr.RegistrationPackage.IllegalPOAName - the POAs name is not valid.
org.jacorb.imr.RegistrationPackage.DuplicatePOAName - an active POA with
name is currently registered.
org.jacorb.imr.UnknownServerName - The server has not been registered.
IllegalPOAName
DuplicatePOAName
UnknownServerName
public void register_host(HostInfo host)
throws IllegalHostName,
InvalidSSDRef
host - a HostInfo object containing the hosts name and a reference to its
ServerStartupDaemon object.
org.jacorb.imr.RegistrationPackage.IllegalHostName - name is not valid.
org.jacorb.imr.RegistrationPackage.InvalidSSDRef - It was impossible to connect
to the daemon.
IllegalHostName
InvalidSSDRefpublic ImRInfo get_imr_info()
public HostInfo[] list_hosts()
public ServerInfo[] list_servers()
public ServerInfo get_server_info(java.lang.String server)
throws UnknownServerName
server - the servers name.
server
UnknownServerName - the server server has not been registered.
public void register_server(java.lang.String name,
java.lang.String command,
java.lang.String host)
throws IllegalServerName,
DuplicateServerName
name - the servers name.command - the startup command for this server if it should be restarted
on demand. Has to be empty (NOT null) if the server should not be restarted.host - the host on which the server should be restarted. Should not
be null, but is ignored if no startup command is specified.
org.jacorb.imr.AdminPackage.IllegalServerName - the servers name is not valid.
org.jacorb.imr.AdminPackage.DuplicateServerName - a server with name
has already been registered.
IllegalServerName
DuplicateServerName
public void unregister_server(java.lang.String name)
throws UnknownServerName
name - the servers name.
org.jacorb.imr.UnknownServerName - a server with name has not been registered.
UnknownServerName
public void edit_server(java.lang.String name,
java.lang.String command,
java.lang.String host)
throws UnknownServerName
name - the servers name.command - the new startup command for this server.host - the new host.
UnknownServerName - a server with name
has not been registered.
public void hold_server(java.lang.String name)
throws UnknownServerName
name - the servers name.
org.jacorb.imr.UnknownServerName - a server with name has not been registered.
UnknownServerName
public void release_server(java.lang.String name)
throws UnknownServerName
name - the servers name.
org.jacorb.imr.UnknownServerName - a server with name has not been registered.
UnknownServerName
public void start_server(java.lang.String name)
throws UnknownServerName,
ServerStartupFailed
name - the servers name.
org.jacorb.imr.UnknownServerName - a server with name
has not been registered.
UnknownServerName
ServerStartupFailed
public void save_server_table()
throws FileOpFailed
org.jacorb.imr.AdminPackage.FileOpFailed - something went wrong.
FileOpFailedpublic void shutdown(boolean wait)
wait - wait_for_completion (from ORB.shutdown()). If false, then the ORB
is forced down, ignoring any open connection.
public void unregister_host(java.lang.String name)
throws UnknownHostName
name - the hosts name.
UnknownHostName - no host with that name known.public static void usage()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||