|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.config.ConfigurationController
public class ConfigurationController
The controller monitors changes in the jbossesb configuration file call jbossesb.xml. When changes are detected it validates the XML, and when it passes validation it goes on and generates the jbossesb-listener.xml and jbossesb-gateway.xml.
Constructor Summary | |
---|---|
ConfigurationController(java.lang.String configFileName)
Construct a Configuration Manager from the named repository based configuration. |
|
ConfigurationController(java.lang.String configFileName,
java.lang.String validationFileName)
Construct a Configuration Manager from the named repository based configuration. |
Method Summary | |
---|---|
protected java.lang.String |
getGatewayConfigFile()
|
protected java.lang.String |
getListenerConfigFile()
|
boolean |
hasEnded()
Has the controller instance ended. |
static void |
main(java.lang.String[] args)
Start the Controller externally. |
void |
requestEnd()
To request the end of processing. |
void |
run()
Thread that observes the configuration (file). |
ManagedLifecycleController |
startController(Generator.XMLBeansModel configModel)
|
static ManagedLifecycleController |
startController(Generator.XMLBeansModel configModel,
ConfigTree listenerConfig,
ConfigTree gatewayConfig)
|
static void |
stopController(ManagedLifecycleController lifecycleController)
Stop the controller if it is active. |
boolean |
waitForRequestedEnd(long maxDelay)
Wait for a request to end. |
boolean |
waitUntilEnded()
Wait until the ended flag has been set. |
boolean |
waitUntilEnded(long maxDelay)
Wait until the ended flag has been set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationController(java.lang.String configFileName)
configFileName
- - Name of the configuration repository.public ConfigurationController(java.lang.String configFileName, java.lang.String validationFileName)
configFileName
- - Name of the configuration repository.validationFileName
- - Name of the file name used for validation (xsd or dtd).Method Detail |
---|
public static void main(java.lang.String[] args)
args
- - arg[0] - the parameter file nameprotected java.lang.String getListenerConfigFile()
protected java.lang.String getGatewayConfigFile()
public void run()
run
in interface java.lang.Runnable
public boolean hasEnded()
public boolean waitUntilEnded()
public boolean waitUntilEnded(long maxDelay)
maxDelay
- The maximum time to wait for the flag to be set.
public boolean waitForRequestedEnd(long maxDelay)
maxDelay
- The maximum time to wait in milliseconds.public void requestEnd()
public ManagedLifecycleController startController(Generator.XMLBeansModel configModel) throws ParamRepositoryException, org.xml.sax.SAXException, ManagedLifecycleException, ConfigurationException
ParamRepositoryException
org.xml.sax.SAXException
ManagedLifecycleException
ConfigurationException
public static ManagedLifecycleController startController(Generator.XMLBeansModel configModel, ConfigTree listenerConfig, ConfigTree gatewayConfig) throws ParamRepositoryException, org.xml.sax.SAXException, ManagedLifecycleException, ConfigurationException
ParamRepositoryException
org.xml.sax.SAXException
ManagedLifecycleException
ConfigurationException
public static void stopController(ManagedLifecycleController lifecycleController)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |