org.jacorb.imr
public class ImplementationRepositoryImpl extends ImplementationRepositoryPOA
Constructor Summary | |
---|---|
ImplementationRepositoryImpl(ORB orb)
The constructor.
|
Method Summary | |
---|---|
void | configure(Configuration myConfiguration) |
void | edit_server(String name, String command, String host)
Updates the server with a new command and host. |
String | getIORFile() |
ImRInfo | get_imr_info()
Get host and port (wrapped inside an ImRInfo object) of this repository. |
ServerInfo | get_server_info(String server)
Get the ServerInfo object of a specific server.
|
void | hold_server(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(String[] args)
The main method. |
void | register_host(HostInfo host)
Register a new host with a server startup daemon. |
void | register_poa(String name, String server, String host, int port)
This method registers a POA. |
void | register_server(String name, String command, String host)
Register a logical server. |
void | release_server(String name)
Release a server from state "holding".
|
void | save_server_table()
Save the server table to a backup file. |
void | set_server_down(String server)
This method sets a server down, i.e. not.active. |
void | shutdown(boolean wait)
Shut the repository down orderly, i.e. with saving of the server table.
|
void | start_server(String name)
Start a server.
|
void | unregister_host(String name)
Remove a host from the servertable. |
void | unregister_server(String name)
Remove a logical server from the server table. |
static void | usage()
Prints the usage screen and exits. |
Parameters: name the servers name. command the new startup command for this server. host the new host.
Throws: UnknownServerName a server with name
has not been registered.
Returns: the ImRInfo object of this repository.
Parameters: server the servers name.
Returns: the ServerInfo object of the server with name server
Throws: UnknownServerName the server server
has not been registered.
Parameters: name the servers name.
Throws: org.jacorb.imr.UnknownServerName a server with name
has not been registered.
Returns: an array containing all known hosts.
Returns: an array containing all registered servers.
Parameters: host a HostInfo object containing the hosts name and a reference to its ServerStartupDaemon object.
Throws: org.jacorb.imr.RegistrationPackage.IllegalHostName name
is not valid. org.jacorb.imr.RegistrationPackage.InvalidSSDRef It was impossible to connect
to the daemon.
Parameters: name the POAs name. server the logical server name of the server the running in. host the POAs host. port the POas port.
Throws: 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.
Parameters: 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.
Throws: org.jacorb.imr.AdminPackage.IllegalServerName the servers name is not valid. org.jacorb.imr.AdminPackage.DuplicateServerName a server with name
has already been registered.
Parameters: name the servers name.
Throws: org.jacorb.imr.UnknownServerName a server with name
has not been registered.
Throws: org.jacorb.imr.AdminPackage.FileOpFailed something went wrong.
Parameters: server the servers name.
Throws: org.jacorb.imr.UnknownServerName No server with name
server
has been registered.
Parameters: wait wait_for_completion (from ORB.shutdown()). If false, then the ORB is forced down, ignoring any open connection.
Parameters: name the servers name.
Throws: org.jacorb.imr.UnknownServerName a server with name
has not been registered.
Parameters: name the hosts name.
Throws: UnknownHostName no host with that name known.
Parameters: name the servers name.
Throws: org.jacorb.imr.UnknownServerName a server with name
has not been registered.