org.jacorb.imr

Class ImRHostInfo

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 String
host

Constructor Summary

ImRHostInfo(HostInfo host)
The constructor of this class.

Method Summary

void
startServer(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

Field Details

host

protected String host

Constructor Details

ImRHostInfo

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

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

Method Details

startServer

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


toHostInfo

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

Returns:
a HostInfo instance