org.jacorb.imr
Class ImRHostInfo

java.lang.Object
  extended byorg.jacorb.imr.ImRHostInfo
All Implemented Interfaces:
java.io.Serializable

public class ImRHostInfo
extends java.lang.Object
implements java.io.Serializable

This class represents a host. It contains information about a server startup daemon residing on this host and provides a method for starting a server on that host.

Version:
$Id: ImRHostInfo.java,v 1.8 2003/12/16 08:41:27 gerald Exp $
Author:
Nicolas Noffke
See Also:
Serialized Form

Field Summary
protected  java.lang.String host
           
 
Constructor Summary
ImRHostInfo(HostInfo host)
          The constructor of this class.
 
Method Summary
 void startServer(java.lang.String command, ORB orb)
          This method tries to start a server with the daemon for this host.
 HostInfo toHostInfo()
          "Convert" this object to a HostInfo object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

protected java.lang.String host
Constructor Detail

ImRHostInfo

public ImRHostInfo(HostInfo host)
The constructor of this class.

Parameters:
host - the HostInfo object to take the information from.
Method Detail

toHostInfo

public HostInfo toHostInfo()
"Convert" this object to a HostInfo object

Returns:
a HostInfo instance

startServer

public void startServer(java.lang.String command,
                        ORB orb)
                 throws ServerStartupFailed
This method tries to start a server with the daemon for this host.

Parameters:
command - the startup command of the server
orb - needed for calling string_to_object().
Throws:
ServerStartupFailed - propagated up from the daemon if something went wrong. Likely to throw CORBA System Exceptions as well, especially if the daemon is down.