org.jacorb.imr.util
Class ImRManager

java.lang.Object
  extended byorg.jacorb.imr.util.ImRManager

public class ImRManager
extends java.lang.Object

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

Author:
Nicolas Noffke $Id: ImRManager.java,v 1.9 2003/12/16 08:41:27 gerald Exp $

Constructor Summary
ImRManager()
           
 
Method Summary
static void autoRegisterServer(ORB orb, java.lang.String server, java.lang.String command, java.lang.String host, boolean edit_existing)
          This method registers a server with the imr.
static java.lang.String getAnyHostName(ORB orb)
          Returns an arbitrary host, on which an imr_ssd is running, or an empty String, if none is present.
static java.lang.String getLocalHostName()
          Returns the name of the local host to be supplied to the imr.
static void main(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImRManager

public ImRManager()
Method Detail

autoRegisterServer

public static void autoRegisterServer(ORB orb,
                                      java.lang.String server,
                                      java.lang.String command,
                                      java.lang.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.

getLocalHostName

public static java.lang.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.


getAnyHostName

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


main

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