All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.transfer.VectorTransfer

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

public class VectorTransfer
extends TransferTransaction
A transfer protocoll for transferring Vectors.


Constructor Index

 o VectorTransfer()
 o VectorTransfer(Vector)
Construct a VectorTransfer from a Vector.

Method Index

 o getNRView()
 o getObject()
 o receive()
This method receives a Vector from the peer.
 o send()
This method sends the Vector to the peer.

Constructors

 o VectorTransfer
 public VectorTransfer()
 o VectorTransfer
 public VectorTransfer(Vector v)
Construct a VectorTransfer from a Vector.

Methods

 o getNRView
 public NRView getNRView()
Returns:
Our NRView. This is simply the concatenation of the NRView of all subtransfers.
Overrides:
getNRView in class TransferTransaction
 o send
 protected void send() throws TXContextCommException
This method sends the Vector to the peer. It is called by the inherited run() method of TransferTransaction

Throws: TXContextCommException
When comm problems occur.
Overrides:
send in class TransferTransaction
 o receive
 protected void receive() throws TXContextCommException
This method receives a Vector from the peer. It is called by the inherited run() method of TransferTransaction

Throws: TXContextCommException
When comm problems occur.
Overrides:
receive in class TransferTransaction
 o getObject
 public Object getObject()
Returns:
The Vector inside the VectorTransaction. Will return null when the VectorTransfer is either not initialized (in the case of a sender VectorTransfer) or when no object was received so far (receiver VectorTransfer).
Overrides:
getObject in class TransferTransaction

All Packages  Class Hierarchy  This Package  Previous  Next  Index