Class SlotTable
java.lang.Object
com.sun.corba.ee.impl.interceptors.SlotTable
SlotTable is used internally by PICurrent to store the slot information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget_slot
(int id) This method get the slot data for the given slot id (index).(package private) int
getSize()
This method returns the size of the allocated slots.(package private) void
This method resets all the slot data to null if dirtyFlag is set.void
This method sets the slot data at the given slot id (index).
-
Field Details
-
theSlotData
The vector where all the slot data for the current thread is stored -
orb
Required for instantiating Any object. -
dirtyFlag
private boolean dirtyFlagThe flag to check whether there are any updates in the current SlotTable. The slots will be reset to null, only if this flag is set.
-
-
Constructor Details
-
SlotTable
SlotTable(ORB orb, int slotSize) The constructor instantiates an Array of Any[] of size given by slotSize parameter.- Parameters:
orb
- The ORBslotSize
- Size of array
-
-
Method Details
-
set_slot
This method sets the slot data at the given slot id (index).- Parameters:
id
- Indexdata
- Slot data- Throws:
InvalidSlot
- If the id is greater than the slot data size.
-
get_slot
This method get the slot data for the given slot id (index).- Parameters:
id
- Index- Returns:
- Slot data
- Throws:
InvalidSlot
- If the id is greater than the slot data size.
-
resetSlots
void resetSlots()This method resets all the slot data to null if dirtyFlag is set. -
getSize
int getSize()This method returns the size of the allocated slots.- Returns:
- slot size
-