|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.storeandforward.impl.InternalStoreAndForwardUtils
This class provides utility methods for using the store and forward features of the Transaction Handler.
Constructor Summary | |
InternalStoreAndForwardUtils()
|
Method Summary | |
static void |
addToStore(DataPacket txnData)
This method adds a host request to the Store Queue. |
static java.lang.String |
convertSortedSetToString(java.util.SortedSet s)
This method is a conveinience method to convert a sorted set to a string that can be passed over HTTP using that channel management API. |
static java.util.SortedSet |
convertStringToSortedSet(java.lang.String s)
This method is a conveinience method to convert a string back to a sorted set. |
static int |
getNextSequenceNo(java.lang.String sequencePk)
This method looks up the SequenceGenerator entity to get the next sequence number to be used by the entity specified by the sequencePk. |
static java.lang.String |
hostDestinationStatus()
This method checks the host destinations to return their overall status. |
static boolean |
hostOnline()
This method checks the host status first it checks to ensure the host hasn't been set offline, if not it then checks the host destinations. |
static void |
resetSequenceNo(java.lang.String sequencePk)
This method is used to set the sequence number in the SequenceGenerator back to zero once the related database has been cleared. |
static void |
setAllDestinations(java.lang.String status)
This method is used to ensure all host destinations are set online once the host is back online and the store has been cleared. |
static void |
updateDestination(java.lang.String txnCode,
java.lang.String txnType,
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 |
public InternalStoreAndForwardUtils()
Method Detail |
public static void addToStore(DataPacket txnData) throws ProcessingErrorException, java.rmi.RemoteException, javax.ejb.CreateException
txnData
- the host request transaction data.
ProcessingErrorException
java.rmi.RemoteException
javax.ejb.CreateException
public static java.lang.String convertSortedSetToString(java.util.SortedSet s)
s
- the sorted set
public static java.util.SortedSet convertStringToSortedSet(java.lang.String s)
s
- a string representation of the sorted set
public static int getNextSequenceNo(java.lang.String sequencePk) throws ProcessingErrorException, java.rmi.RemoteException
sequencePk
- the primary key to be used looking up the SequenceGenerator entity
ProcessingErrorException
java.rmi.RemoteException
public static java.lang.String hostDestinationStatus() throws ProcessingErrorException
ProcessingErrorException
public static boolean hostOnline() throws ProcessingErrorException
ProcessingErrorException
public static void resetSequenceNo(java.lang.String sequencePk) throws ProcessingErrorException, java.rmi.RemoteException
sequencePk
- the primary key to be used looking up the SequenceGenerator entity
ProcessingErrorException
java.rmi.RemoteException
public static void setAllDestinations(java.lang.String status) throws ProcessingErrorException
ProcessingErrorException
public static void updateDestination(java.lang.String txnCode, java.lang.String txnType, java.lang.String status) throws ProcessingErrorException, java.rmi.RemoteException
txnCode
- the transaction codetxnType
- the type of transaction to be carried outstatus
- the new status
ProcessingErrorException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |