|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.configuration.XMLConfiguration
org.osesb.scheduledjobs.PollerConfiguration
org.osesb.scheduledjobs.databasepoller.DatabasePollerConfiguration
public class DatabasePollerConfiguration
Extends PollerConfiguration to configure a database poller scheduled job.
DatabasePollerConfiguration(s) are enclosed by the<job-configuration>
element in a ScheduledJobConfiguration file.
ScheduledJob(s) can be configured as Quartz Jobs or as Runnable(s).
For Quartz-based ScheduledJob(s), scheduledJobConfiguration is set by
execute(). For Runnable ScheduledJob(s), scheduledJobConfiguration
is set by the constructor that takes a ScheduledJobConfiguration
as the parameter.
Database poller scheduled jobs expect a <job-configuration>
ScheduledJobConfiguration element that contains a DatabasePollerConfiguration,
which includes a org.osesb.connectors.jdbc.TableSetConfiguration and a
org.osesb.msgrouting.configuration.ClientGatewayConfiguration.
The TableSetConfiguration is used for processing database changes.
A TableSetConfiguration includes:
| Field Summary | |
|---|---|
protected TableSetConfiguration |
tableSetConfiguration
A TableSetConfiguration within this DatabasePollerConfiguration. |
| Fields inherited from class org.osesb.scheduledjobs.PollerConfiguration |
|---|
clientGatewayConfiguration |
| Fields inherited from class org.osesb.configuration.XMLConfiguration |
|---|
configFilePath, configurationProperties, constructedFromConfigFile, contentModelElement, ftpClientConfiguration, jaxrpcClientConfiguration, jdbcConfiguration, jmsClientConfiguration, log, rootConfigurationAttributes, smtpClientConfiguration, systemProperties, thisClassName |
| Constructor Summary | |
|---|---|
DatabasePollerConfiguration(org.w3c.dom.Element contentModelElement)
Creates a new instance of DatabasePollerConfiguration given the content model Element. |
|
DatabasePollerConfiguration(java.lang.String configFile)
Creates a new instance of DatabasePollerConfiguration given a XML configuration file. |
|
DatabasePollerConfiguration(java.lang.String configFile,
java.lang.String xpathExpression)
Creates a new instance of DatabasePollerConfiguration given a XML configuration file and a XPath expression that evaluates to the element that marks the beginning of the configuration. |
|
| Method Summary | |
|---|---|
TableSetConfiguration |
getTableSetConfiguration()
Returns the TableSetConfiguration for this DatabasePollerConfiguration. |
protected void |
loadTableSetConfiguration()
Loads the TableSetConfiguration enclosed within this configuration. |
static void |
main(java.lang.String[] args)
main() For testing. |
void |
setConfigFilePath(java.lang.String configFile)
Set the configuration file name. |
void |
setDebugFlag(boolean debugFlag)
Set the debugFlag. |
java.lang.String |
toString()
Returns the String representation of this DatabasePollerConfiguration. |
| Methods inherited from class org.osesb.scheduledjobs.PollerConfiguration |
|---|
getClientGatewayConfiguration, getMaxNumberOfItemsToProcess, getPercentItemsToProcess, loadClientGatewayConfiguration, setMaxNumberOfItemsToProcess, setPercentItemsToProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TableSetConfiguration tableSetConfiguration
loadTableSetConfiguration(),
package| Constructor Detail |
|---|
public DatabasePollerConfiguration(java.lang.String configFile)
throws java.lang.Exception
configFile - The path to the XML configuration file, which
is specified as a resource path or as a file system
path that is relative to the path specified
by the ConfigurationConstants.CONFIG_PATH_SYSTEMPROPERTY
System Property.
java.lang.Exception - if there is a problem reading or parsing the
configuration file.
public DatabasePollerConfiguration(java.lang.String configFile,
java.lang.String xpathExpression)
throws java.lang.Exception
configFile - The path to the XML configuration file, which
is specified as a resource path or as a file system
path that is relative to the path specified
by the ConfigurationConstants.CONFIG_PATH_SYSTEMPROPERTY
System Property.xpathExpression - A XPath expression that evaluates to the
element that marks the beginning of the
configuration.
java.lang.Exception - if there is a problem reading or parsing the
configuration file.
public DatabasePollerConfiguration(org.w3c.dom.Element contentModelElement)
throws java.lang.Exception
contentModelElement - The top level Element for the
for the configuration.
java.lang.Exception - if there is a fatal error transversing the
configuration content model enclosed by contentModelElement.| Method Detail |
|---|
protected final void loadTableSetConfiguration()
throws java.lang.Exception
java.lang.Exception - if there is a fatal error transversing the DOM
that contains the configuration content models.public void setConfigFilePath(java.lang.String configFile)
setConfigFilePath in class PollerConfigurationconfigFile - the configuration file name.public void setDebugFlag(boolean debugFlag)
setDebugFlag in class PollerConfigurationdebugFlag - The debugFlag.public TableSetConfiguration getTableSetConfiguration()
public java.lang.String toString()
toString in class PollerConfigurationpublic static void main(java.lang.String[] args)
args - commandline arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||