|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mindbright.ssh2.SSH2DataBuffer
com.mindbright.ssh2.SSH2TransportPDU
com.mindbright.ssh2.SSH2TransportPDUPool
public class SSH2TransportPDUPool
Implements a pool of PDUs which can be reused. This class holds a pool of PDUs and tries to reuse them whenever possible.
| Nested Class Summary | |
|---|---|
protected class |
SSH2TransportPDUPool.PoolPDU
|
| Field Summary | |
|---|---|
protected static int |
POOL_SIZE
|
| Fields inherited from class com.mindbright.ssh2.SSH2TransportPDU |
|---|
factoryInstance, PACKET_DEFAULT_SIZE, PACKET_MAX_SIZE, PACKET_MIN_SIZE, padSize, pktDefaultSize, pktSize, pktType, totSizeCompressed, totSizeUncompressed |
| Fields inherited from class com.mindbright.ssh2.SSH2DataBuffer |
|---|
BOOLEAN_FALSE, BOOLEAN_TRUE, data, rPos, wPos |
| Constructor Summary | |
|---|---|
protected |
SSH2TransportPDUPool()
|
| Method Summary | |
|---|---|
protected SSH2TransportPDU |
createPDU(int pktType,
int bufSize)
Create a new PDU for a packet. |
protected void |
releasePDU(SSH2TransportPDUPool.PoolPDU pdu)
Internal class which releases an incoming PDU. |
| Methods inherited from class com.mindbright.ssh2.SSH2TransportPDU |
|---|
checkMac, createIncomingPacket, createIncomingPacket, createInPDU, createOutgoingPacket, createOutgoingPacket, createOutPDU, createTranceiverContext, createTranceiverContextImpl, getCompressedSize, getPayloadLength, getPayloadOffset, getType, getUncompressedSize, initReceive, makeCopy, processData, release, setFactoryInstance, setType, toString, writeByte, writeRaw, writeString, writeTo |
| Methods inherited from class com.mindbright.ssh2.SSH2DataBuffer |
|---|
getData, getMaxReadSize, getMaxSize, getMaxWriteSize, getRPos, getWPos, readBigInt, readBigIntBits, readBoolean, readByte, readInt, readJavaString, readLong, readRaw, readRaw, readRestRaw, readString, readString, readUInt, reset, resize, setData, setRPos, setWPos, writeBigInt, writeBigIntBits, writeBoolean, writeInt, writeInt, writeLong, writeRaw, writeString, writeString, writeUTF8String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static int POOL_SIZE
| Constructor Detail |
|---|
protected SSH2TransportPDUPool()
| Method Detail |
|---|
protected SSH2TransportPDU createPDU(int pktType,
int bufSize)
SSH2TransportPDU
createPDU in class SSH2TransportPDUpktType - Type of packet to create.bufSize - How many bytes it should have room for.protected void releasePDU(SSH2TransportPDUPool.PoolPDU pdu)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||