de.fzj.unicore.uas.client
Class TaskClient

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
      extended by de.fzj.unicore.uas.client.BaseUASClient
          extended by de.fzj.unicore.uas.client.TaskClient

public class TaskClient
extends BaseUASClient

client for talking to a Task service

Author:
schuller

Field Summary
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
epr, proxyMaker, retryDecider, securityProperties, url
 
Constructor Summary
TaskClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
TaskClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
TaskClient(java.lang.String url, org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
TaskClient(java.lang.String url, org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
 
Method Summary
 void cancel()
          Cancel execution of the task
 java.lang.Integer getExitCode()
          return the exit code of the job
 java.lang.Float getProgress()
          return the progress of the job
 eu.unicore.unicore6.task.TaskPropertiesDocument getResourcePropertiesDocument()
           
 org.apache.xmlbeans.XmlObject getResult()
          get the Task's result or null if not available
 org.unigrids.services.atomic.types.StatusType.Enum getStatus()
          return the job status
 java.lang.String getStatusMessage()
           
 java.util.Calendar getSubmissionTime()
          get the time at which the task was submitted
 
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

TaskClient

public TaskClient(java.lang.String url,
                  org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                  IUASSecurityProperties sec)
           throws java.lang.Exception
Throws:
java.lang.Exception

TaskClient

public TaskClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                  IUASSecurityProperties sec)
           throws java.lang.Exception
Throws:
java.lang.Exception

TaskClient

public TaskClient(java.lang.String url,
                  org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           throws java.lang.Exception
Throws:
java.lang.Exception

TaskClient

public TaskClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getResourcePropertiesDocument

public eu.unicore.unicore6.task.TaskPropertiesDocument getResourcePropertiesDocument()
                                                                              throws java.lang.Exception
Throws:
java.lang.Exception

getResult

public org.apache.xmlbeans.XmlObject getResult()
                                        throws java.lang.Exception
get the Task's result or null if not available

Returns:
Throws:
java.lang.Exception

getStatus

public org.unigrids.services.atomic.types.StatusType.Enum getStatus()
                                                             throws java.lang.Exception
return the job status

Throws:
java.lang.Exception

getExitCode

public java.lang.Integer getExitCode()
                              throws java.lang.Exception
return the exit code of the job

Returns:
the exit code or null if not available
Throws:
java.lang.Exception

getProgress

public java.lang.Float getProgress()
                            throws java.lang.Exception
return the progress of the job

Returns:
a value between 0 and 1 or null if progress value not available
Throws:
java.lang.Exception

getSubmissionTime

public java.util.Calendar getSubmissionTime()
                                     throws java.lang.Exception
get the time at which the task was submitted

Returns:
Throws:
java.lang.Exception

getStatusMessage

public java.lang.String getStatusMessage()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

cancel

public void cancel()
            throws java.lang.Exception
Cancel execution of the task

Throws:
java.lang.Exception


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.