|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
public abstract class TaskManagerFactory
All task implementations require a corresponding task manager factory. This task manager factory is responsible for instantiating a task based upon command line arguments, and instantiating a task manager to manage the task within a pipeline. The factories are singleton instances registered globally and re-used for every task to be created.
Constructor Summary | |
---|---|
protected |
TaskManagerFactory()
Creates a new instance. |
Method Summary | |
---|---|
TaskManager |
createTaskManager(TaskConfiguration taskConfig)
Create a new task manager containing a task instance. |
protected abstract TaskManager |
createTaskManagerImpl(TaskConfiguration taskConfig)
Create a new task manager containing a task instance. |
protected boolean |
doesArgumentExist(TaskConfiguration taskConfig,
java.lang.String argName)
Checks if the specified argument has been supplied. |
protected boolean |
getBooleanArgument(TaskConfiguration taskConfig,
java.lang.String argName,
boolean defaultValue)
Utility method for retrieving a boolean argument value from a Map of task arguments. |
protected java.util.Date |
getDateArgument(TaskConfiguration taskConfig,
java.lang.String argName,
java.util.Date defaultValue)
Utility method for retrieving a date argument value from a Map of task arguments. |
protected java.util.Date |
getDateArgument(TaskConfiguration taskConfig,
java.lang.String argName,
java.util.TimeZone timeZone)
Utility method for retrieving a date argument value from a Map of task arguments. |
protected int |
getDefaultIntegerArgument(TaskConfiguration taskConfig,
int defaultValue)
Utility method for retrieving the default argument for the task as an integer. |
protected java.lang.String |
getDefaultStringArgument(TaskConfiguration taskConfig,
java.lang.String defaultValue)
Utility method for retrieving the default argument for the task as a String. |
protected double |
getDoubleArgument(TaskConfiguration taskConfig,
java.lang.String argName,
double defaultValue)
Utility method for retrieving a double argument value from a Map of task arguments. |
protected int |
getIntegerArgument(TaskConfiguration taskConfig,
java.lang.String argName)
Utility method for retrieving an integer argument value from a Map of task arguments. |
protected int |
getIntegerArgument(TaskConfiguration taskConfig,
java.lang.String argName,
int defaultValue)
Utility method for retrieving an integer argument value from a Map of task arguments. |
protected java.lang.String |
getStringArgument(TaskConfiguration taskConfig,
java.lang.String argName)
Utility method for retrieving a String argument value from a Map of task arguments. |
protected java.lang.String |
getStringArgument(TaskConfiguration taskConfig,
java.lang.String argName,
java.lang.String defaultValue)
Utility method for retrieving a String argument value from a Map of task arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TaskManagerFactory()
Method Detail |
---|
public TaskManager createTaskManager(TaskConfiguration taskConfig)
taskConfig
- Contains all information required to instantiate and configure
the task.
protected abstract TaskManager createTaskManagerImpl(TaskConfiguration taskConfig)
taskConfig
- Contains all information required to instantiate and configure
the task.
protected boolean doesArgumentExist(TaskConfiguration taskConfig, java.lang.String argName)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.
protected java.lang.String getDefaultStringArgument(TaskConfiguration taskConfig, java.lang.String defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.defaultValue
- The default value of the argument if not value is available.
protected java.lang.String getStringArgument(TaskConfiguration taskConfig, java.lang.String argName)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.
protected java.lang.String getStringArgument(TaskConfiguration taskConfig, java.lang.String argName, java.lang.String defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.defaultValue
- The default value of the argument if not value is available.
protected int getDefaultIntegerArgument(TaskConfiguration taskConfig, int defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.defaultValue
- The default value of the argument if not value is available.
protected int getIntegerArgument(TaskConfiguration taskConfig, java.lang.String argName)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.
protected int getIntegerArgument(TaskConfiguration taskConfig, java.lang.String argName, int defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.defaultValue
- The default value of the argument if not value is available.
protected double getDoubleArgument(TaskConfiguration taskConfig, java.lang.String argName, double defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.defaultValue
- The default value of the argument if not value is available.
protected java.util.Date getDateArgument(TaskConfiguration taskConfig, java.lang.String argName, java.util.Date defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.defaultValue
- The default value of the argument if not value is available.
protected java.util.Date getDateArgument(TaskConfiguration taskConfig, java.lang.String argName, java.util.TimeZone timeZone)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.timeZone
- The time zone to parse the date in.
protected boolean getBooleanArgument(TaskConfiguration taskConfig, java.lang.String argName, boolean defaultValue)
taskConfig
- Contains all information required to instantiate and configure
the task.argName
- The name of the argument.defaultValue
- The default value of the argument if not value is available.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |