com.ibm.ws.activity
Class ActivityService

java.lang.Object
  |
  +--com.ibm.ws.activity.ActivityService

public class ActivityService
extends java.lang.Object

The ActivityService class is responsible for setting up the Activity Service Java Client and server.


Method Summary
static org.omg.CORBA.Object bytes_to_object(byte[] ref)
          Converts an object from byte string (rather than String) suitable for logging
static void disableLiteService(java.lang.String serviceName)
          Find HLSLiteInfo object and disable
static void enableLiteService(java.lang.String serviceName)
          Find HLSLiteInfo object and enable
static org.omg.CORBA.ORB getORB()
          Return the orb associated with this activity group service.
static void init(boolean isServerProcess)
          Temporary method to allow initialization of the Activity service outside WAS for stand-alone testing
This results in the initialisation of the Activity Service.
static void init(com.ibm.CORBA.iiop.ORB orb)
          Identifies the ORB to the ActivityService.
static ActivityService instance()
          Getter method for the instance of this class.
static boolean isInitialized()
           
 boolean isServerProcess()
          Return the orb associated with this activity group service.
static byte[] object_to_bytes(org.omg.CORBA.Object obj)
          Converts an object to byte string (rather than String) suitable for logging
static void registerLiteService(java.lang.String serviceName, HLSLiteDataInterface dataInterface)
          Registers a lightweight HLS requiring only data propagation.
static void requestComplete(org.omg.PortableInterceptor.ServerRequestInfo reqinfo)
          Call requestComplete on the extended HLSLite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(com.ibm.CORBA.iiop.ORB orb)
Identifies the ORB to the ActivityService.

Parameters:
orb - the ORB

init

public static void init(boolean isServerProcess)
Temporary method to allow initialization of the Activity service outside WAS for stand-alone testing
This results in the initialisation of the Activity Service.


instance

public static ActivityService instance()
Getter method for the instance of this class.

Returns:
the instance of this class

getORB

public static org.omg.CORBA.ORB getORB()
Return the orb associated with this activity group service.

Returns:
the orb associated with this activity group service

isServerProcess

public boolean isServerProcess()
Return the orb associated with this activity group service.

Returns:
the orb associated with this activity group service

isInitialized

public static boolean isInitialized()

registerLiteService

public static void registerLiteService(java.lang.String serviceName,
                                       HLSLiteDataInterface dataInterface)
                                throws SystemException
Registers a lightweight HLS requiring only data propagation. Once registration has completed the HLS will be invoked on every outbound request to provide data, will be passed inbound data for the same named service, and will be notified when each request completes on the current thread.

SystemException

requestComplete

public static void requestComplete(org.omg.PortableInterceptor.ServerRequestInfo reqinfo)
Call requestComplete on the extended HLSLite


disableLiteService

public static void disableLiteService(java.lang.String serviceName)
                               throws ServiceNotRegisteredException
Find HLSLiteInfo object and disable

ServiceNotRegisteredException

enableLiteService

public static void enableLiteService(java.lang.String serviceName)
                              throws ServiceNotRegisteredException
Find HLSLiteInfo object and enable

ServiceNotRegisteredException

object_to_bytes

public static final byte[] object_to_bytes(org.omg.CORBA.Object obj)
Converts an object to byte string (rather than String) suitable for logging

Returns:
The serialized byte string.

bytes_to_object

public static final org.omg.CORBA.Object bytes_to_object(byte[] ref)
Converts an object from byte string (rather than String) suitable for logging

Returns:
The serialized object


 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.