All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.transfer.NRObserver

java.lang.Object
   |
   +----semper.txlayer.transfer.NRObserver

public class NRObserver
extends Object
implements TransferObserver
The task of this class is to register itself with TransferTransactions as an observer and to start all NRTransfers that have been registered when its notified onEnd.


Constructor Index

 o NRObserver()
Constructor

Method Index

 o addNRTransfer(NRTransfer)
 o onAbort(Transaction)
Is called when the transaction is aborted.
 o onBegin(Transaction)
Is called when the transaction is begun.
 o onCommit(Transaction)
Is called when the transaction makes a commit.
 o onEnd(Transaction)
Is called when the transaction is ended.
 o onMakeSave(Transaction)
Is called when the transaction saves its state to persistent storage.
 o onPrepare(Transaction)
Is called when the transaction makes a prepare.
 o onReceive(Transaction)
Is called when the transaction makes a receive.
 o onRollback(Transaction)
Is called when the transaction makes a rollback.
 o onSend(Transaction)
Is called when the transaction makes a send.
 o onSetSignal(Transaction)
Is called when a signal is set in the transaction.

Constructors

 o NRObserver
 public NRObserver()
Constructor

Methods

 o addNRTransfer
 public void addNRTransfer(NRTransfer nrt)
Parameters:
nrt - The NRTransfer that is to be started when onEnd().
 o onAbort
 public void onAbort(Transaction t)
Is called when the transaction is aborted. Does nothing.

Parameters:
t - The transaction which is observered
 o onBegin
 public void onBegin(Transaction t)
Is called when the transaction is begun. Does nothing.

Parameters:
t - The transaction which is observered
 o onEnd
 public void onEnd(Transaction t)
Is called when the transaction is ended. Starts and joins all previously registered NRTransfers.

Parameters:
t - The transaction which is observered
 o onRollback
 public void onRollback(Transaction t)
Is called when the transaction makes a rollback. Does nothing.

Parameters:
t - The transaction which is observered
 o onCommit
 public void onCommit(Transaction t)
Is called when the transaction makes a commit. Does nothing.

Parameters:
t - The transaction which is observered
 o onMakeSave
 public void onMakeSave(Transaction t)
Is called when the transaction saves its state to persistent storage. Does nothing.

Parameters:
t - The transaction which is observered
 o onSetSignal
 public void onSetSignal(Transaction t)
Is called when a signal is set in the transaction. Does nothing.

Parameters:
t - The transaction which is observered
 o onPrepare
 public void onPrepare(Transaction t)
Is called when the transaction makes a prepare. Does nothing.

Parameters:
t - The transaction which is observered
 o onSend
 public void onSend(Transaction t)
Is called when the transaction makes a send. Does nothing.

Parameters:
t - The transaction which is observered
 o onReceive
 public void onReceive(Transaction t)
Is called when the transaction makes a receive. Does nothing.

Parameters:
t - The transaction which is observered

All Packages  Class Hierarchy  This Package  Previous  Next  Index