com.bankframe.ei.txnhandler.storeandforward.forwardoperations
Class ForwardOperationsBean

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.storeandforward.forwardoperations.ForwardOperationsBean
All Implemented Interfaces:
ForwardOperations
Direct Known Subclasses:
ForwardOperationsBean

public abstract class ForwardOperationsBean
extends java.lang.Object
implements ForwardOperations

This class defines the basis of the ForwardOperations 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
ForwardOperationsBean()
           
 
Method Summary
 boolean forwardNextRequest()
          This method will try and forward the next request in the store.
 boolean forwardRequest(int sequenceNumber)
          This method will try and forward the next request in the store.
 boolean isStoreEmpty()
          This method will test if there are any requests on the store.
 void updateDestination(java.lang.String status)
          This method will ammend the online/offline status of the destination associated with this operation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardOperationsBean

public ForwardOperationsBean()
Method Detail

forwardNextRequest

public boolean forwardNextRequest()
                           throws ProcessingErrorException,
                                  java.rmi.RemoteException
This method will try and forward the next request in the store.

Specified by:
forwardNextRequest in interface ForwardOperations
Returns:
true if the forwarding is successful and the request has been removed from the queue, otherwise false and the request remmians on the queue.
Throws:
ProcessingErrorException
java.rmi.RemoteException

forwardRequest

public boolean forwardRequest(int sequenceNumber)
                       throws ProcessingErrorException,
                              java.rmi.RemoteException
This method will try and forward the next request in the store.

Specified by:
forwardRequest in interface ForwardOperations
Returns:
true if the forwarding is successful and the request has been removed from the queue, otherwise false and the request remmians on the queue
Throws:
ProcessingErrorException
java.rmi.RemoteException

isStoreEmpty

public boolean isStoreEmpty()
                     throws ProcessingErrorException,
                            java.rmi.RemoteException
This method will test if there are any requests on the store.

Specified by:
isStoreEmpty in interface ForwardOperations
Returns:
true if the store is empty, otherwise false
Throws:
ProcessingErrorException
java.rmi.RemoteException

updateDestination

public void updateDestination(java.lang.String status)
                       throws ProcessingErrorException,
                              java.rmi.RemoteException
This method will ammend the online/offline status of the destination associated with this operation

Specified by:
updateDestination in interface ForwardOperations
Parameters:
status - the new status
Throws:
ProcessingErrorException
java.rmi.RemoteException


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