com.sun.jini.mahalo
Class CommitRecord

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

 class CommitRecord
extends Object
implements TxnLogRecord

A CommitRecord represents the logged state of a Transaction which has moved to the COMMITTED state.

Author:
Sun Microsystems, Inc.

Field Summary
(package private) static Logger logger
           
(package private)  ParticipantHandle[] parts
           
(package private) static long serialVersionUID
           
 
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
 
Constructor Summary
CommitRecord(ParticipantHandle[] parts)
          Constructs an CommitRecord which represents a Transaction which has moved to the COMMITTED state.
 
Method Summary
(package private)  ParticipantHandle[] getParts()
          Retrieves the set of TransactionParticipants associated with the recovered Transaction.
 void recover(TxnManagerTransaction tmt)
          Recovers the state encapsulated the CommitRecord to the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

logger

static final Logger logger

parts

ParticipantHandle[] parts
Constructor Detail

CommitRecord

CommitRecord(ParticipantHandle[] parts)
Constructs an CommitRecord which represents a Transaction which has moved to the COMMITTED state.

Parameters:
parts - The array of participants joined in the transaction
See Also:
Transaction, TransactionParticipant, TransactionConstants
Method Detail

getParts

ParticipantHandle[] getParts()
Retrieves the set of TransactionParticipants associated with the recovered Transaction.


recover

public void recover(TxnManagerTransaction tmt)
             throws CannotRecoverException
Recovers the state encapsulated the CommitRecord to the caller.

Specified by:
recover in interface TxnLogRecord
Parameters:
tmt - The TxnManagerTransaction to which state is recovered.
Throws:
CannotRecoverException
See Also:
TxnManagerTransaction


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