public class Services
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BIND_CONNECT |
static java.lang.String[] |
BINDING_SERVICES |
static int |
CONFIGURATION_FILE
The various means used to locate a service.
|
static int |
FILE |
static int |
NAME_SERVICE |
static int |
NAMED_CONNECT |
static java.lang.String |
nameService |
static java.lang.String |
otsKind |
static int |
RESOLVE_INITIAL_REFERENCES |
static java.lang.String |
transactionService |
Constructor and Description |
---|
Services(ORB orb)
Create a Services class which provides standard services for
the given ORB instance.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bindString(int bindValue) |
static int |
bindValue(java.lang.String bindString)
Given a binding mechanism string name return the
enumerated value.
|
static int |
getResolver() |
org.omg.CORBA.Object |
getService(java.lang.String serviceName,
java.lang.Object[] params)
The default implementation (specified on a per-ORB basis.)
|
org.omg.CORBA.Object |
getService(java.lang.String serviceName,
java.lang.Object[] params,
int mechanism) |
java.lang.String[] |
listInitialServices() |
void |
registerService(org.omg.CORBA.Object objRef,
java.lang.String serviceName,
java.lang.Object[] params)
The default implementation (probably specified on a per-ORB basis.)
|
void |
registerService(org.omg.CORBA.Object objRef,
java.lang.String serviceName,
java.lang.Object[] params,
int mechanism) |
public static final int CONFIGURATION_FILE
public static final int RESOLVE_INITIAL_REFERENCES
public static final int NAME_SERVICE
public static final int FILE
public static final int NAMED_CONNECT
public static final int BIND_CONNECT
public static final java.lang.String[] BINDING_SERVICES
public static final java.lang.String nameService
public static final java.lang.String transactionService
public static final java.lang.String otsKind
public Services(ORB orb)
orb
- The orb the services should use.public org.omg.CORBA.Object getService(java.lang.String serviceName, java.lang.Object[] params) throws org.omg.CORBA.ORBPackage.InvalidName, java.io.IOException, org.omg.CORBA.SystemException
org.omg.CORBA.ORBPackage.InvalidName
java.io.IOException
org.omg.CORBA.SystemException
public org.omg.CORBA.Object getService(java.lang.String serviceName, java.lang.Object[] params, int mechanism) throws org.omg.CORBA.ORBPackage.InvalidName, java.io.IOException, org.omg.CORBA.SystemException
org.omg.CORBA.ORBPackage.InvalidName
java.io.IOException
org.omg.CORBA.SystemException
public void registerService(org.omg.CORBA.Object objRef, java.lang.String serviceName, java.lang.Object[] params) throws org.omg.CORBA.ORBPackage.InvalidName, java.io.IOException, org.omg.CORBA.SystemException
org.omg.CORBA.ORBPackage.InvalidName
java.io.IOException
org.omg.CORBA.SystemException
public void registerService(org.omg.CORBA.Object objRef, java.lang.String serviceName, java.lang.Object[] params, int mechanism) throws org.omg.CORBA.ORBPackage.InvalidName, java.io.IOException, org.omg.CORBA.SystemException
org.omg.CORBA.ORBPackage.InvalidName
java.io.IOException
org.omg.CORBA.SystemException
public final java.lang.String[] listInitialServices() throws java.io.IOException, org.omg.CORBA.SystemException
java.io.IOException
org.omg.CORBA.SystemException
public static final java.lang.String bindString(int bindValue)
public static final int bindValue(java.lang.String bindString)
bindString
- The binding mechanism string name to look up.public static final int getResolver()