Package com.iizix.txp.impl
Class TXPidFactory
- java.lang.Object
- com.iizix.txp.impl.TXPidFactory
public class TXPidFactory extends java.lang.ObjectThis class implements Iizi's implementation of creating ITXPid's. A ITXPid uniquely identifies a global process or a process node.- Author:
- Freggle
Constructor Summary
Constructors Constructor Description TXPidFactory()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetBaseGlobalId()Gets the value of BaseGlobalIDstatic voidgetBytes(java.lang.String src, int srcBegin, int srcEnd, byte[] dst, int dstBegin)static longgetSequenceNumber()Gets the value of the next sequence nrstatic ITXPidnewNode(ITXPid Pid, long nodeQualNr)Constructs a newITXPidinstance (implemented byTXPidImpl) from an existing ITXPid and node qualifier.static ITXPidnewPid()Constructs a newITXPidinstance (implemented byTXPidImpl).static voidsetBaseGlobalID(java.lang.String newBaseGlobalID)Sets the value of BaseGlobalIDstatic voidsetSequenceNumber(long newSeqNr)Sets the value of the next sequence nrstatic java.lang.StringtoString(ITXPid Pid)Gets the String representation of the specified ITXPid
Method Detail
getBaseGlobalId
public static java.lang.String getBaseGlobalId()
Gets the value of BaseGlobalID- Returns:
- value of BaseGlobalID
setBaseGlobalID
public static void setBaseGlobalID(java.lang.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(java.lang.String src, int srcBegin, int srcEnd, byte[] dst, int dstBegin)
newPid
public static ITXPid newPid()
Constructs a newITXPidinstance (implemented byTXPidImpl). Needed for a new ITXProcess.- Returns:
- a
ITXPidinstance implemented byTXPidImpl
newNode
public static ITXPid newNode(ITXPid Pid, long nodeQualNr)
Constructs a newITXPidinstance (implemented byTXPidImpl) from an existing ITXPid and node qualifier. Needed for a new process node.- Parameters:
Pid- The global ITXPidnodeQualNr- the node qualifier aslong- Returns:
- a
ITXPidinstance
toString
public static java.lang.String toString(ITXPid Pid)
Gets the String representation of the specified ITXPid- Parameters:
Pid- the ITXPid- Returns:
- string representation of the specified ITXPid