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 Summary
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the value of BaseGlobalIDstatic void
static long
Gets the value of the next sequence nrstatic ITXPid
Constructs a newITXPid
instance (implemented byTXPidImpl
) from an existing ITXPid and node qualifier.static ITXPid
newPid()
Constructs a newITXPid
instance (implemented byTXPidImpl
).static void
setBaseGlobalID
(String newBaseGlobalID) Sets the value of BaseGlobalIDstatic void
setSequenceNumber
(long newSeqNr) Sets the value of the next sequence nrstatic String
Gets the String representation of the specified ITXPid
Constructor Details
TXPidFactory
public TXPidFactory()
Method Details
getBaseGlobalId
Gets the value of BaseGlobalID- Returns:
- value of BaseGlobalID
setBaseGlobalID
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
newPid
Constructs a newITXPid
instance (implemented byTXPidImpl
). Needed for a new ITXProcess.- Returns:
- a
ITXPid
instance implemented byTXPidImpl
newNode
Constructs a newITXPid
instance (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
ITXPid
instance
toString
Gets the String representation of the specified ITXPid- Parameters:
Pid
- the ITXPid- Returns:
- string representation of the specified ITXPid