public abstract class HandlerLifecycleJob extends Job
Job
implementation for each handler's lifecycle event.Modifier and Type | Field and Description |
---|---|
protected ExecutionScriptHandler<?> |
handler
The target handler.
|
Constructor and Description |
---|
HandlerLifecycleJob(ExecutionScriptHandler<?> handler)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getBlockerIds()
Returns job IDs which blocks executing this job.
|
String |
getId()
Returns the ID of this job for other succeeding jobs.
|
String |
getResourceId(ExecutionContext context)
Returns the resource ID which this job requires in execution.
|
String |
getTrackingId(ExecutionContext context)
Returns the tracking ID of this job.
|
computeTrackingId, computeTrackingId, execute, getJobLabel, getServiceLabel, launch
protected final ExecutionScriptHandler<?> handler
public HandlerLifecycleJob(ExecutionScriptHandler<?> handler)
handler
- target handlerIllegalArgumentException
- if some parameters were null
public String getId()
Job
public String getTrackingId(ExecutionContext context)
Job
getTrackingId
in class Job
context
- current execution contextpublic Set<String> getBlockerIds()
Job
getBlockerIds
in class Job
public String getResourceId(ExecutionContext context) throws InterruptedException, IOException
Job
getResourceId
in class Job
context
- current execution contextInterruptedException
- if this execution is interruptedIOException
- if failed to execute this jobCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.