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, launchpublic ScriptJob(T script, ExecutionScriptHandler<? super T> handler)
script - target scripthandler - the related script handlerIllegalArgumentException - if some parameters were nullpublic void execute(ExecutionMonitor monitor, ExecutionContext context) throws InterruptedException, IOException
Jobexecute in class Jobmonitor - a progress monitor for this jobcontext - current execution contextInterruptedException - if this execution is interruptedIOException - if failed to execute this jobpublic String getServiceLabel()
JobgetServiceLabel in class Jobpublic String getJobLabel()
JobgetJobLabel in class Jobpublic 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.