cgl.narada.wsinfra.wsrm.impl
Class WsrmSequenceMonitorFactoryImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.impl.WsrmSequenceMonitorFactoryImpl
All Implemented Interfaces:
WsrmSequenceMonitorFactory

public class WsrmSequenceMonitorFactoryImpl
extends Object
implements WsrmSequenceMonitorFactory

This is a factory class which ensures that there is only instance of the SequenceMonitorThread running for a given database. If there are multiple databases with multiple sources/sinks this factory class will still work fine.


Method Summary
static WsrmSequenceMonitorFactory getInstance()
           
 WsrmSequenceMonitor getWsrmSequenceMonitor(String configInfo, WsMessageFlow wsMessageFlow)
          Gets a sequence monitor for the specified configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrmSequenceMonitorFactory getInstance()

getWsrmSequenceMonitor

public WsrmSequenceMonitor getWsrmSequenceMonitor(String configInfo,
                                                  WsMessageFlow wsMessageFlow)
                                           throws WsrmStorageException,
                                                  DeploymentException
Gets a sequence monitor for the specified configuration file. For a given configuration file (based on the absolute path name) only one instance of the WsrmSequenceMonitor will be running within a given JVM instance.

Specified by:
getWsrmSequenceMonitor in interface WsrmSequenceMonitorFactory
Throws:
WsrmStorageException
DeploymentException


For comments and suggestions please send e-mail to The NaradaBrokering Project