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, launchprotected final ExecutionScriptHandler<?> handler
public HandlerLifecycleJob(ExecutionScriptHandler<?> handler)
handler - target handlerIllegalArgumentException - if some parameters were nullpublic String getId()
Jobpublic String getTrackingId(ExecutionContext context)
JobgetTrackingId in class Jobcontext - current execution contextpublic Set<String> getBlockerIds()
JobgetBlockerIds in class Jobpublic String getResourceId(ExecutionContext context) throws InterruptedException, IOException
JobgetResourceId in class Jobcontext - current execution contextInterruptedException - if this execution is interruptedIOException - if failed to execute this jobCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.