com.sun.jini.mahalo
Class CommitRecord
java.lang.Object
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.
Constructor Summary |
CommitRecord(ParticipantHandle[] parts)
Constructs an CommitRecord which represents a
Transaction which has moved to the COMMITTED state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
logger
static final Logger logger
parts
ParticipantHandle[] parts
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
getParts
ParticipantHandle[] getParts()
- Retrieves the set of
TransactionParticipant
s 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.