com.sun.sgs.impl.profile.util
Class TransactionId

java.lang.Object
  extended by com.sun.sgs.impl.profile.util.TransactionId

public final class TransactionId
extends Object

A utility that wraps a transaction identifier (an array of bytes) by assuming that the identifier represents a non-negative long value. This is particularly useful for ProfileListeners that want to key off of transaction identifiers. Each transaction's identifier is available from its associated ProfileReport.


Constructor Summary
TransactionId(byte[] txnId)
          Creates an instance of TransactionId.
 
Method Summary
 boolean equals(Object o)
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionId

public TransactionId(byte[] txnId)
Creates an instance of TransactionId.

Parameters:
txnId - the transaction identifier
Method Detail

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved