|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
de.fzj.unicore.uas.client.BaseUASClient
de.fzj.unicore.uas.client.JobClient
public class JobClient
a client to manage a Job resource and to access the job working directory (Uspace). It can be used to
getUspaceClient())
getUspaceClient())
| Field Summary |
|---|
| Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient |
|---|
epr, proxyMaker, retryDecider, securityProperties, url |
| Constructor Summary | |
|---|---|
JobClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
|
|
JobClient(org.w3.x2005.x08.addressing.EndpointReferenceType address,
IUASSecurityProperties sec)
connect to the Job service at EPR 'address' |
|
JobClient(java.lang.String url,
org.w3.x2005.x08.addressing.EndpointReferenceType address,
IUASSecurityProperties sec)
connect to the Job service at EPR 'address' using the given URL |
|
| Method Summary | |
|---|---|
void |
abort()
abort this job |
java.lang.Integer |
getExitCode()
return the exit code of the job |
java.lang.String |
getJobLog()
|
java.lang.Float |
getProgress()
return the progress of the job |
org.unigrids.x2006.x04.services.jms.JobPropertiesDocument |
getResourcePropertiesDocument()
returns the service's JobPropertiesDocument |
org.unigrids.services.atomic.types.StatusType.Enum |
getStatus()
return the job status |
java.lang.String |
getStatusMessage()
get the job status message |
java.util.Calendar |
getSubmissionTime()
get the time of submission |
StorageClient |
getUspaceClient()
get a client for the Uspace SMS |
void |
hold()
|
void |
resume()
|
void |
start()
start this job This will throw an exception if the job is not in the READY state |
java.lang.String |
waitUntilDone(int timeout)
convenience method that waits until a job has finished and returns the final status (SUCCESSFUL or FAILED) |
java.lang.String |
waitUntilReady(int timeout)
convenience method that waits until a job is READY and can be started. |
| Methods inherited from class de.fzj.unicore.uas.client.BaseUASClient |
|---|
extractReceiver, getSecurityProperties, getServerVersion, setRetryDefaults |
| Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient |
|---|
checkConnection, checkConnection, destroy, getConnectionStatus, getCurrentTime, getEPR, getLT, getMultipleResourceProperties, getResourceProperty, getResourcePropertyDocument, GetResourcePropertyDocument, getRP, getTerminationTime, getUpdateInterval, getUrl, makeProxy, queryResourceProperties, setConnectionTimeout, setConnectionTimeout, setRetryHandler, setTerminationTime, setUpdateInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobClient(java.lang.String url,
org.w3.x2005.x08.addressing.EndpointReferenceType address,
IUASSecurityProperties sec)
throws java.lang.Exception
url - - the URL of the jobaddress - - the EPR of the jobsec - - the security settings to use
java.lang.Exception
public JobClient(org.w3.x2005.x08.addressing.EndpointReferenceType address,
IUASSecurityProperties sec)
throws java.lang.Exception
address - - the EPR of the jonsec - - the security settings to use
java.lang.Exception
public JobClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public org.unigrids.x2006.x04.services.jms.JobPropertiesDocument getResourcePropertiesDocument()
throws java.lang.Exception
endpointUrl - epr -
java.lang.Exception
public StorageClient getUspaceClient()
throws java.lang.Exception
java.lang.Exception
public void start()
throws java.lang.Exception
java.lang.Exception
public void abort()
throws java.lang.Exception
java.lang.Exception
public void hold()
throws java.lang.Exception
java.lang.Exception
public void resume()
throws java.lang.Exception
java.lang.Exception
public java.lang.String waitUntilDone(int timeout)
throws java.lang.Exception
timeout - in milliseconds (null for no timeout)
java.lang.Exception
public java.lang.String waitUntilReady(int timeout)
throws java.lang.Exception
timeout - in milliseconds (null for no timeout)
java.lang.Exception
public org.unigrids.services.atomic.types.StatusType.Enum getStatus()
throws java.lang.Exception
java.lang.Exception
public java.lang.String getStatusMessage()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Integer getExitCode()
null if not (yet) availablepublic java.lang.Float getProgress()
null if progress value not availablepublic java.util.Calendar getSubmissionTime()
public java.lang.String getJobLog()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||