com.sun.grid.jsv
public class JsvManager extends java.lang.Object
JobDescription
Modifier and Type | Class and Description |
---|---|
static class |
JsvManager.LogLevel
The LogLevel enumeration is used to control the log level of messages
logged through the JSV framework.
|
static class |
JsvManager.Result
The Result enumeration is used to set the result of a JSV verification
operation.
|
Constructor and Description |
---|
JsvManager() |
Modifier and Type | Method and Description |
---|---|
void |
accept(java.lang.String message)
Accept the job.
|
JobDescription |
getJobDescription()
Get the description of the job for the current verification operation.
|
JsvManager.Result |
getResult()
Return the current result.
|
void |
log(JsvManager.LogLevel level,
java.lang.String message)
Write a log message to the JSV's log.
|
static void |
main(java.lang.String[] args)
The main() method takes the name of a Jsv implementation class and uses
that class to instantiate and run a JSV.
|
void |
modify(java.lang.String message)
Modify the job.
|
void |
parse(Jsv jsv)
Start the JSV.
|
void |
reject(java.lang.String message)
Reject the job.
|
void |
rejectWait(java.lang.String message)
Reject the job but indicate that it may succeed later.
|
void |
requestEnvironment(boolean request)
Indicate whether the JSV is interested in information about jobs'
environment variables.
|
void |
setResult(JsvManager.Result result,
java.lang.String message)
Set the result of the JSV verification operation.
|
public static void main(java.lang.String[] args)
args
- String array that contains the name of the class to runpublic void parse(Jsv jsv) throws java.io.IOException
jsv
- The Jsv implementation to be runjava.io.IOException
- Thrown if it is not possible to communicate with the
JSV frameworkpublic void log(JsvManager.LogLevel level, java.lang.String message)
level
- The LogLevel to use for the messagemessage
- The message to logpublic void accept(java.lang.String message)
message
- Detail about the acceptancepublic void modify(java.lang.String message)
message
- Detail about the modificationpublic void reject(java.lang.String message)
message
- Detail about the rejectionpublic void rejectWait(java.lang.String message)
message
- Detail about the rejectionpublic void setResult(JsvManager.Result result, java.lang.String message)
result
- The result of the verification operationmessage
- Detail about the resultpublic JsvManager.Result getResult()
Jsv.onVerify(com.sun.grid.jsv.JsvManager)
public void requestEnvironment(boolean request)
request
- Whether to request that the JSV framework send the
complete list of environment variables for every job.Jsv.onStart(com.sun.grid.jsv.JsvManager)
public JobDescription getJobDescription()