org.jmonks.batch.framework.config
Class PoolJobControllerConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobControllerConfig
      extended byorg.jmonks.batch.framework.config.PoolJobControllerConfig
Direct Known Subclasses:
DBPoolJobControllerConfig, XMLPoolJobControllerConfig

public abstract class PoolJobControllerConfig
extends JobControllerConfig

PoolJobControllerConfig represents the controller congiguration needed by PoolJobController.

PoolJobController holds the class names of the JobPool, PoolJobLoader & PoolJobProcessor and configuration required by those classes processor.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
protected  java.lang.String poolClassName
          Pool class name.
protected  java.util.Map poolConfigProps
          Map contains the properties needed by pool class.
protected  java.lang.String poolJobLoaderClassName
          Pool job loader class name.
protected  java.util.Map poolJobLoaderConfigProps
          Map contains the properties needed by pool job loader.
protected  java.lang.String poolJobProcessorClassName
          Pool job processor class name.
protected  java.util.Map poolJobProcessorConfigProps
          Map contains the properties needed by pool job processor.
protected  int poolJobProcessorThreadCount
          Holds the number of instances to be created.
 
Fields inherited from class org.jmonks.batch.framework.config.JobControllerConfig
jobControllerClassName, jobControllerConfigProps
 
Constructor Summary
PoolJobControllerConfig()
           
 
Method Summary
 java.lang.String getPoolClassName()
          Gets the pool class name.
 java.util.Map getPoolConfigProperties()
          Gets the unmodifiable map contains properties needed by the pool class.
 java.lang.String getPoolJobLoaderClassName()
          Gets the pool job loader class name.
 java.util.Map getPoolJobLoaderConfigProperties()
          Gets the unmodifiable map contains the properties needed by pool job loader.
 java.lang.String getPoolJobProcessorClassName()
          Gets the pool job processor class name.
 java.util.Map getPoolJobProcessorConfigProperties()
          Gets the unmodifiable map contains the properties needed by pool job processor.
 int getPoolJobProcessorThreadCount()
          Returns the number of instances of pool job processors needs to be created to process this job.
 java.lang.String toString()
           Returns the string representation of PoolJobControllerConfig class in the format
{PoolJobControllerConfig [controllerClassName = value] [controllerConfigProps = value] [poolJobProcessorClassName = value] [poolJobProcessorConfigProps = value] [poolJobLoaderClassName = value] [poolJobLoaderConfigProps = value] [jobPoolClassName = value] [jobPoolConfigProps = value] [poolJobProcessorThreadCount = value]}
 
Methods inherited from class org.jmonks.batch.framework.config.JobControllerConfig
getJobControllerClasName, getJobControllerConfigProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

poolJobLoaderClassName

protected java.lang.String poolJobLoaderClassName
Pool job loader class name.


poolJobLoaderConfigProps

protected java.util.Map poolJobLoaderConfigProps
Map contains the properties needed by pool job loader.


poolJobProcessorClassName

protected java.lang.String poolJobProcessorClassName
Pool job processor class name.


poolJobProcessorConfigProps

protected java.util.Map poolJobProcessorConfigProps
Map contains the properties needed by pool job processor.


poolJobProcessorThreadCount

protected int poolJobProcessorThreadCount
Holds the number of instances to be created.


poolClassName

protected java.lang.String poolClassName
Pool class name.


poolConfigProps

protected java.util.Map poolConfigProps
Map contains the properties needed by pool class.

Constructor Detail

PoolJobControllerConfig

public PoolJobControllerConfig()
Method Detail

getPoolJobLoaderClassName

public java.lang.String getPoolJobLoaderClassName()
Gets the pool job loader class name.

Returns:
Returns the pool job loader class name.

getPoolJobLoaderConfigProperties

public java.util.Map getPoolJobLoaderConfigProperties()
Gets the unmodifiable map contains the properties needed by pool job loader.

Returns:
Returns the map contains the properties.

getPoolJobProcessorClassName

public java.lang.String getPoolJobProcessorClassName()
Gets the pool job processor class name.

Returns:
Returns the pool job processor class name.

getPoolJobProcessorConfigProperties

public java.util.Map getPoolJobProcessorConfigProperties()
Gets the unmodifiable map contains the properties needed by pool job processor.

Returns:
Returns the map contains properties.

getPoolClassName

public java.lang.String getPoolClassName()
Gets the pool class name.

Returns:
Retruns the pool class name.

getPoolConfigProperties

public java.util.Map getPoolConfigProperties()
Gets the unmodifiable map contains properties needed by the pool class.

Returns:
Returns the map contains properties.

getPoolJobProcessorThreadCount

public int getPoolJobProcessorThreadCount()
Returns the number of instances of pool job processors needs to be created to process this job.

Returns:
Return the number of threads.

toString

public java.lang.String toString()

Returns the string representation of PoolJobControllerConfig class in the format
{PoolJobControllerConfig [controllerClassName = value] [controllerConfigProps = value] [poolJobProcessorClassName = value] [poolJobProcessorConfigProps = value] [poolJobLoaderClassName = value] [poolJobLoaderConfigProps = value] [jobPoolClassName = value] [jobPoolConfigProps = value] [poolJobProcessorThreadCount = value]}

Returns:
Returns the string representation of PoolJobControllerConfig.