Package com.iizix.txp.impl
Class TXPidImpl
java.lang.Object
com.iizix.txp.impl.TXPidImpl
- All Implemented Interfaces:
- ITXPid,- Serializable
Implementation if the ITXPid interface. Pids should not be visible to the application programs.
- Author:
- Freggle
- See Also:
- Field SummaryFieldsModifier and TypeFieldDescription- static final intThe format ID should be a unique identifier for the transaction manager.
- Constructor SummaryConstructors
- Method Summary
- Field Details- IIZI_FORMAT_IDpublic static final int IIZI_FORMAT_IDThe format ID should be a unique identifier for the transaction manager. I just wrote something here- See Also:
 
 
- Constructor Details- TXPidImplpublic TXPidImpl- (byte[] globalID, byte[] nodeQual, int seqNr) Constructs a- TXPidImplinstance from the specified global ID, branch qualifier and sequence nr.- Parameters:
- globalID- the global ID
- nodeQual- the atm qualifier
- seqNr- the sequence nr
 
- TXPidImplConstructs a- TXPidImplinstance from the specified ITXPid and node qualifier. Functionally this creates a new node of an existing global process ID- Parameters:
- Pid- The process ID to create a new node of.
- nodeQual- The ID of the new node.
 
 
- Method Details- getNodeQualifierpublic byte[] getNodeQualifier()Description copied from interface:- ITXPidGets the node qualifier part of the PID- Specified by:
- getNodeQualifierin interface- ITXPid
- Returns:
- the node qualifier
 
- getFormatIDpublic int getFormatID()Description copied from interface:- ITXPidGets the format identifier- Specified by:
- getFormatIDin interface- ITXPid
- Returns:
- the format identifier
 
- getGlobalProcessIDpublic byte[] getGlobalProcessID()Description copied from interface:- ITXPidGets the global process ID- Specified by:
- getGlobalProcessIDin interface- ITXPid
- Returns:
- the global process ID
 
- equalsCompares for equality. Instances are considered equal if they are both instances of- TXPidImpl, and if they have the same global process id and node branch qualifier.
- hashCodepublic int hashCode()
- toString