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

All Known Subinterfaces:
ForwardTransaction
All Known Implementing Classes:
ForwardTransactionBean

public interface ForwardTransaction

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

Author:
Engineering

Method Summary
 DataPacket forwardAll(java.lang.String threadName)
          This method will forward all requests in the queue.
 DataPacket forwardAll(java.lang.String threadName, int rate)
          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 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

public DataPacket setMonitorStatus(int rate)
                            throws java.rmi.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:
java.rmi.RemoteException

forwardAll

public DataPacket forwardAll(java.lang.String threadName)
                      throws java.rmi.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

Returns:
a DataPacket containing the result of the operation
Throws:
java.rmi.RemoteException
ProcessingErrorException

forwardAll

public DataPacket forwardAll(java.lang.String threadName,
                             int rate)
                      throws java.rmi.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

Returns:
a DataPacket containing the result of the operation
Throws:
java.rmi.RemoteException
ProcessingErrorException

forwardSingle

public DataPacket forwardSingle(java.lang.String threadName,
                                int sequenceNumber)
                         throws java.rmi.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:
java.rmi.RemoteException

forwardSubset

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

Parameters:
rate - The number of requests to forward per second, -1 for no delay
Returns:
a DataPacket containing the result of this operation
Throws:
java.rmi.RemoteException


Copyright © 2004 Siebel Systems, Inc. All rights reserved.