com.bankframe.ei.txnhandler.storeandforward.impl.storequeue
Class StoreQueueBean

java.lang.Object
  |
  +--com.bankframe.ei.txnhandler.storeandforward.storequeue.StoreQueueBean
        |
        +--com.bankframe.ei.txnhandler.storeandforward.impl.storequeue.StoreQueueBean
All Implemented Interfaces:
ESession, java.io.Serializable
Direct Known Subclasses:
StoreQueueSessionBean

public class StoreQueueBean
extends StoreQueueBean
implements ESession

The StoreQueueBean class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.bankframe.ejb.ESession
serialVersionUID
 
Constructor Summary
StoreQueueBean()
          The default StoreQueueBean constructor.
 
Method Summary
 java.util.Vector createStoredTransaction(DataPacket data)
          This method adds a new Transaction to the store queue.
 void ejbCreate()
          This method creates a new StoreQueue Session instance.
 java.util.Vector findAllStoredTransactions(DataPacket data)
          This method performs a lookup on the Store queue
 java.util.Vector findStoredTransactionBySequenceNo(DataPacket data)
          This method performs a lookup on the Store queue by sequence number.
 java.util.Vector findStoredTransactionsInTimePeriod(DataPacket data)
          This method performs a lookup on the Store queue by time period
 java.util.Vector getAllErrorTransactions()
          This method will get all the transactions on the error store.
 java.util.Vector getAllStoredTransactions()
          This method will get all the transactions on the queued store.
 java.util.Vector getAllSuccessfulTransactions()
          This method will get all the transactions on the successful store.
 java.util.Vector getNextStoredTransactionBatch()
          This method will return a batch of transactions using the BankframeResource.properties file to get the no.
 java.util.Vector processDataPacket(DataPacket data)
          This method is called by the request router for any request with the route_id for the store queue.
 java.util.Vector processDataPackets(java.util.Vector allData)
          This method is called by the request router for any request with the route_id for the store queue.
 java.util.Vector removeFromCompleted(int seqNo)
          This method will remove a transaction from the completed store
 java.util.Vector removeFromError(int seqNo)
          This method will remove a transaction from the error store
 java.util.Vector setOffline(DataPacket data)
          This method sets the host offline
 java.util.Vector setOnline(DataPacket data)
          This method sets the host online
 
Methods inherited from class com.bankframe.ei.txnhandler.storeandforward.storequeue.StoreQueueBean
addTransactionToCompleted, addTransactionToError, createStoredTransaction, findAllErrorTransactions, findAllStoredTransactions, findAllSuccessfulTransactions, findNextStoredTransaction, findStoredTransactionBySequenceNo, findStoredTransactionsInTimePeriod, isStoreEmpty, nextStoredTransactionBatch, removeTransactionFromError, removeTransactionFromSuccessful, setOffline, setOnline
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreQueueBean

public StoreQueueBean()
The default StoreQueueBean constructor.

Method Detail

createStoredTransaction

public java.util.Vector createStoredTransaction(DataPacket data)
                                         throws ValidationException,
                                                ProcessingErrorException,
                                                java.rmi.RemoteException
This method adds a new Transaction to the store queue.

Parameters:
data - the request Vector
Returns:
a Vector containing the DataPackets representing the stored transaction created
Throws:
java.rmi.RemoteException
ProcssingErrorException
ValidationException
ProcessingErrorException

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
This method creates a new StoreQueue Session instance.

Throws:
javax.ejb.CreateException

findAllStoredTransactions

public java.util.Vector findAllStoredTransactions(DataPacket data)
                                           throws ProcessingErrorException,
                                                  java.rmi.RemoteException
This method performs a lookup on the Store queue

Returns:
A vector of DataPackets, each DataPacket representing a transaction on the queue
Throws:
ProcssingErrorException
java.rmi.RemoteException
ProcessingErrorException

findStoredTransactionBySequenceNo

public java.util.Vector findStoredTransactionBySequenceNo(DataPacket data)
                                                   throws ProcessingErrorException,
                                                          java.rmi.RemoteException
This method performs a lookup on the Store queue by sequence number.

Parameters:
data - A DataPacket containing a "SEQUENCE_NUMBER" field
Returns:
a Vector containing the DataPacket with the given sequence number
Throws:
ProcessingErrorException
java.rmi.RemoteException

findStoredTransactionsInTimePeriod

public java.util.Vector findStoredTransactionsInTimePeriod(DataPacket data)
                                                    throws ProcessingErrorException,
                                                           java.rmi.RemoteException,
                                                           ValidationException
This method performs a lookup on the Store queue by time period

Parameters:
data - A DataPacket containg the "STARTTIME" and "ENDTIME" keys.
Returns:
A vector of DataPackets, each DataPacket representing a transaction on the queue
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

getAllErrorTransactions

public java.util.Vector getAllErrorTransactions()
                                         throws ProcessingErrorException,
                                                java.rmi.RemoteException
This method will get all the transactions on the error store.

Returns:
a vector of DataPackets, each DataPacket representing an entity on the error store
Throws:
ProcessingErrorException
java.rmi.RemoteException

getAllStoredTransactions

public java.util.Vector getAllStoredTransactions()
                                          throws ProcessingErrorException,
                                                 java.rmi.RemoteException
This method will get all the transactions on the queued store.

Returns:
a vector of DataPackets, each DataPacket representing an entity on the queued store
Throws:
ProcessingErrorException
java.rmi.RemoteException

getAllSuccessfulTransactions

public java.util.Vector getAllSuccessfulTransactions()
                                              throws ProcessingErrorException,
                                                     java.rmi.RemoteException
This method will get all the transactions on the successful store.

Returns:
a vector of DataPackets, each DataPacket representing an entity on the successful store
Throws:
ProcessingErrorException
java.rmi.RemoteException

getNextStoredTransactionBatch

public java.util.Vector getNextStoredTransactionBatch()
                                               throws ProcessingErrorException,
                                                      java.rmi.RemoteException
This method will return a batch of transactions using the BankframeResource.properties file to get the no. of transactions for a batch.

Returns:
a Vector containing DataPacket representations of the transactions in the batch.
Throws:
ProcessingErrorException
RmeoteExeption
java.rmi.RemoteException

processDataPacket

public java.util.Vector processDataPacket(DataPacket data)
                                   throws ProcessingErrorException,
                                          java.rmi.RemoteException
This method is called by the request router for any request with the route_id for the store queue. The DataPacket name determines the action takes

The legal values for the DataPacket Name are

Specified by:
processDataPacket in interface ESession
Parameters:
data - the request DataPacket
Returns:
a vector containing the result of the operation
Throws:
ProcessingErrorException
java.rmi.RemoteException

processDataPackets

public java.util.Vector processDataPackets(java.util.Vector allData)
                                    throws ProcessingErrorException,
                                           java.rmi.RemoteException
This method is called by the request router for any request with the route_id for the store queue. The first DataPacket in the Vector must contain the request data

Specified by:
processDataPackets in interface ESession
Parameters:
allData - the request DataPackets
Returns:
a vector containing the result of the operation
Throws:
ProcessingErrorException
java.rmi.RemoteException

removeFromCompleted

public java.util.Vector removeFromCompleted(int seqNo)
This method will remove a transaction from the completed store

Returns:
a DataPacket with the response of this operation including exception messages

removeFromError

public java.util.Vector removeFromError(int seqNo)
This method will remove a transaction from the error store

Returns:
a DataPacket with the response of this operation including exception messages

setOffline

public java.util.Vector setOffline(DataPacket data)
                            throws ProcessingErrorException,
                                   java.rmi.RemoteException
This method sets the host offline

Returns:
a vector containing a DataPacket named SET_OFFLINE
Throws:
ProcssingErrorException
java.rmi.RemoteException
ProcessingErrorException

setOnline

public java.util.Vector setOnline(DataPacket data)
                           throws ProcessingErrorException,
                                  java.rmi.RemoteException
This method sets the host online

Returns:
a vector containing a DataPacket named SET_ONLINE
Throws:
ProcssingErrorException
java.rmi.RemoteException
ProcessingErrorException


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