org.jacorb.imr.util
Class ImRManager
java.lang.Object
org.jacorb.imr.util.ImRManager
public class ImRManager
extends java.lang.Object
This class is a command-line tool for administering
the implementation repository.
- Nicolas Noffke
$Id: ImRManager.java,v 1.11 2004/05/06 12:39:59 nicolas Exp $
static void | autoRegisterServer(ORB orb, String server, String command, String host, boolean edit_existing) - This method registers a server with the imr.
|
static String | getAnyHostName(ORB orb) - Returns an arbitrary host, on which an imr_ssd is running,
or an empty String, if none is present.
|
static String | getLocalHostName() - Returns the name of the local host to be supplied to the imr.
|
static void | main(String[] args) - Main method.
|
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.
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.