org.jacorb.imr

Class ServerStartupDaemonImpl

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.18 2007/02/06 23:47:53 andre.spiegel Exp $

Constructor Summary
ServerStartupDaemonImpl(ORB orb)
The constructor.
Method Summary
voidconfigure(Configuration myConfiguration)
intget_system_load()
NOT IMPLEMENTED, but currently used for "pinging" purposes.
static voidmain(String[] args)
main method.
voidstart_server(String command)
This method starts a server on this host as specified by 'command'.

Constructor Detail

ServerStartupDaemonImpl

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

Method Detail

configure

public void configure(Configuration myConfiguration)

get_system_load

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

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)
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: ServerStartupFailed Runtime.exec() failed to execute the command.