org.jboss.soa.esb.listeners.config
Class ConfigurationController

java.lang.Object
  extended by org.jboss.soa.esb.listeners.config.ConfigurationController
All Implemented Interfaces:
java.lang.Runnable

public class ConfigurationController
extends java.lang.Object
implements java.lang.Runnable

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.

Author:
kstam

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
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationController

public ConfigurationController(java.lang.String configFileName)
Construct a Configuration Manager from the named repository based configuration. The default jbossesb-1.0.xsd will be used for validation.

Parameters:
configFileName - - Name of the configuration repository.

ConfigurationController

public ConfigurationController(java.lang.String configFileName,
                               java.lang.String validationFileName)
Construct a Configuration Manager from the named repository based configuration.

Parameters:
configFileName - - Name of the configuration repository.
validationFileName - - Name of the file name used for validation (xsd or dtd).
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Start the Controller externally.

Parameters:
args - - arg[0] - the parameter file name
Throws:
java.lang.Exception

run

public void run()
Thread that observes the configuration (file). If the configuration is updated it is validated and new set jbossesb-listener.xml and jbossesb-gateway.xml is created for the current server.

Specified by:
run in interface java.lang.Runnable

hasEnded

public boolean hasEnded()
Has the controller instance ended.

Returns:
True if this controller instance has ended, otherwise false..

requestEnd

public void requestEnd()
To request the end of processing.