com.bankframe.ei.txnhandler.storeandforward.forwardtransaction
Interface ForwardTransaction

All Known Subinterfaces:
ForwardTransaction
All Known Implementing Classes:
ForwardTransactionBean, ForwardTransactionBean, ForwardTransactionSessionBean

public interface ForwardTransaction

This interface defines the remote interface for the ForwardTransaction session EJB.


Method Summary
 DataPacket forwardAll(String threadName)
          This method will forward all requests in the queue.
 DataPacket forwardAll(String threadName, int rate)
          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 rate)
          This method will forward a subset of the store.
 DataPacket setMonitorStatus(int rate)
          This method will set the status of the host monitor.
 

Method Detail

setMonitorStatus

DataPacket setMonitorStatus(int rate)
                            throws RemoteException
This method will set the status of the host monitor. This method assigns the rate parameter as the number of milliseconds to delay between each try to forward a request to the store. If this is set to -1 then the monitor is suspended

Parameters:
rate - the number of milliseconds to delay for
Returns:
a DataPacket containing the result of this operation
Throws:
RemoteException

forwardAll

DataPacket forwardAll(String threadName)
                      throws RemoteException,
                             ProcessingErrorException
This method will forward all requests in the queue. It will terminate when the queue is empty or if the queue goes offline

Parameters:
threadName - String
Returns:
a DataPacket containing the result of the operation
Throws:
RemoteException
ProcessingErrorException

forwardAll

DataPacket forwardAll(String threadName,
                      int rate)
                      throws RemoteException,
                             ProcessingErrorException
This method will forward all requests in the queue. It will terminate when the queue is empty or if the queue goes offline

Parameters:
threadName - String
rate - int
Returns:
a DataPacket containing the result of the operation
Throws:
RemoteException
ProcessingErrorException

forwardSingle

DataPacket forwardSingle(String threadName,
                         int sequenceNumber)
                         throws RemoteException
This method will forward an individual request from the queue

Parameters:
sequenceNumber - the sequence number of the request to process
Returns:
a DataPacket containing the result of the operation
Throws:
RemoteException

forwardSubset

DataPacket forwardSubset(String threadName,
                         SortedSet transactions,
                         int rate)
                         throws RemoteException
This method will forward a subset of the store.

Parameters:
threadName - String
transactions - A sortedSet object containing all the sequence numbers of the transactions to be forwarded
rate - The number of requests to forward per second, -1 for no delay
Returns:
a DataPacket containing the result of this operation
Throws:
RemoteException


Copyright © 2005, 2007, Oracle. All rights reserved.