public class OpenDreamsJob extends Object implements tecgraf.openbus.DRMAA.v2_0.JobOperations, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_EXIT_CODE
O Job terminou mas não tem um codigo de saÃda (Acima de 255 não é um exit
code válido)
|
| Constructor and Description |
|---|
OpenDreamsJob(String sessionName,
tecgraf.openbus.opendreams.v2_0.OpenDreamsJobTemplate jt) |
| Modifier and Type | Method and Description |
|---|---|
tecgraf.openbus.DRMAA.v2_0.Job |
corbaObjectReference() |
void |
execute(String userId) |
void |
flush(String userId)
Manipulação dos arquivos e dados de saÃda do job.
|
tecgraf.openbus.DRMAA.v2_0.JobInfo |
getInfo()
This method returns a JobInfo instance for the particular job.
|
tecgraf.openbus.DRMAA.v2_0.JobState |
getState(AnyHolder jobSubState)
This method allows the application to get the current status of the job
according to the DRMAA state model, together with an implementation
specific sub state (see Section 8.1).
|
void |
hold()
Triggers a transition from QUEUED to QUEUED_HELD, or from REQUEUED to
REQUEUED_HELD state.
|
String |
jobId()
This attribute reports the job identifier assigned by the DRM system in
text form.
|
tecgraf.openbus.DRMAA.v2_0.JobTemplate |
jobTemplate()
This attribute provides a reference to a JobTemplate instance that has
equal values to the one that was used for the job submission creating
this Job instance.
|
void |
onFinish(String userId,
csbase.logic.CommandNotification cmdEvent)
Handle required actions after the job enters one of the "Terminated"
states.
|
void |
reap() |
void |
release()
Triggers a transition from QUEUED_HELD to QUEUED, or from REQUEUED_HELD
to REQUEUED state.
|
void |
resume()
Triggers a transition from SUSPENDED to RUNNING state.
|
String |
sessionName()
This attribute reports the name of the JobSession that was used to create
the job.
|
void |
suspend()
Triggers a transition from RUNNING to SUSPENDED state.
|
void |
terminate()
Triggers a transition from any of the "Started" states to one of the
"Terminated" states.
|
void |
waitStarted(long timeout)
Blocks until the job entered one of the "Started" states.
|
void |
waitTerminated(long timeout)
Blocks until the job entered one of the "Terminated" states
|
public static final int NO_EXIT_CODE
public OpenDreamsJob(String sessionName, tecgraf.openbus.opendreams.v2_0.OpenDreamsJobTemplate jt)
sessionName - jt - public String jobId()
jobId in interface tecgraf.openbus.DRMAA.v2_0.JobOperationspublic String sessionName()
sessionName in interface tecgraf.openbus.DRMAA.v2_0.JobOperationspublic tecgraf.openbus.DRMAA.v2_0.JobTemplate jobTemplate()
jobTemplate in interface tecgraf.openbus.DRMAA.v2_0.JobOperationspublic tecgraf.openbus.DRMAA.v2_0.Job corbaObjectReference()
throws csbase.exception.OperationFailureException,
ServantNotActive,
WrongPolicy
csbase.exception.OperationFailureExceptionServantNotActiveWrongPolicypublic void execute(String userId) throws InvalidJobTemplateException
userId - o identificador do usuário que fez a submissãoInvalidJobTemplateException - se houver um erro na descrição do job templatepublic void suspend()
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
suspend in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic void resume()
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
resume in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic void hold()
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
hold in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic void release()
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
release in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic void terminate()
throws tecgraf.openbus.DRMAA.v2_0.DrmCommunicationException,
tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InternalException
terminate in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.DrmCommunicationExceptiontecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptionpublic void reap()
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
reap in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic void onFinish(String userId, csbase.logic.CommandNotification cmdEvent)
public tecgraf.openbus.DRMAA.v2_0.JobState getState(AnyHolder jobSubState)
getState in interface tecgraf.openbus.DRMAA.v2_0.JobOperationspublic tecgraf.openbus.DRMAA.v2_0.JobInfo getInfo()
getInfo in interface tecgraf.openbus.DRMAA.v2_0.JobOperationspublic void waitStarted(long timeout)
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
waitStarted in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic void waitTerminated(long timeout)
throws tecgraf.openbus.DRMAA.v2_0.TimeoutException,
tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InternalException
waitTerminated in interface tecgraf.openbus.DRMAA.v2_0.JobOperationstecgraf.openbus.DRMAA.v2_0.TimeoutExceptiontecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptionpublic void flush(String userId)
userId - Copyright © 2018. All rights reserved.