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

java.lang.Object
  extended by com.bankframe.ei.txnhandler.storeandforward.storequeue.StoreQueueBean
      extended by com.bankframe.ei.txnhandler.storeandforward.impl.storequeue.StoreQueueBean
All Implemented Interfaces:
ESession, 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
 Vector createStoredTransaction(DataPacket data)
          This method adds a new Transaction to the store queue.
 void ejbCreate()
          This method creates a new StoreQueue Session instance.
 Vector findAllStoredTransactions(DataPacket data)
          This method performs a lookup on the Store queue
 Vector findStoredTransactionBySequenceNo(DataPacket data)
          This method performs a lookup on the Store queue by sequence number.
 Vector findStoredTransactionsInTimePeriod(DataPacket data)
          This method performs a lookup on the Store queue by time period
 Vector getAllErrorTransactions()
          This method will get all the transactions on the error store.
 Vector getAllStoredTransactions()
          This method will get all the transactions on the queued store.
 Vector getAllSuccessfulTransactions()
          This method will get all the transactions on the successful store.
 Vector getNextStoredTransactionBatch()
          This method will return a batch of transactions using the BankframeResource.properties file to get the no.
 Vector processDataPacket(DataPacket data)
          This method is called by the request router for any request with the route_id for the store queue.
 Vector processDataPackets(Vector allData)
          This method is called by the request router for any request with the route_id for the store queue.
 Vector removeFromCompleted(int seqNo)
          This method will remove a transaction from the completed store
 Vector removeFromError(int seqNo)
          This method will remove a transaction from the error store
 Vector setOffline(DataPacket data)
          This method sets the host offline
 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 Vector createStoredTransaction(DataPacket data)
                               throws ValidationException,
                                      ProcessingErrorException,
                                      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:
RemoteException
ProcssingErrorException
ValidationException
ProcessingErrorException

ejbCreate

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

Throws:
CreateException

findAllStoredTransactions

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

Parameters:
data - the request DataPacket
Returns:
A vector of DataPackets, each DataPacket representing a transaction on the queue
Throws:
ProcssingErrorException
RemoteException
ProcessingErrorException

findStoredTransactionBySequenceNo

public Vector findStoredTransactionBySequenceNo(DataPacket data)
                                         throws ProcessingErrorException,
                                                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
RemoteException

findStoredTransactionsInTimePeriod

public Vector findStoredTransactionsInTimePeriod(DataPacket data)
                                          throws ProcessingErrorException,
                                                 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
RemoteException
ValidationException

getAllErrorTransactions

public Vector getAllErrorTransactions()
                               throws ProcessingErrorException,
                                      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
RemoteException

getAllStoredTransactions

public Vector getAllStoredTransactions()
                                throws ProcessingErrorException,
                                       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
RemoteException

getAllSuccessfulTransactions

public Vector getAllSuccessfulTransactions()
                                    throws ProcessingErrorException,
                                           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
RemoteException

getNextStoredTransactionBatch

public Vector getNextStoredTransactionBatch()
                                     throws ProcessingErrorException,
                                            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
RemoteException

processDataPacket

public Vector processDataPacket(DataPacket data)
                         throws ProcessingErrorException,
                                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
RemoteException

processDataPackets

public Vector processDataPackets(Vector allData)
                          throws ProcessingErrorException,
                                 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 DataPacket
Returns:
a vector containing the result of the operation
Throws:
ProcessingErrorException
RemoteException

removeFromCompleted

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

Parameters:
seqNo - the sequence number of the transaction to remove
Returns:
a DataPacket with the response of this operation including exception messages

removeFromError

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

Parameters:
seqNo - the sequence number of the transaction to remove
Returns:
a DataPacket with the response of this operation including exception messages

setOffline

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

Parameters:
data - the request DataPacket
Returns:
a vector containing a DataPacket named SET_OFFLINE
Throws:
ProcssingErrorException
RemoteException
ProcessingErrorException

setOnline

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

Parameters:
data - the request DataPacket
Returns:
a vector containing a DataPacket named SET_ONLINE
Throws:
ProcssingErrorException
RemoteException
ProcessingErrorException


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