Class TXPidFactory

java.lang.Object
com.iizix.txp.impl.TXPidFactory

public class TXPidFactory extends Object
This class implements Iizi's implementation of creating ITXPid's. A ITXPid uniquely identifies a global process or a process node.
Author:
Freggle
  • Constructor Details

    • TXPidFactory

      public TXPidFactory()
  • Method Details

    • getBaseGlobalId

      public static String getBaseGlobalId()
      Gets the value of BaseGlobalID
      Returns:
      value of BaseGlobalID
    • setBaseGlobalID

      public static void setBaseGlobalID(String newBaseGlobalID)
      Sets the value of BaseGlobalID
      Parameters:
      newBaseGlobalID - Value to assign to BaseGlobalId
    • getSequenceNumber

      public static long getSequenceNumber()
      Gets the value of the next sequence nr
      Returns:
      value of the next sequence nr
    • setSequenceNumber

      public static void setSequenceNumber(long newSeqNr)
      Sets the value of the next sequence nr
      Parameters:
      newSeqNr - Value to assign to seqNr
    • getBytes

      public static void getBytes(String src, int srcBegin, int srcEnd, byte[] dst, int dstBegin)
    • newPid

      public static ITXPid newPid()
      Constructs a new ITXPid instance (implemented by TXPidImpl). Needed for a new ITXProcess.
      Returns:
      a ITXPid instance implemented by TXPidImpl
    • newNode

      public static ITXPid newNode(ITXPid Pid, long nodeQualNr)
      Constructs a new ITXPid instance (implemented by TXPidImpl) from an existing ITXPid and node qualifier. Needed for a new process node.
      Parameters:
      Pid - The global ITXPid
      nodeQualNr - the node qualifier as long
      Returns:
      a ITXPid instance
    • toString

      public static String toString(ITXPid Pid)
      Gets the String representation of the specified ITXPid
      Parameters:
      Pid - the ITXPid
      Returns:
      string representation of the specified ITXPid