|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object plgrid.PipelineGridPlugin
public abstract class PipelineGridPlugin
Responsible for communication of plugin with Pipeline server. All Pipeline Grid plugins should be extended from this class.
Field Summary | |
---|---|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
PipelineGridPlugin()
Initializes Pipeline Grid Plugin class |
Method Summary | |
---|---|
void |
fireEvent(GridEvent ge)
All plugins should send events to Pipeline via this method. |
java.util.List<GridJobInfo> |
getBulkJobInfo(java.util.List<java.lang.String> jobIdList)
Returns bulk information of multiple jobs. |
abstract GridJobInfo |
getJobInfo(java.lang.String jobId)
Returns information of the job with specified jobId. |
abstract java.util.List<GridJobInfo> |
getJobList(java.lang.String complexVariables)
Returns the list of all active jobs of grid manager. |
java.util.Map<java.lang.String,java.lang.String> |
getPreferences()
|
abstract void |
killJob(java.lang.String jobId,
java.lang.String username,
boolean force)
Responsible for job removal from the Grid manager. |
static void |
main(java.lang.String[] args)
|
void |
registerEventListener(GridEventListener gel)
Pipeline calls this function to register itself as a listener to the plugin |
void |
setPreferences(java.util.Map<java.lang.String,java.lang.String> plPreferences)
Makes pipeline preferences available for grid plugin. |
abstract java.lang.String |
submitJob(GridJobSubmitInfo gji)
Responsible for job to be submitted to the Grid. |
void |
unregisterEventListener(GridEventListener gel)
Pipeline calls this function to unregister its listener from the plugin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
Constructor Detail |
---|
public PipelineGridPlugin()
Method Detail |
---|
public final void registerEventListener(GridEventListener gel)
gel
- Listener to registerpublic final void unregisterEventListener(GridEventListener gel)
gel
- Listener to unregisterpublic final void fireEvent(GridEvent ge)
ge
- Event which will be sent to Pipelinepublic void setPreferences(java.util.Map<java.lang.String,java.lang.String> plPreferences)
public java.util.Map<java.lang.String,java.lang.String> getPreferences()
public abstract java.lang.String submitJob(GridJobSubmitInfo gji)
gji
- This is a Pipeline defined class, which contains information
about job to be submitted. See class definition for more details.
public abstract void killJob(java.lang.String jobId, java.lang.String username, boolean force)
force
flag set to false. Then, after some time it checks if the job has been successfully deleted, in case the job is still running, it calls this method again withforce
flag set to true.
jobId
- Job Id of the jobusername
- The username of the user who submitted the job, or has
enough permission to kill the jobforce
- A boolean flag which tells whether the job needs to be
killed with or without force.public abstract java.util.List<GridJobInfo> getJobList(java.lang.String complexVariables)
complexVariables
- List of complex variables which Pipeline server
is using. Null if no complex variables are used. If multiple complex
variables are used, then those values should be separated by comma.
Example: pipeline, id=loni
public abstract GridJobInfo getJobInfo(java.lang.String jobId)
jobId
- Job Id of the required job
public java.util.List<GridJobInfo> getBulkJobInfo(java.util.List<java.lang.String> jobIdList)
jobIdList
.
jobIdList
- A list of job ids .
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |