public final class ClusterSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static ClusterSession |
INSTANCE |
static java.lang.String |
JOBID |
(package private) static java.util.List<Job> |
jobs |
private static org.apache.log4j.Logger |
log |
private static boolean |
open |
private static compbio.util.PropertyHelper |
ph |
private java.lang.String |
sContact |
private org.ggf.drmaa.Session |
session |
Modifier | Constructor and Description |
---|---|
private |
ClusterSession() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addJob(java.lang.String jobId,
ConfiguredExecutable<?> executable) |
void |
close() |
static ClusterJobId |
getClusterJobId(java.lang.String taskId) |
(package private) static ClusterSession |
getInstance() |
int |
getJobStatus(ClusterJobId jobId)
Apparently completed jobs cannot be found! If this happened most likely
that the job is not running any more and Most likely it has been
cancelled, finished or failed.
|
static java.lang.String |
getJobStatus(int status)
Deprecated.
|
ConfiguredExecutable<?> |
getResults(java.lang.String taskId) |
org.ggf.drmaa.Session |
getSession() |
static StatisticManager |
getStatistics(org.ggf.drmaa.JobInfo status) |
(package private) static void |
logStatistics(org.ggf.drmaa.JobInfo status) |
void |
removeJob(java.lang.String taskId) |
private static void |
removeJobFromListbyTaskId(java.lang.String taskId) |
org.ggf.drmaa.JobInfo |
waitForJob(java.lang.String taskId) |
org.ggf.drmaa.JobInfo |
waitForJob(java.lang.String jobId,
long waitingTime) |
private static final org.apache.log4j.Logger log
private static final compbio.util.PropertyHelper ph
public static final java.lang.String JOBID
static final java.util.List<Job> jobs
private static boolean open
private static final ClusterSession INSTANCE
private final org.ggf.drmaa.Session session
private final java.lang.String sContact
static ClusterSession getInstance()
public org.ggf.drmaa.Session getSession()
public void close()
void addJob(java.lang.String jobId, ConfiguredExecutable<?> executable)
public void removeJob(java.lang.String taskId)
public org.ggf.drmaa.JobInfo waitForJob(java.lang.String taskId) throws org.ggf.drmaa.DrmaaException, java.io.IOException
org.ggf.drmaa.DrmaaException
java.io.IOException
public static ClusterJobId getClusterJobId(java.lang.String taskId) throws java.io.IOException
java.io.IOException
public org.ggf.drmaa.JobInfo waitForJob(java.lang.String jobId, long waitingTime) throws org.ggf.drmaa.DrmaaException, java.io.IOException
org.ggf.drmaa.DrmaaException
java.io.IOException
private static void removeJobFromListbyTaskId(java.lang.String taskId)
public ConfiguredExecutable<?> getResults(java.lang.String taskId) throws org.ggf.drmaa.DrmaaException, ResultNotAvailableException
org.ggf.drmaa.DrmaaException
ResultNotAvailableException
public static StatisticManager getStatistics(org.ggf.drmaa.JobInfo status) throws org.ggf.drmaa.DrmaaException
org.ggf.drmaa.DrmaaException
static void logStatistics(org.ggf.drmaa.JobInfo status) throws org.ggf.drmaa.DrmaaException
org.ggf.drmaa.DrmaaException
public int getJobStatus(ClusterJobId jobId) throws org.ggf.drmaa.DrmaaException, org.ggf.drmaa.InvalidJobException
org.ggf.drmaa.InvalidJobException
- if the job is no longer in the queue or running. basically it
will throw this exception for all finished or cancelled jobsorg.ggf.drmaa.DrmaaException
@Deprecated public static java.lang.String getJobStatus(int status) throws org.ggf.drmaa.DrmaaException
status
- org.ggf.drmaa.DrmaaException