|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.storeandforward.forwardtransaction.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(java.lang.String threadName)
This method will forward all requests in the queue. |
DataPacket |
forwardAll(java.lang.String threadName,
int delay)
This method will forward all requests in the queue. |
DataPacket |
forwardSingle(java.lang.String threadName,
int sequenceNumber)
This method will forward an individual request from the queue |
DataPacket |
forwardSubset(java.lang.String threadName,
java.util.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(java.lang.String threadName) throws java.rmi.RemoteException, ProcessingErrorException
forwardAll
in interface ForwardTransaction
threadName
- the name to be given to the forwarding thread
java.rmi.RemoteException
ProcessingErrorException
public DataPacket forwardAll(java.lang.String threadName, int delay) throws java.rmi.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
java.rmi.RemoteException
ProcessingErrorException
public DataPacket forwardSingle(java.lang.String threadName, int sequenceNumber) throws java.rmi.RemoteException
forwardSingle
in interface ForwardTransaction
threadName
- the name to be given to the forwarding threadsequenceNumber
- the sequence number of the request to process
java.rmi.RemoteException
public DataPacket forwardSubset(java.lang.String threadName, java.util.SortedSet transactions, int delay) throws java.rmi.RemoteException
forwardSubset
in interface ForwardTransaction
threadName
- the name to be given to the forwarding threaddelay
- The number of requests to forward per second, -1 for no delay
java.rmi.RemoteException
public DataPacket setMonitorStatus(int delay)
setMonitorStatus
in interface ForwardTransaction
delay
- the number of milliseconds to delay for
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |