Methods Summary |
---|
int | allocateSlotId()This method will be called from ORBInitInfo.allocate_slot_id( ).
simply returns a slot id by incrementing slotCounter.
int slotId = slotCounter;
slotCounter = slotCounter + 1;
return slotId;
|
SlotTable | getSlotTable()This method gets the SlotTable which is on the top of the
ThreadLocalStack.
SlotTable table = (SlotTable)
((SlotTableStack)threadLocalSlotTable.get()).peekSlotTable();
return table;
|
public org.omg.CORBA.Any | get_slot(int id)This method gets the slot data at the given slot id (index) from the
Slot Table which is on the top of the SlotTableStack.
if( orbInitializing ) {
// As per ptc/00-08-06 if the ORB is still initializing, disallow
// calls to get_slot and set_slot. If an attempt is made to call,
// throw a BAD_INV_ORDER.
throw wrapper.invalidPiCall4() ;
}
return getSlotTable().get_slot( id );
|
void | popSlotTable()This method pops a SlotTable on the SlotTableStack.
SlotTableStack st = (SlotTableStack)threadLocalSlotTable.get();
st.popSlotTable( );
|
void | pushSlotTable()This method pushes a SlotTable on the SlotTableStack. When there is
a resolve_initial_references("PICurrent") after this call. The new
PICurrent will be returned.
SlotTableStack st = (SlotTableStack)threadLocalSlotTable.get();
st.pushSlotTable( );
|
void | resetSlotTable()This method resets all the slot data to null in the
Slot Table which is on the top of SlotTableStack.
getSlotTable().resetSlots();
|
void | setORBInitializing(boolean init)Called from ORB when the ORBInitializers are about to start
initializing.
this.orbInitializing = init;
|
public void | set_slot(int id, org.omg.CORBA.Any data)This method sets the slot data at the given slot id (index) in the
Slot Table which is on the top of the SlotTableStack.
if( orbInitializing ) {
// As per ptc/00-08-06 if the ORB is still initializing, disallow
// calls to get_slot and set_slot. If an attempt is made to call,
// throw a BAD_INV_ORDER.
throw wrapper.invalidPiCall3() ;
}
getSlotTable().set_slot( id, data );
|