org.iids.aos.kernel.ac
Class Shipment

java.lang.Object
  extended by org.iids.aos.kernel.ac.Shipment

public class Shipment
extends java.lang.Object

Class representing all aspects of an ACTP transaction in progress.

Author:
Arno Bakker

Field Summary
protected  int acid
          If sucessfull, the AgentContainer ID of shipment
protected  int currentSize
          Size of shipment
protected  KernelException exception
          Set if shipment encountered a problem
protected  TransactionID receivedTID
          Transaction ID of the shipment actually received.
protected  long shipmentExpiryTime
          Before what time should a shipment be collected
protected  Endpoint sourceEndpoint
          Source of shipment
protected  long tidExpiryTime
          Expiry time of the receivedTID according to receiver admin
 
Constructor Summary
Shipment()
          Creates a shipment object.
 
Method Summary
 int getACID()
           
 int getCurrentSize()
           
 KernelException getException()
           
 TransactionID getReceivedTID()
           
 Endpoint getSourceEndpoint()
           
 long getTIDExpiryTime()
           
 boolean isGarbage()
           
 void setACID(int acid)
           
 void setCurrentSize(int currentSize)
           
 void setException(KernelException exception)
           
 void setReceivedTID(TransactionID tid)
           
 void setSourceEndpoint(Endpoint ep)
           
 void setTIDExpiryTime(long tidExpiryTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

protected KernelException exception
Set if shipment encountered a problem


acid

protected int acid
If sucessfull, the AgentContainer ID of shipment


receivedTID

protected TransactionID receivedTID
Transaction ID of the shipment actually received.


sourceEndpoint

protected Endpoint sourceEndpoint
Source of shipment


currentSize

protected int currentSize
Size of shipment


tidExpiryTime

protected long tidExpiryTime
Expiry time of the receivedTID according to receiver admin


shipmentExpiryTime

protected long shipmentExpiryTime
Before what time should a shipment be collected

Constructor Detail

Shipment

public Shipment()
Creates a shipment object.

Method Detail

setException

public void setException(KernelException exception)

getException

public KernelException getException()

setACID

public void setACID(int acid)

getACID

public int getACID()

setReceivedTID

public void setReceivedTID(TransactionID tid)

getReceivedTID

public TransactionID getReceivedTID()

setSourceEndpoint

public void setSourceEndpoint(Endpoint ep)

getSourceEndpoint

public Endpoint getSourceEndpoint()

setCurrentSize

public void setCurrentSize(int currentSize)

getCurrentSize

public int getCurrentSize()

isGarbage

public boolean isGarbage()

setTIDExpiryTime

public void setTIDExpiryTime(long tidExpiryTime)

getTIDExpiryTime

public long getTIDExpiryTime()


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.