com.waveset.task
Class SourceAdapterTask
java.lang.Object
com.waveset.task.Executor
com.waveset.task.SourceAdapterTask
- public class SourceAdapterTask
- extends Executor
Methods inherited from class com.waveset.task.Executor |
addExtendedResult, delete, execute, getExtendedResult, getPool, isSuspendRequested, isTerminateRequested, println, setPool, setSuspendRequested, setTerminateRequested |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
REQUEST_STOP
public static final java.lang.String REQUEST_STOP
- Variable names for TaskEvent attributes to start and stop source adapters
- See Also:
- Constant Field Values
REQUEST_START
public static final java.lang.String REQUEST_START
- See Also:
- Constant Field Values
TASK_DEF_ID
public static final java.lang.String TASK_DEF_ID
- See Also:
- Constant Field Values
RUNNER_TASK_DEF_ID
public static final java.lang.String RUNNER_TASK_DEF_ID
- See Also:
- Constant Field Values
TASK_INSTANCE_NAME
public static final java.lang.String TASK_INSTANCE_NAME
- Prefix of task instance name, host name is now appended as of IdM 6.0.
- See Also:
getTaskName( String hostName )
,
Constant Field Values
TASK_RUNNER_BASE_NAME
public static final java.lang.String TASK_RUNNER_BASE_NAME
- See Also:
- Constant Field Values
SOURCE_NAME_OR_ID
public static final java.lang.String SOURCE_NAME_OR_ID
- Name of variable passed to SARunner task
- See Also:
- Constant Field Values
SourceAdapterTask
public SourceAdapterTask()
doRealWork
protected void doRealWork(TaskContext ctx,
TaskInstance task)
throws java.lang.Exception
- Overrides:
doRealWork
in class Executor
- Throws:
java.lang.Exception
processEvent
public void processEvent(TaskEvent te)
- Description copied from class:
Executor
- Handle an extended event - not suspend or terminate
- Overrides:
processEvent
in class Executor
shutdown
public static void shutdown()
startResource
public boolean startResource(java.lang.String resourceName)
throws WavesetException
- Throws:
WavesetException
stopResource
public boolean stopResource(java.lang.String resourceName)
getTaskName
public static java.lang.String getTaskName(java.lang.String serverId)
- Utility method to consistently determine SourceAdapterTask's name,
consistent with how the Scheduler names tasks.
- Parameters:
serverId
-
- Returns:
- "SourceAdapterTask $serverId"