public class OrbTool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NS_HOST |
static java.lang.String |
NS_NAME |
static java.lang.String |
NS_PORT |
static java.lang.String |
ROOT_POA_NAME |
static java.lang.String |
UNHANDLED_ARGUMENTS |
Modifier | Constructor and Description |
---|---|
protected |
OrbTool()
Creates a new instance of server
|
Modifier and Type | Method and Description |
---|---|
static void |
argumentsToMap(java.lang.String[] args,
java.util.Map keywords,
java.util.Vector parameters)
Convert the arguments to a map.
|
static org.omg.PortableServer.POA |
createPOA(org.omg.PortableServer.POA rootPOA,
java.lang.String name)
Create a POA
|
static org.omg.CORBA.ORB |
getORB(java.util.Map map)
Get the ORB
|
static org.omg.PortableServer.POA |
getRootPOA(org.omg.CORBA.ORB orb)
Get a root POA object.
|
static void |
printProperties(java.io.PrintStream out,
java.util.Map map)
Print out the map.
|
static org.omg.CORBA.Object |
servantToReference(org.omg.PortableServer.POA root,
org.omg.PortableServer.Servant servant) |
public static final java.lang.String NS_HOST
public static final java.lang.String NS_PORT
public static final java.lang.String NS_NAME
public static final java.lang.String UNHANDLED_ARGUMENTS
public static final java.lang.String ROOT_POA_NAME
public static void argumentsToMap(java.lang.String[] args, java.util.Map keywords, java.util.Vector parameters)
args
- the command line arguments.keywords
- a Map to put the key value pairs into.
The key starts with minus (-) followd by a value.
-NameServiceHost Robinson -NameServicePort 900 Messung Ergebnis
Arguments that can not be handled by the key value syntax will
returned in an entry using the key UNHANDLED_ARGUMENTS (s. constant)
Messung and Ergebnis will be return in string array.parameters
- the parameters that do not belong to a keyword.public static void printProperties(java.io.PrintStream out, java.util.Map map)
out
- the print stream.map
- the map to be printed.public static org.omg.CORBA.ORB getORB(java.util.Map map)
the
- command line arguments.public static org.omg.PortableServer.POA getRootPOA(org.omg.CORBA.ORB orb) throws java.lang.Exception
java.lang.Exception
public static org.omg.PortableServer.POA createPOA(org.omg.PortableServer.POA rootPOA, java.lang.String name) throws org.omg.PortableServer.POAPackage.AdapterAlreadyExists, org.omg.PortableServer.POAManagerPackage.AdapterInactive, org.omg.PortableServer.POAPackage.InvalidPolicy
org.omg.PortableServer.POAPackage.AdapterAlreadyExists
org.omg.PortableServer.POAManagerPackage.AdapterInactive
org.omg.PortableServer.POAPackage.InvalidPolicy
public static org.omg.CORBA.Object servantToReference(org.omg.PortableServer.POA root, org.omg.PortableServer.Servant servant)