codec
Class CorbaObjectPool
java.lang.Object
|
+--codec.CorbaObjectPool
- public final class CorbaObjectPool
- extends java.lang.Object
Class taking care of the consistency of the CORBA objects collection.
Method Summary |
void |
deregister(java.lang.String pcoName)
Deregister CORBA object identified by PCO name. |
CorbaObject |
getObject(org.omg.CORBA.Object object)
Retrieve index of CORBA object identified by "object" from pool. |
CorbaObject |
getObject(java.lang.String pcoName)
Retrieve index of CORBA object identified by "pcoName" from pool. |
void |
register(org.omg.CORBA.Object object,
java.lang.String pcoName,
int pcoType)
Perform thread-safe registration of the CORBA object. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
pcoMap
private java.util.Map pcoMap
objectMap
private java.util.Map objectMap
CorbaObjectPool
public CorbaObjectPool()
getObject
public CorbaObject getObject(java.lang.String pcoName)
- Retrieve index of CORBA object identified by "pcoName" from pool.
- Returns:
null
in case no such "pcoName" is registered.
getObject
public CorbaObject getObject(org.omg.CORBA.Object object)
- Retrieve index of CORBA object identified by "object" from pool.
- Returns:
null
in case no such "object" is registered.
register
public void register(org.omg.CORBA.Object object,
java.lang.String pcoName,
int pcoType)
- Perform thread-safe registration of the CORBA object. In case
association "object <-> PCO name" already exists, old object is
deregistered, warning message is displayed and a new object is
registered.
deregister
public void deregister(java.lang.String pcoName)
- Deregister CORBA object identified by PCO name.