org.iids.aos.kernel
Class TransactionID

java.lang.Object
  extended by org.iids.aos.kernel.TransactionID
All Implemented Interfaces:
java.io.Serializable

public class TransactionID
extends java.lang.Object
implements java.io.Serializable

Class representing an transaction ID (XID) in agent-container transfers.

Author:
arno
See Also:
Serialized Form

Field Summary
protected  byte[] _id
           
protected static java.lang.String ALGO
           
protected static int LENGTH
           
 
Constructor Summary
TransactionID(byte[] id)
          Creates a new instance of TransactionID
 
Method Summary
static TransactionID createZero()
           
 boolean equals(java.lang.Object o)
           
 boolean equalsZero()
           
static TransactionID generate()
           
 byte[] getBytes()
           
 int hashCode()
           
 java.lang.String marshall()
           
static int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALGO

protected static final java.lang.String ALGO
See Also:
Constant Field Values

LENGTH

protected static final int LENGTH
See Also:
Constant Field Values

_id

protected byte[] _id
Constructor Detail

TransactionID

public TransactionID(byte[] id)
Creates a new instance of TransactionID

Method Detail

generate

public static TransactionID generate()
                              throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

createZero

public static TransactionID createZero()

size

public static int size()

equalsZero

public boolean equalsZero()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getBytes

public byte[] getBytes()

marshall

public java.lang.String marshall()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.