Package com.portal.pcm
Class PCPOperation
java.lang.Object
com.portal.pcm.PCPOperation
- Direct Known Subclasses:
PCPServerOperation
The PCPOperation class is used to depict the various chunk flags and transactoins
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The Chunk class is used to depict the various chunk flags used to manage the segmentation of the XDRed flist data.static final class
The PCPFlag class is used to depict the various transaction and request/response flags that are sent over the wire. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static int
static String
getSystemProperty
(String key) int
nextChunk
(int chunk, int avail, int max) The nextChunk method is used to determine what the chunking flag for the current packet should be based on the previous chunk flag, the amount of data available to be shipped and the maximum space available in the packet.
-
Constructor Details
-
PCPOperation
public PCPOperation()
-
-
Method Details
-
nextChunk
public int nextChunk(int chunk, int avail, int max) The nextChunk method is used to determine what the chunking flag for the current packet should be based on the previous chunk flag, the amount of data available to be shipped and the maximum space available in the packet.- Parameters:
chunk
- Chunk flag in the previous packet (if any) for this op.avail
- The number of bytes of data remaining to be sent.max
- The amount of space left in this packet.- Returns:
- Returns the chunk flag for this packet.
-
getPCPFlagResponse
public static int getPCPFlagResponse() -
getPCPFlagRequest
public static int getPCPFlagRequest() -
getSystemProperty
-