jgroup.jini.txn
Interface InternalPassiveTransactionParticipant

All Superinterfaces:
jgroup.core.InternalGMIListener, java.io.Serializable
All Known Implementing Classes:
PassiveReplicatedBankServer, PassiveReplicatedBankServer2

public interface InternalPassiveTransactionParticipant
extends jgroup.core.InternalGMIListener, java.io.Serializable

Since:
Jgroup 2.2
Author:
Heine Kolltveit

Method Summary
 void txnCompleted(long txnId, int outcome)
           
 void txnDeposit(long account, int amount, long transactionID)
          Transfer deposit state to other members int he group
 void txnPrepared(long txnId, java.lang.Object stateObj)
          Transfers the state of the txn to other members of the group.
 void txnWithdraw(long account, int amount, long transactionID)
          Transfer withdraw state to other members in the group.
 

Method Detail

txnPrepared

void txnPrepared(long txnId,
                 java.lang.Object stateObj)
                 throws java.rmi.RemoteException
Transfers the state of the txn to other members of the group.

Parameters:
txnMgr - The TxnManagerTransaction object
id - Transaction id of current transaction
Throws:
java.rmi.RemoteException

txnCompleted

void txnCompleted(long txnId,
                  int outcome)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

txnWithdraw

void txnWithdraw(long account,
                 int amount,
                 long transactionID)
                 throws java.rmi.RemoteException
Transfer withdraw state to other members in the group.

Throws:
java.rmi.RemoteException

txnDeposit

void txnDeposit(long account,
                int amount,
                long transactionID)
                throws java.rmi.RemoteException
Transfer deposit state to other members int he group

Throws:
java.rmi.RemoteException


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.