Calypso Gateway v1.0

codec.pco
Class OrbPcoPool

java.lang.Object
  |
  +--codec.pco.OrbPcoPool

public final class OrbPcoPool
extends java.lang.Object

Class for handling PCO objects. It registers and deregisters PCOs supplied by PcoManagerImpl.


Field Summary
private  java.util.Map objects
          Pool of PCO objects.
 
Constructor Summary
OrbPcoPool()
           
 
Method Summary
 void deregister(java.lang.String pcoName)
          Remove PCO instance identified by PCO name.
 OrbPco getObject(java.lang.String pcoName)
          Retrieve registered object identified by "pcoName" from pool.
 void register(java.lang.String pcoName, java.lang.String refFileName)
          Create new PCO instance "pcoName" and advertise its presence to the world by saving its IOR to "refFileName".
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

objects

private java.util.Map objects
Pool of PCO objects.
Constructor Detail

OrbPcoPool

public OrbPcoPool()
Method Detail

getObject

public OrbPco getObject(java.lang.String pcoName)
Retrieve registered object identified by "pcoName" from pool.
Returns:
null in case no such "pcoName" is registered.

register

public void register(java.lang.String pcoName,
                     java.lang.String refFileName)
Create new PCO instance "pcoName" and advertise its presence to the world by saving its IOR to "refFileName". In case PCO instance with the same name already exists, it is replaced by a new one and warning message is displayed.

deregister

public void deregister(java.lang.String pcoName)
Remove PCO instance identified by PCO name.

Calypso Gateway v1.0