org.jacorb.imr
Class ImRHostInfo
java.lang.Object
org.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.10 2004/05/06 12:39:59 nicolas Exp $
- Author:
- Nicolas Noffke
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
host
|
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 |
host
protected java.lang.String host
ImRHostInfo
public ImRHostInfo(HostInfo host)
- The constructor of this class.
- Parameters:
host
- the HostInfo object to take the information from.
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 serverorb
- 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.