|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.PacketPoolHeap
public class PacketPoolHeap
This is not a true pool, it gets packets from the heap and gives them back to the heap
Field Summary | |
---|---|
private long |
packetsCreated
|
private long |
packetsDestroyed
|
Constructor Summary | |
---|---|
PacketPoolHeap(java.lang.String string,
Stats stats)
|
Method Summary | |
---|---|
void |
drain()
Return all packets in the pool back to the Java heap. |
void |
flush(java.util.List<Packet> packetList)
Take all the packets on the supplied list and hang them on the internal pool list |
Packet |
get(int size)
Get a packet of size |
void |
preen()
Clean up the pool in some way |
void |
put(Packet packet)
Give the packet to the pool for storage |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long packetsCreated
private long packetsDestroyed
Constructor Detail |
---|
public PacketPoolHeap(java.lang.String string, Stats stats)
Method Detail |
---|
public void drain()
PacketPool
drain
in interface PacketPool
public void flush(java.util.List<Packet> packetList) throws RtStpsException
PacketPool
flush
in interface PacketPool
packetList
- the list of packets to put on the pool
RtStpsException
- if this failspublic Packet get(int size) throws RtStpsException
PacketPool
get
in interface PacketPool
size
- size in bytes needed hold packet including header and body
RtStpsException
- If size is not legalpublic void preen()
PacketPool
preen
in interface PacketPool
public void put(Packet packet) throws RtStpsException
PacketPool
put
in interface PacketPool
RtStpsException
- If illegal sizepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |