com.bankframe.ei.txnhandler.storeandforward
Class StoreAndForwardUtils

java.lang.Object
  |
  +--com.bankframe.ei.txnhandler.storeandforward.StoreAndForwardUtils

public class StoreAndForwardUtils
extends java.lang.Object

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

StoreAndForwardUtils

public StoreAndForwardUtils()
Method Detail

isHostOnline

public static boolean isHostOnline(java.lang.String ejbName,
                                   java.lang.String ejbOperation)
                            throws ProcessingErrorException,
                                   HostOfflineException
This method determines if the host or hosts used by the specified transaction are online.

Parameters:
ejbName - The name of the entity bean involved in this transaction
ejbOperation - The name of the operation being carried out
Returns:
true if all the hosts required for the transaction are online, or false if any or all of the hosts are offline.
ProcessingErrorException
HostOfflineException

isHostOnline

public static boolean isHostOnline(java.lang.String ejbName,
                                   java.lang.String ejbOperation,
                                   java.lang.String companyCode)
                            throws ProcessingErrorException,
                                   HostOfflineException
This method determines if the host or hosts used by the specified transaction are online.

Parameters:
ejbName - The name of the entity bean involved in this transaction
ejbOperation - The name of the operation being carried out
companyCode - The company code
Returns:
true if all the hosts required for the transaction are online, or false if any or all of the hosts are offline.
ProcessingErrorException
HostOfflineException

setOffline

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

Throws:
ProcessingErrorException
java.rmi.RemoteException

setOnline

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

Throws:
ProcessingErrorException
java.rmi.RemoteException

transactionStoreable

public static boolean transactionStoreable(java.lang.String ejbName,
                                           java.lang.String ejbOperation)
                                    throws ProcessingErrorException,
                                           HostOfflineException
This method determines if the specified transaction can be stored if the host goes offline after it was initiated online.

Parameters:
ejbName - The name of the entity bean involved in this transaction
ejbOperation - The name of the persister operation being carried out
Returns:
true if the transaction can be stored, or false if the transaction can't.
ProcessingErrorException
HostOfflineException


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