T
- kind of scriptpublic class ScriptJob<T extends ExecutionScript> extends Job
Constructor and Description |
---|
ScriptJob(T script,
ExecutionScriptHandler<? super T> handler)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ExecutionMonitor monitor,
ExecutionContext context)
Executes this job.
|
Set<String> |
getBlockerIds()
Returns job IDs which blocks executing this job.
|
String |
getId()
Returns the ID of this job for other succeeding jobs.
|
String |
getJobLabel()
Returns the target job label.
|
String |
getResourceId(ExecutionContext context)
Returns the resource ID which this job requires in execution.
|
String |
getServiceLabel()
Returns the service label which actually executes this job.
|
String |
getTrackingId(ExecutionContext context)
Returns the tracking ID of this job.
|
computeTrackingId, computeTrackingId, launch
public ScriptJob(T script, ExecutionScriptHandler<? super T> handler)
script
- target scripthandler
- the related script handlerIllegalArgumentException
- if some parameters were null
public void execute(ExecutionMonitor monitor, ExecutionContext context) throws InterruptedException, IOException
Job
execute
in class Job
monitor
- a progress monitor for this jobcontext
- current execution contextInterruptedException
- if this execution is interruptedIOException
- if failed to execute this jobpublic String getServiceLabel()
Job
getServiceLabel
in class Job
public String getJobLabel()
Job
getJobLabel
in class Job
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.