|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ei.txnhandler.storeandforward.forwardtransaction.ForwardTransactionBean
public abstract class ForwardTransactionBean
This class defines the basis of the ForwardTransaction session EJB implementation. It provides a method that allow requests to be forwarded from the store. This class will send data to a servlet that will release requests from the store at a specified rate.
Constructor Summary | |
---|---|
ForwardTransactionBean()
|
Method Summary | |
---|---|
DataPacket |
forwardAll(String threadName)
This method will forward all requests in the queue. |
DataPacket |
forwardAll(String threadName,
int delay)
This method will forward all requests in the queue. |
DataPacket |
forwardSingle(String threadName,
int sequenceNumber)
This method will forward an individual request from the queue |
DataPacket |
forwardSubset(String threadName,
SortedSet transactions,
int delay)
This method will forward a subset of the store. |
DataPacket |
setMonitorStatus(int delay)
This method will set the status of the host monitor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForwardTransactionBean()
Method Detail |
---|
public DataPacket forwardAll(String threadName) throws RemoteException, ProcessingErrorException
forwardAll
in interface ForwardTransaction
threadName
- the name to be given to the forwarding thread
RemoteException
ProcessingErrorException
public DataPacket forwardAll(String threadName, int delay) throws RemoteException, ProcessingErrorException
forwardAll
in interface ForwardTransaction
threadName
- the name to be given to the forwarding threaddelay
- the time to wait between forwarding transactions in milliseconds
RemoteException
ProcessingErrorException
public DataPacket forwardSingle(String threadName, int sequenceNumber) throws RemoteException
forwardSingle
in interface ForwardTransaction
threadName
- the name to be given to the forwarding threadsequenceNumber
- the sequence number of the request to process
RemoteException
public DataPacket forwardSubset(String threadName, SortedSet transactions, int delay) throws RemoteException
forwardSubset
in interface ForwardTransaction
threadName
- the name to be given to the forwarding threadtransactions
- A sortedSet object containing all the sequence numbers of the
transactions to be forwardeddelay
- int The number of requests to forward per second, -1 for no delay
RemoteException
public DataPacket setMonitorStatus(int delay)
setMonitorStatus
in interface ForwardTransaction
delay
- the number of milliseconds to delay for
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |