public final class ScriptFacade extends Object
ScriptCommand| Constructor and Description |
|---|
ScriptFacade(Configuration config)
Creates a new
ScriptFacade. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelJob(String jobId)
Cancel the specified job.
|
void |
cancelJob(UUID jobId)
Cancel the specified job.
|
void |
setIdleTime(int seconds)
Sets the time (in seconds) that the JDCP server will instruct workers to
idle if there are no jobs to be processed.
|
void |
setJobPriority(UUID jobId,
int priority)
Sets the priority of the specified job.
|
UUID |
submitJob(ParallelizableJob job)
Submits a job to be processed.
|
UUID |
submitJob(ParallelizableJob job,
String description)
Submits a job to be processed.
|
public ScriptFacade(Configuration config)
ScriptFacade.config - The application command line options.public void setIdleTime(int seconds)
throws Exception
seconds - The idle time (in seconds).Exception - if an error occurs in delegating the request to the
configured job servicepublic void setJobPriority(UUID jobId, int priority) throws Exception
jobId - The UUID of the job for which to set the
priority.priority - The priority to assign to the job.Exception - if an error occurs in delegating the request to the
configured job servicepublic void cancelJob(UUID jobId) throws Exception
jobId - The UUID identifying the job to cancel.Exception - if an error occurs in delegating the request to the
configured job servicepublic void cancelJob(String jobId) throws Exception
jobId - A String representation of the
UUID identifying the job to cancel.Exception - if an error occurs in delegating the request to the
configured job servicepublic UUID submitJob(ParallelizableJob job) throws Exception
job - The ParallelizableJob to submit.UUID identifying the submitted job.Exception - if an error occurs in delegating the request to the
configured job servicepublic UUID submitJob(ParallelizableJob job, String description) throws Exception
job - The ParallelizableJob to submit.description - A description of the job.UUID identifying the submitted job.Exception - if an error occurs in delegating the request to the
configured job serviceCopyright © 2017. All rights reserved.