Package com.arjuna.orbportability
Class Services
java.lang.Object
com.arjuna.orbportability.Services
An attempt at some ORB portable ways of accessing ORB services.
- Since:
- JTS 1.0.
- Version:
- $Id: Services.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
bindString
(int bindValue) static final int
Given a binding mechanism string name return the enumerated value.static final int
org.omg.CORBA.Object
getService
(String serviceName, Object[] params) The default implementation (specified on a per-ORB basis.)org.omg.CORBA.Object
getService
(String serviceName, Object[] params, int mechanism) final String[]
void
registerService
(org.omg.CORBA.Object objRef, String serviceName, Object[] params) The default implementation (probably specified on a per-ORB basis.)void
registerService
(org.omg.CORBA.Object objRef, String serviceName, Object[] params, int mechanism)
-
Field Details
-
CONFIGURATION_FILE
public static final int CONFIGURATION_FILEThe various means used to locate a service.- See Also:
-
RESOLVE_INITIAL_REFERENCES
public static final int RESOLVE_INITIAL_REFERENCES- See Also:
-
NAME_SERVICE
public static final int NAME_SERVICE- See Also:
-
FILE
public static final int FILE- See Also:
-
NAMED_CONNECT
public static final int NAMED_CONNECT- See Also:
-
BIND_CONNECT
public static final int BIND_CONNECT- See Also:
-
BINDING_SERVICES
-
nameService
- See Also:
-
transactionService
- See Also:
-
otsKind
- See Also:
-
-
Constructor Details
-
Services
Create a Services class which provides standard services for the given ORB instance.- Parameters:
orb
- The orb the services should use.
-
-
Method Details
-
getService
public org.omg.CORBA.Object getService(String serviceName, Object[] params) throws org.omg.CORBA.ORBPackage.InvalidName, IOException, org.omg.CORBA.SystemException The default implementation (specified on a per-ORB basis.)- Throws:
org.omg.CORBA.ORBPackage.InvalidName
IOException
org.omg.CORBA.SystemException
-
getService
public org.omg.CORBA.Object getService(String serviceName, Object[] params, int mechanism) throws org.omg.CORBA.ORBPackage.InvalidName, IOException, org.omg.CORBA.SystemException - Throws:
org.omg.CORBA.ORBPackage.InvalidName
IOException
org.omg.CORBA.SystemException
-
registerService
public void registerService(org.omg.CORBA.Object objRef, String serviceName, Object[] params) throws org.omg.CORBA.ORBPackage.InvalidName, IOException, org.omg.CORBA.SystemException The default implementation (probably specified on a per-ORB basis.)- Throws:
org.omg.CORBA.ORBPackage.InvalidName
IOException
org.omg.CORBA.SystemException
-
registerService
public void registerService(org.omg.CORBA.Object objRef, String serviceName, Object[] params, int mechanism) throws org.omg.CORBA.ORBPackage.InvalidName, IOException, org.omg.CORBA.SystemException - Throws:
org.omg.CORBA.ORBPackage.InvalidName
IOException
org.omg.CORBA.SystemException
-
listInitialServices
- Returns:
- the list of initial services that the ORB knows about. Only the names are returned, not the IORs.
- Throws:
IOException
org.omg.CORBA.SystemException
- Since:
- JTS 2.1.1. getService/setService for INITIAL_REFERENCES could default to config file if not supported. Transparently.
-
bindString
-
bindValue
Given a binding mechanism string name return the enumerated value. If this is not a valid binding mechanism name then return -1.- Parameters:
bindString
- The binding mechanism string name to look up.- Returns:
- The enumerated value that this bind string represents.
-
getResolver
public static final int getResolver()
-