com.sun.jini.mahalo
Class AbortRecord

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

 class AbortRecord
extends Object
implements TxnLogRecord

An AbortRecord represents the logged state of a Transaction which has changed to the ABORTED state.

Author:
Sun Microsystems, Inc.

Field Summary
(package private) static Logger logger
           
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
AbortRecord(ParticipantHandle[] parts)
          Constructs an AbortRecord which represents a Transaction which has moved to the ABORTED 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 AbortRecord to the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parts

private ParticipantHandle[] parts

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

logger

static final Logger logger
Constructor Detail

AbortRecord

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

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

recover

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

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

getParts

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



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