|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobService
A JobService represents a resource management back-end.
It allows for job creation, submission, and discovery. Deviation from the
SAGA specification: the convenience method runJob
is specified
differently here, because as described in the SAGA specifications it cannot
easily be specified in Java, since Java has no OUT parameters.
Field Summary |
---|
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Method Summary | |
---|---|
Job |
createJob(JobDescription jd)
Creates a job instance as specified by the job description provided. |
Task<JobService,Job> |
createJob(TaskMode mode,
JobDescription jd)
Creates a task that creates a job instance as specified by the job description provided. |
Job |
getJob(String jobId)
Returns the job instance associated with the specified job identification. |
Task<JobService,Job> |
getJob(TaskMode mode,
String jobId)
Creates a task that obtains the job instance associated with the specified job identification. |
JobSelf |
getSelf()
Returns a job instance representing the calling application. |
Task<JobService,JobSelf> |
getSelf(TaskMode mode)
Creates a task that obtains a job instance representing the calling application. |
List<String> |
list()
Obtains the list of jobs that are currently known to the resource manager. |
Task<JobService,List<String>> |
list(TaskMode mode)
Creates a task that obtains the list of jobs that are currently known to the resource manager. |
Job |
runJob(String commandLine)
Runs the specified command, non-interactively, on a host chosen by the implementation. |
Job |
runJob(String commandLine,
boolean interactive)
Runs the specified command on a host chosen by the implementation. |
Job |
runJob(String commandLine,
String host)
Runs the specified command, non-interactively, on the specified host. |
Job |
runJob(String commandLine,
String host,
boolean interactive)
Runs the specified command on the specified host. |
Task<JobService,Job> |
runJob(TaskMode mode,
String commandLine)
Creates a task that runs the specified command, non-interactively, on a host chosen by the implementation. |
Task<JobService,Job> |
runJob(TaskMode mode,
String commandLine,
boolean interactive)
Creates a task that runs the specified command on a host chosen by the implementation. |
Task<JobService,Job> |
runJob(TaskMode mode,
String commandLine,
String host)
Creates a task that runs the specified command, non-interactively, on the specified host. |
Task<JobService,Job> |
runJob(TaskMode mode,
String commandLine,
String host,
boolean interactive)
Creates a task that runs the specified command on the specified host. |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
clone, getId, getSession |
Method Detail |
---|
Job createJob(JobDescription jd) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
jd
- the job description.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the job description does not contain a valid
EXECUTABLE, or contains invalid values.Job runJob(String commandLine, String host, boolean interactive) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
Job.getStdin()
,
Job.getStdout()
, and Job.getStderr()
methods.
commandLine
- the command to run.host
- hostname of the host on which the command must be run. If this
is an empty string, the implementation is free to choose a
host.interactive
- specifies whether the job is interactive.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the command line cannot be parsed.Job runJob(String commandLine, String host) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
commandLine
- the command to run.host
- hostname of the host on which the command must be run. If this
is an empty string, the implementation is free to choose a
host.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the command line cannot be parsed.Job runJob(String commandLine, boolean interactive) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
Job.getStdin()
, Job.getStdout()
, and
Job.getStderr()
methods.
commandLine
- the command to run.interactive
- specifies whether the job is interactive.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the command line cannot be parsed.Job runJob(String commandLine) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
commandLine
- the command to run.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the command line cannot be parsed.List<String> list() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Job getJob(String jobId) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException
jobId
- the job identification.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the JobService cannot parse the job id.
DoesNotExistException
- is thrown when the JobService can handle the job id, but the
referenced job is not alive.JobSelf getSelf() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Task<JobService,Job> createJob(TaskMode mode, JobDescription jd) throws NotImplementedException
mode
- the task mode.jd
- the job description.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<JobService,List<String>> list(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<JobService,Job> getJob(TaskMode mode, String jobId) throws NotImplementedException
mode
- the task mode.jobId
- the job identification.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<JobService,JobSelf> getSelf(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<JobService,Job> runJob(TaskMode mode, String commandLine, String host, boolean interactive) throws NotImplementedException
Job.getStdin()
, Job.getStdout()
, and
Job.getStderr()
methods
mode
- the task mode.commandLine
- the command to run.host
- hostname of the host on which the command must be run. If this
is an empty string, the implementation is free to choose a
host.interactive
- specifies whether the job is interactive.
NotImplementedException
Task<JobService,Job> runJob(TaskMode mode, String commandLine, String host) throws NotImplementedException
mode
- the task mode.commandLine
- the command to run.host
- hostname of the host on which the command must be run. If this
is an empty string, the implementation is free to choose a
host.
NotImplementedException
Task<JobService,Job> runJob(TaskMode mode, String commandLine, boolean interactive) throws NotImplementedException
Job.getStdin()
, Job.getStdout()
, and
Job.getStderr()
methods.
mode
- the task mode.commandLine
- the command to run.interactive
- specifies whether the job is interactive.
NotImplementedException
Task<JobService,Job> runJob(TaskMode mode, String commandLine) throws NotImplementedException
mode
- the task mode.commandLine
- the command to run.
NotImplementedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |