org.jacorb.imr

Class ImRHostInfo

public class ImRHostInfo extends Object implements 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.12 2006/06/27 12:54:33 alphonse.bendt Exp $

Author: Nicolas Noffke

Field Summary
protected Stringhost
static longserialVersionUID
Constructor Summary
ImRHostInfo(HostInfo host)
The constructor of this class.
Method Summary
voidstartServer(String command, ORB orb)
This method tries to start a server with the daemon for this host.
HostInfotoHostInfo()
"Convert" this object to a HostInfo object

Field Detail

host

protected final String host

serialVersionUID

public static final long serialVersionUID

Constructor Detail

ImRHostInfo

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

Parameters: host the HostInfo object to take the information from.

Method Detail

startServer

public void startServer(String command, ORB orb)
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.

toHostInfo

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

Returns: a HostInfo instance