Class Services

java.lang.Object
com.arjuna.orbportability.Services

public class Services extends Object
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 Details

  • Constructor Details

    • Services

      public Services(ORB orb)
      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

      public final String[] listInitialServices() throws IOException, org.omg.CORBA.SystemException
      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

      public static final String bindString(int bindValue)
    • bindValue

      public static final int bindValue(String bindString)
      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()