|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.batch.BatchJobInfo
public class BatchJobInfo
Class for holding information about a specific Grid job.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface eu.geclipse.batch.IBatchJobInfo |
|---|
IBatchJobInfo.JobState |
| Constructor Summary | |
|---|---|
BatchJobInfo(java.lang.String jobId,
java.lang.String jobName,
java.lang.String userAccount,
java.lang.String timeUse,
IBatchJobInfo.JobState status,
java.lang.String queueName,
IBatchService batchWrapper)
Create a new QueueInfo holder, from the arguments. |
|
| Method Summary | |
|---|---|
void |
deleteJob()
Deletes this job from the batch service. |
java.lang.String |
getJobId()
|
java.lang.String |
getJobName()
|
java.lang.String |
getQueueName()
|
java.lang.String |
getServiceTypeName()
Return the type of batch service name that handles this batch job. |
IBatchJobInfo.JobState |
getStatus()
|
java.lang.String |
getTimeUse()
|
java.lang.String |
getUserAccount()
|
void |
holdJob()
Puts a hold on a job in the queue of the batch service. |
boolean |
isDeletable()
Can this job be deleted. |
boolean |
isHoldable()
Can this job be held. |
boolean |
isMovable()
Can this job be moved. |
boolean |
isReleasable()
Can this job be released. |
boolean |
isReRunnable()
Can this job be reRun. |
void |
moveJob(java.lang.String destQueue,
java.lang.String destServer)
Move this job to another worker node or batch service. |
void |
releaseJob()
Release a job with a previous hold in queue of the batch system. |
void |
reRunJob()
ReRun the currently executing job in the batch system. |
void |
setQueueName(java.lang.String queueName)
|
void |
setStatus(IBatchJobInfo.JobState status)
|
void |
setTimeUse(java.lang.String timeUse)
|
void |
setUserAccount(java.lang.String userAccount)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchJobInfo(java.lang.String jobId,
java.lang.String jobName,
java.lang.String userAccount,
java.lang.String timeUse,
IBatchJobInfo.JobState status,
java.lang.String queueName,
IBatchService batchWrapper)
jobId - The unique id of the job.jobName - The name of the job.userAccount - The name of the pool account that are used to execute this job.timeUse - How much time this job have used.status - The current status of this job.queueName - The name of the queue where this job is placed.batchWrapper - The wrapper to access the batch service where this job is queued.| Method Detail |
|---|
public java.lang.String getQueueName()
getQueueName in interface IBatchJobInfopublic void setQueueName(java.lang.String queueName)
setQueueName in interface IBatchJobInfoqueueName - the queueName to setpublic IBatchJobInfo.JobState getStatus()
getStatus in interface IBatchJobInfopublic void setStatus(IBatchJobInfo.JobState status)
setStatus in interface IBatchJobInfostatus - the status to setpublic java.lang.String getTimeUse()
getTimeUse in interface IBatchJobInfopublic void setTimeUse(java.lang.String timeUse)
setTimeUse in interface IBatchJobInfotimeUse - the timeUse to setpublic java.lang.String getUserAccount()
getUserAccount in interface IBatchJobInfopublic void setUserAccount(java.lang.String userAccount)
setUserAccount in interface IBatchJobInfouserAccount - the userAccount to setpublic java.lang.String getJobId()
getJobId in interface IBatchJobInfopublic java.lang.String getJobName()
getJobName in interface IBatchJobInfopublic boolean isDeletable()
isDeletable in interface IBatchJobInfotrue if this job can be deleted, false otherwise.public boolean isMovable()
isMovable in interface IBatchJobInfotrue if this job can be moved, false otherwise.public boolean isHoldable()
isHoldable in interface IBatchJobInfotrue<\code> if this job can be held, false otherwise.public boolean isReleasable()
isReleasable in interface IBatchJobInfotrue<\code> if this job can be released, false otherwise.public boolean isReRunnable()
isReRunnable in interface IBatchJobInfotrue<\code> if this job can be reRun, false otherwise.
public void deleteJob()
throws ProblemException
deleteJob in interface IBatchJobInfoProblemException - If command is not executed successfully
public void moveJob(java.lang.String destQueue,
java.lang.String destServer)
throws ProblemException
moveJob in interface IBatchJobInfodestQueue - The destination queue, null if no destination queue.destServer - The destination server, null if no destination server.
ProblemException - If command is not executed successfully
public void holdJob()
throws ProblemException
holdJob in interface IBatchJobInfoProblemException - If command is not executed successfully
public void releaseJob()
throws ProblemException
releaseJob in interface IBatchJobInfoProblemException - If command is not executed successfully
public void reRunJob()
throws ProblemException
reRunJob in interface IBatchJobInfoProblemException - If command is not executed successfullypublic java.lang.String getServiceTypeName()
getServiceTypeName in interface IBatchJobInfonull if unknown.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||