|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bankframe.ei.txnhandler.storeandforward.StoreAndForwardUtils
This class provides utility methods for using the store and forward features of the Transaction Handler.
Constructor Summary | |
StoreAndForwardUtils()
|
Method Summary | |
static boolean |
isHostOnline(java.lang.String ejbName,
java.lang.String ejbOperation)
This method determines if the host or hosts used by the specified transaction are online. |
static boolean |
isHostOnline(java.lang.String ejbName,
java.lang.String ejbOperation,
java.lang.String companyCode)
This method determines if the host or hosts used by the specified transaction are online. |
static void |
setOffline()
This method will ammend the online/offline status of the destination associated with this operation |
static void |
setOnline()
This method will ammend the online/offline status of the destination associated with this operation |
static boolean |
transactionStoreable(java.lang.String ejbName,
java.lang.String ejbOperation)
This method determines if the specified transaction can be stored if the host goes offline after it was initiated online. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StoreAndForwardUtils()
Method Detail |
public static boolean isHostOnline(java.lang.String ejbName, java.lang.String ejbOperation) throws ProcessingErrorException, HostOfflineException
ejbName
- The name of the entity bean involved in this transactionejbOperation
- The name of the operation being carried out
true
if all the hosts required for the transaction are online, or false
if any or all of the hosts are offline.
ProcessingErrorException
HostOfflineException
public static boolean isHostOnline(java.lang.String ejbName, java.lang.String ejbOperation, java.lang.String companyCode) throws ProcessingErrorException, HostOfflineException
ejbName
- The name of the entity bean involved in this transactionejbOperation
- The name of the operation being carried outcompanyCode
- The company code
true
if all the hosts required for the transaction are online, or false
if any or all of the hosts are offline.
ProcessingErrorException
HostOfflineException
public static void setOffline() throws ProcessingErrorException, java.rmi.RemoteException
ProcessingErrorException
java.rmi.RemoteException
public static void setOnline() throws ProcessingErrorException, java.rmi.RemoteException
ProcessingErrorException
java.rmi.RemoteException
public static boolean transactionStoreable(java.lang.String ejbName, java.lang.String ejbOperation) throws ProcessingErrorException, HostOfflineException
ejbName
- The name of the entity bean involved in this transactionejbOperation
- The name of the persister operation being carried out
true
if the transaction can be stored, or false
if the transaction can't.
ProcessingErrorException
HostOfflineException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |