org.jacorb.imr.util

Class ImRManager

public class ImRManager extends Object

This class is a command-line tool for administering the implementation repository.

Author: Nicolas Noffke $Id: ImRManager.java,v 1.12 2006/05/17 12:54:33 alphonse.bendt Exp $

Method Summary
static voidautoRegisterServer(ORB orb, String server, String command, String host, boolean edit_existing)
This method registers a server with the imr.
static StringgetAnyHostName(ORB orb)
Returns an arbitrary host, on which an imr_ssd is running, or an empty String, if none is present.
static StringgetLocalHostName()
Returns the name of the local host to be supplied to the imr.
static voidmain(String[] args)
Main method.

Method Detail

autoRegisterServer

public static void autoRegisterServer(ORB orb, String server, String command, String host, boolean edit_existing)
This method registers a server with the imr. To be called from within a program. Leave command and host to "" (not null), if automatic startup is not desired.

Parameters: edit_existing if set to true and the server already exist, the entry will be set to the supplied new values.

getAnyHostName

public static String getAnyHostName(ORB orb)
Returns an arbitrary host, on which an imr_ssd is running, or an empty String, if none is present.

getLocalHostName

public static String getLocalHostName()
Returns the name of the local host to be supplied to the imr. If this can't be queried, an empty String is returned.

main

public static void main(String[] args)
Main method.