public class OpenDreamsJobSession
extends java.lang.Object
implements tecgraf.openbus.DRMAA.v2_0.JobSessionOperations, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
TIMEOUT_NO_WAIT
Constante para espera sem timeout.
|
static long |
TIMEOUT_WAIT_FOREVER
Constante para timeout infinito.
|
| Constructor and Description |
|---|
OpenDreamsJobSession(java.lang.String sessionName,
java.lang.String contact,
java.lang.String userId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
contact()
This method returns the contact value that was used in the
#createJobSession. |
tecgraf.openbus.DRMAA.v2_0.JobSession |
createCorbaObjReference() |
tecgraf.openbus.DRMAA.v2_0.JobArray |
getJobArray(java.lang.String jobArrayId) |
tecgraf.openbus.DRMAA.v2_0.Job[] |
getJobs(tecgraf.openbus.DRMAA.v2_0.JobInfo filter)
//TODO: how to filter jobs? only jobId?
This method returns the set of jobs that belong to the job session.
|
java.lang.String[] |
jobCategories()
UNSUPPORTED This method provides the list of valid job category names
which can be used for the
jobCategory attribute in a
JobTemplate instance |
void |
onResume()
Método utilizado para reiniciar serviços da sessão, caso seja necessário.
|
tecgraf.openbus.DRMAA.v2_0.JobArray |
runBulkJobs(tecgraf.openbus.DRMAA.v2_0.JobTemplate jobTemplate,
int beginIndex,
int endIndex,
int step,
int maxParallel) |
tecgraf.openbus.DRMAA.v2_0.Job |
runJob(tecgraf.openbus.DRMAA.v2_0.JobTemplate jobTemplate) |
java.lang.String |
sessionName()
This method returns the session name, a unique session identifier passed
through
#createJobSession. |
tecgraf.openbus.DRMAA.v2_0.Job |
waitAnyStarted(tecgraf.openbus.DRMAA.v2_0.Job[] jobs,
long timeout)
The waitAnyStarted method blocks until any of the jobs referenced in the
jobs parameter entered one of the "Started" states.
|
tecgraf.openbus.DRMAA.v2_0.Job |
waitAnyTerminated(tecgraf.openbus.DRMAA.v2_0.Job[] jobs,
long timeout)
The waitAnyTerminated method blocks until any of the jobs referenced in
the jobs parameter entered one of the "Terminated" states.
|
public static long TIMEOUT_WAIT_FOREVER
public static long TIMEOUT_NO_WAIT
public OpenDreamsJobSession(java.lang.String sessionName,
java.lang.String contact,
java.lang.String userId)
sessionName - contact - userId - public void onResume()
#openJobSession(String).public java.lang.String contact()
#createJobSession. This attribute is read-only.contact in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationspublic java.lang.String sessionName()
#createJobSession. This attribute is
read-only.sessionName in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationspublic java.lang.String[] jobCategories()
jobCategory attribute in a
JobTemplate instancejobCategories in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationspublic tecgraf.openbus.DRMAA.v2_0.Job[] getJobs(tecgraf.openbus.DRMAA.v2_0.JobInfo filter)
getJobs in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationspublic tecgraf.openbus.DRMAA.v2_0.JobArray getJobArray(java.lang.String jobArrayId)
throws tecgraf.openbus.DRMAA.v2_0.InvalidArgumentException,
tecgraf.openbus.DRMAA.v2_0.InternalException
getJobArray in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationstecgraf.openbus.DRMAA.v2_0.InvalidArgumentExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptionpublic tecgraf.openbus.DRMAA.v2_0.Job runJob(tecgraf.openbus.DRMAA.v2_0.JobTemplate jobTemplate)
throws tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InvalidArgumentException,
tecgraf.openbus.DRMAA.v2_0.InternalException
runJob in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationstecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptiontecgraf.openbus.DRMAA.v2_0.InvalidArgumentExceptionpublic tecgraf.openbus.DRMAA.v2_0.JobSession createCorbaObjReference()
throws csbase.exception.OperationFailureException,
org.omg.PortableServer.POAPackage.ServantNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy
csbase.exception.OperationFailureExceptionorg.omg.PortableServer.POAPackage.ServantNotActiveorg.omg.PortableServer.POAPackage.WrongPolicypublic tecgraf.openbus.DRMAA.v2_0.JobArray runBulkJobs(tecgraf.openbus.DRMAA.v2_0.JobTemplate jobTemplate,
int beginIndex,
int endIndex,
int step,
int maxParallel)
throws tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InvalidArgumentException,
tecgraf.openbus.DRMAA.v2_0.InternalException
runBulkJobs in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationstecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptiontecgraf.openbus.DRMAA.v2_0.InvalidArgumentExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptionpublic tecgraf.openbus.DRMAA.v2_0.Job waitAnyStarted(tecgraf.openbus.DRMAA.v2_0.Job[] jobs,
long timeout)
throws tecgraf.openbus.DRMAA.v2_0.UnsupportedOperationException
waitAnyStarted in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationstecgraf.openbus.DRMAA.v2_0.UnsupportedOperationExceptionpublic tecgraf.openbus.DRMAA.v2_0.Job waitAnyTerminated(tecgraf.openbus.DRMAA.v2_0.Job[] jobs,
long timeout)
throws tecgraf.openbus.DRMAA.v2_0.TimeoutException,
tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InternalException
waitAnyTerminated in interface tecgraf.openbus.DRMAA.v2_0.JobSessionOperationstecgraf.openbus.DRMAA.v2_0.InternalExceptiontecgraf.openbus.DRMAA.v2_0.TimeoutExceptiontecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptionCopyright © 2016. All Rights Reserved.