All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.transfer.TokenBasedTransfer

java.lang.Object
   |
   +----semper.txlayer.transaction.Transaction
           |
           +----semper.txlayer.transfer.TransferTransaction
                   |
                   +----semper.txlayer.transfer.TokenBasedTransfer

public abstract class TokenBasedTransfer
extends TransferTransaction
implements Serializable
This abstract class provides a basic TokenBased communication mechanisms. Derived classes should only have to implement processToken().


Constructor Index

 o TokenBasedTransfer()
 o TokenBasedTransfer(TransactionID)

Method Index

 o processToken(Vector)
This is the place to code the behaviour of this subclass protocol.
 o receive()
This method is invoked when the preparation is done and the transaction shall begin.
 o send()
This method is invoked when the preparation is done and the transaction shall begin.

Constructors

 o TokenBasedTransfer
 public TokenBasedTransfer()
 o TokenBasedTransfer
 public TokenBasedTransfer(TransactionID tid)

Methods

 o send
 protected void send() throws TXContextCommException
This method is invoked when the preparation is done and the transaction shall begin. In contradiction to the superclass, this is not the place to enter code. Use processToken(_).

Throws: TXContextCommException
When comm problems occur.
Overrides:
send in class TransferTransaction
 o receive
 protected void receive() throws TXContextCommException
This method is invoked when the preparation is done and the transaction shall begin. In contradiction to the superclass, this is not the place to enter code. Use processToken(_).

Throws: TXContextCommException
When comm problems occur.
Overrides:
receive in class TransferTransaction
 o processToken
 protected abstract Vector processToken(Vector v)
This is the place to code the behaviour of this subclass protocol. To start the protocol, this method is with a null-reference as parameter. Similarly, the end is indicated by returning a null-reference. The extension programmer herself has to maintain states and all those things needed in the protocol automata.


All Packages  Class Hierarchy  This Package  Previous  Next  Index