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.
-
VectorTransfer()
-
-
VectorTransfer(Vector)
- Construct a VectorTransfer from a Vector.
-
getNRView()
-
-
getObject()
-
-
receive()
- This method receives a Vector from the peer.
-
send()
- This method sends the Vector to the peer.
VectorTransfer
public VectorTransfer()
VectorTransfer
public VectorTransfer(Vector v)
- Construct a VectorTransfer from a Vector.
getNRView
public NRView getNRView()
- Returns:
- Our NRView. This is simply the concatenation
of the NRView of all subtransfers.
- Overrides:
- getNRView in class TransferTransaction
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
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
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