org.jacorb.imr

Class ServerStartupDaemonImpl

Implemented Interfaces:
InvokeHandler, ServerStartupDaemonOperations

public class ServerStartupDaemonImpl
extends ServerStartupDaemonPOA

This class is used to start servers on (from the view of the repository) remote hosts. It has a thread for forwarding output of started servers.

Author:
Nicolas Noffke $Id: ServerStartupDaemonImpl.java,v 1.14 2004/05/06 12:39:59 nicolas Exp $

Constructor Summary

ServerStartupDaemonImpl(ORB orb)
The constructor.

Method Summary

void
configure(Configuration myConfiguration)
int
get_system_load()
NOT IMPLEMENTED, but currently used for "pinging" purposes.
static void
main(String[] args)
main method.
void
start_server(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

_all_interfaces, _default_POA, _get_delegate, _get_interface, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object

Constructor Details

ServerStartupDaemonImpl

public ServerStartupDaemonImpl(ORB orb)
The constructor. It registers this daemon at the repository.

Method Details

configure

public void configure(Configuration myConfiguration)
            throws ConfigurationException


get_system_load

public int get_system_load()
NOT IMPLEMENTED, but currently used for "pinging" purposes.
Specified by:
get_system_load in interface ServerStartupDaemonOperations

Returns:
0 always


main

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


start_server

public void start_server(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.