Class PCPOperation

java.lang.Object
com.portal.pcm.PCPOperation
Direct Known Subclasses:
PCPServerOperation

public class PCPOperation extends Object
The PCPOperation class is used to depict the various chunk flags and transactoins
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
     
    static int
     
    static String
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static String getSystemProperty(String key)