Package com.iizix.txp.impl
Class TXPidFactory
java.lang.Object
com.iizix.txp.impl.TXPidFactory
This class implements Iizi's implementation of creating ITXPid's. A ITXPid uniquely identifies a global process or a process node.
- Author:
- Freggle
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static StringGets the value of BaseGlobalID- static void- static longGets the value of the next sequence nr- static ITXPidConstructs a new- ITXPidinstance (implemented by- TXPidImpl) from an existing ITXPid and node qualifier.- static ITXPid- newPid()Constructs a new- ITXPidinstance (implemented by- TXPidImpl).- static void- setBaseGlobalID- (String newBaseGlobalID) Sets the value of BaseGlobalID- static void- setSequenceNumber- (long newSeqNr) Sets the value of the next sequence nr- static StringGets the String representation of the specified ITXPid
- Constructor Details- TXPidFactorypublic TXPidFactory()
 
- Method Details- getBaseGlobalIdGets the value of BaseGlobalID- Returns:
- value of BaseGlobalID
 
- setBaseGlobalIDSets the value of BaseGlobalID- Parameters:
- newBaseGlobalID- Value to assign to BaseGlobalId
 
- getSequenceNumberpublic static long getSequenceNumber()Gets the value of the next sequence nr- Returns:
- value of the next sequence nr
 
- setSequenceNumberpublic static void setSequenceNumber- (long newSeqNr) Sets the value of the next sequence nr- Parameters:
- newSeqNr- Value to assign to seqNr
 
- getBytes
- newPidConstructs a new- ITXPidinstance (implemented by- TXPidImpl). Needed for a new ITXProcess.- Returns:
- a ITXPidinstance implemented byTXPidImpl
 
- newNodeConstructs a new- ITXPidinstance (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 ITXPidinstance
 
- toStringGets the String representation of the specified ITXPid- Parameters:
- Pid- the ITXPid
- Returns:
- string representation of the specified ITXPid