com.sun.jini.mahalo
Class ParticipantHandle

java.lang.Object
  extended by com.sun.jini.mahalo.ParticipantHandle
All Implemented Interfaces:
Serializable, TransactionConstants

 class ParticipantHandle
extends Object
implements Serializable, TransactionConstants

Author:
Sun Microsystems, Inc.

Field Summary
private  long crashcount
           
private static Logger persistenceLogger
          Logger for persistence related messages
private  TransactionParticipant preparedPart
          Cached reference to prepared participant.
private  int prepstate
           
(package private) static long serialVersionUID
           
private  StorableObject storedpart
           
 
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
 
Constructor Summary
ParticipantHandle(TransactionParticipant preparedPart, long crashcount)
          Create a new node that is equivalent to that node
 
Method Summary
 boolean equals(Object that)
           
(package private)  long getCrashCount()
           
(package private)  TransactionParticipant getPreParedParticipant()
           
(package private)  int getPrepState()
           
(package private)  StorableObject getStoredPart()
           
 int hashCode()
          Return the hashCode of the embedded TransactionParticipant.
(package private)  void restoreTransientState(ProxyPreparer recoveredListenerPreparer)
           
(package private)  void setPrepState(int state)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

preparedPart

private transient TransactionParticipant preparedPart
Cached reference to prepared participant.


storedpart

private StorableObject storedpart

crashcount

private long crashcount

prepstate

private int prepstate

persistenceLogger

private static final Logger persistenceLogger
Logger for persistence related messages

Constructor Detail

ParticipantHandle

ParticipantHandle(TransactionParticipant preparedPart,
                  long crashcount)
            throws RemoteException
Create a new node that is equivalent to that node

Throws:
RemoteException
Method Detail

getCrashCount

long getCrashCount()

getPreParedParticipant

TransactionParticipant getPreParedParticipant()

restoreTransientState

void restoreTransientState(ProxyPreparer recoveredListenerPreparer)
                     throws RemoteException
Throws:
RemoteException

getStoredPart

StorableObject getStoredPart()

setPrepState

void setPrepState(int state)

getPrepState

int getPrepState()

hashCode

public int hashCode()
Return the hashCode of the embedded TransactionParticipant.

Overrides:
hashCode in class Object

equals

public boolean equals(Object that)
Overrides:
equals in class Object


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.