Calypso Gateway v1.0

codec.client
Class ClientPool

java.lang.Object
  |
  +--codec.client.ClientPool

public final class ClientPool
extends java.lang.Object

Class for handling Universal Servants exploited by Client objects. It registers and deregisters Universal Servants located in SUT and handles Client operations.


Field Summary
private static long WAIT_TIMEOUT_MILLIS
          Defines how regularly sleeping thread will check for changes in DynObject status.
 
Constructor Summary
ClientPool()
           
 
Method Summary
static void callOperation(DynObject object, org.omg.CORBA.ServerRequest request)
          Invoke operation coming from Client object.
private static java.lang.String[] extractIds(java.lang.String pcoName)
          Create an array of identifiers which could be used as a return value of "_ids()" method of DynObject.
static void operResponse(java.lang.String pcoName, com.t3.ot.pco.ASP asp)
          Handle the operation response coming from Tester.
static void registerNaming(java.lang.String pcoName, com.t3.ot.pco.ASP asp)
          Associate PCO and Universal Servant identified by location in the Naming Service.
static void registerRefFile(java.lang.String pcoName, com.t3.ot.pco.ASP asp)
          Associate PCO and Universal Servant identified by IOR file location.
static void removeServant(CorbaObject corbaObject)
          Perform clean-up actions necessary for accurate removal of a Universal Servant from CORBA Universe.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

WAIT_TIMEOUT_MILLIS

private static final long WAIT_TIMEOUT_MILLIS
Defines how regularly sleeping thread will check for changes in DynObject status.
Constructor Detail

ClientPool

public ClientPool()
Method Detail

extractIds

private static java.lang.String[] extractIds(java.lang.String pcoName)
Create an array of identifiers which could be used as a return value of "_ids()" method of DynObject.
Returns:
In case of error, returns null.

registerRefFile

public static void registerRefFile(java.lang.String pcoName,
                                   com.t3.ot.pco.ASP asp)
Associate PCO and Universal Servant identified by IOR file location.
Parameters:
asp - contains pCREG_RFILE PDU.

registerNaming

public static void registerNaming(java.lang.String pcoName,
                                  com.t3.ot.pco.ASP asp)
Associate PCO and Universal Servant identified by location in the Naming Service.
Parameters:
asp - contains pCREG_NSERV PDU.

callOperation

public static void callOperation(DynObject object,
                                 org.omg.CORBA.ServerRequest request)
Invoke operation coming from Client object.

operResponse

public static void operResponse(java.lang.String pcoName,
                                com.t3.ot.pco.ASP asp)
Handle the operation response coming from Tester.

removeServant

public static void removeServant(CorbaObject corbaObject)
Perform clean-up actions necessary for accurate removal of a Universal Servant from CORBA Universe.

Calypso Gateway v1.0