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.
-
NRObserver()
- Constructor
-
addNRTransfer(NRTransfer)
-
-
onAbort(Transaction)
- Is called when the transaction is aborted.
-
onBegin(Transaction)
- Is called when the transaction is begun.
-
onCommit(Transaction)
- Is called when the transaction makes a commit.
-
onEnd(Transaction)
- Is called when the transaction is ended.
-
onMakeSave(Transaction)
- Is called when the transaction saves its state to persistent storage.
-
onPrepare(Transaction)
- Is called when the transaction makes a prepare.
-
onReceive(Transaction)
- Is called when the transaction makes a receive.
-
onRollback(Transaction)
- Is called when the transaction makes a rollback.
-
onSend(Transaction)
- Is called when the transaction makes a send.
-
onSetSignal(Transaction)
- Is called when a signal is set in the transaction.
NRObserver
public NRObserver()
- Constructor
addNRTransfer
public void addNRTransfer(NRTransfer nrt)
- Parameters:
- nrt - The NRTransfer that is to be started when
onEnd().
onAbort
public void onAbort(Transaction t)
- Is called when the transaction is aborted.
Does nothing.
- Parameters:
- t - The transaction which is observered
onBegin
public void onBegin(Transaction t)
- Is called when the transaction is begun.
Does nothing.
- Parameters:
- t - The transaction which is observered
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
onRollback
public void onRollback(Transaction t)
- Is called when the transaction makes a rollback.
Does nothing.
- Parameters:
- t - The transaction which is observered
onCommit
public void onCommit(Transaction t)
- Is called when the transaction makes a commit.
Does nothing.
- Parameters:
- t - The transaction which is observered
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
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
onPrepare
public void onPrepare(Transaction t)
- Is called when the transaction makes a prepare.
Does nothing.
- Parameters:
- t - The transaction which is observered
onSend
public void onSend(Transaction t)
- Is called when the transaction makes a send.
Does nothing.
- Parameters:
- t - The transaction which is observered
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