org.jacorb.imr
Class ServerStartupDaemonImpl

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended byorg.jacorb.imr.ServerStartupDaemonPOA
          extended byorg.jacorb.imr.ServerStartupDaemonImpl
All Implemented Interfaces:
InvokeHandler, ServerStartupDaemonOperations

public class ServerStartupDaemonImpl
extends ServerStartupDaemonPOA


Constructor Summary
ServerStartupDaemonImpl()
          The constructor.
 
Method Summary
 int get_system_load()
          NOT IMPLEMENTED, but currently used for "pinging" purposes.
static void main(java.lang.String[] args)
          main method.
 void start_server(java.lang.String command)
          This method starts a server on this host as specified by 'command'.
 
Methods inherited from class org.jacorb.imr.ServerStartupDaemonPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStartupDaemonImpl

public ServerStartupDaemonImpl()
                        throws java.lang.Exception
The constructor. It registers this daemon at the repository.

Throws:
java.lang.Exception - any exception that is thrown inside is propagated upwards.
Method Detail

get_system_load

public int get_system_load()
NOT IMPLEMENTED, but currently used for "pinging" purposes.

Returns:
0 always

start_server

public void start_server(java.lang.String command)
                  throws ServerStartupFailed
This method starts a server on this host as specified by 'command'.

Parameters:
command - The server startup command, i.e. the servers class name and parameters for its main method. The interpreter is inserted automatically.
Throws:
org.jacorb.imr.ServerStartupDaemonPackage.ServerStartupFailed - Runtime.exec failed to execute the command.
ServerStartupFailed

main

public static void main(java.lang.String[] args)
main method. Creates a new ServerStartupDaemonImpl instance and runs the orb.