|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.zos.jdl.GridObjectInfo
com.novell.zos.jdl.JobletInfo
public class JobletInfo
JobletInfo is a representation of the Joblet Grid Object created
when a Job calls schedule()
to create Joblets.
This class provides access to a Joblet's factset and operations
on a Joblet such as cancellation and sending events to a Joblet
that is running on a resource.
The separate Joblet class defines execution on a resource.
Method Summary | |
---|---|
void |
cancel()
Cancel this joblet if it is waiting or running. |
void |
cancel(java.lang.String reason)
Cancel this joblet if it is waiting or running. |
void |
fail()
Fail a running joblet to force failover to another resource. |
void |
fail(java.lang.String reason)
Fail a running joblet to force failover to another resource. |
JobletParameterSpace |
getParameterSpace(int jobletNumber)
Retrieve a joblet's JobletParameterSpace instance. |
ResourceInfo |
getResource()
Retrieve the ResourceInfo that is running this Joblet. |
void |
retry()
Retry a running joblet to force failover to another resource. |
void |
retry(java.lang.String reason)
Retry a running joblet to force failover to another resource. |
void |
sendEvent(java.lang.String name,
org.python.core.PyDictionary params)
Send an event from Job to a Joblet running on a resource. |
Methods inherited from class com.novell.zos.jdl.GridObjectInfo |
---|
deleteFact, factExists, getFact, getFactLastModified, getFactNames, refresh, setArrayFact, setBooleanArrayFact, setDateArrayFact, setDateFact, setFact, setIntegerArrayFact, setRealArrayFact, setStringArrayFact, setTimeArrayFact, setTimeFact |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public JobletParameterSpace getParameterSpace(int jobletNumber)
jobletNumber
- Joblet number to retrieve JobletParameterSpace for
public ResourceInfo getResource()
java.lang.Exception
- if joblet is not running on a resourcepublic void cancel()
public void cancel(java.lang.String reason)
public void retry()
public void retry(java.lang.String reason)
reason
- string to store in job logpublic void fail()
public void fail(java.lang.String reason)
reason
- string to store in job logpublic void sendEvent(java.lang.String name, org.python.core.PyDictionary params)
name
- Name of eventparams
- Dictionary of parameters to send to Joblet event
org.python.core.PyException
- if event does not exist or Joblet is not running
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |