|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWSCall
org.gcube.vremanagement.executor.stubs.BaseCall
org.gcube.vremanagement.executor.stubs.TaskCall
public class TaskCall
A high-level call for interacting with a running task.
The call can return local proxies to the remote task, subscribe monitors to its key changes, and stop its execution.
| Constructor Summary | |
|---|---|
TaskCall(org.apache.axis.message.addressing.EndpointReferenceType epr,
GCUBEScope scope,
GCUBESecurityManager... securityManager)
Creates an instance for a task at a given endpoint and in a given scope, optionally using a security manager. |
|
TaskCall(java.lang.String taskName,
GCUBEScope scope,
GCUBESecurityManager... securityManager)
Creates an instance for a task with a given name and in a given scope, optionally using a security manager. |
|
| Method Summary | |
|---|---|
TaskProxy |
getProxy()
Returns a proxy for the remote task. |
void |
setEndpointReference(org.apache.axis.message.addressing.EndpointReferenceType epr)
|
void |
stop()
Stops the task. |
void |
subscribe(TaskMonitor monitor)
Subscribes a monitor for changes to the task. |
| Methods inherited from class org.gcube.vremanagement.executor.stubs.BaseCall |
|---|
getQuery, setQuery, setTaskProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskCall(java.lang.String taskName,
GCUBEScope scope,
GCUBESecurityManager... securityManager)
throws java.lang.Exception
taskName - the name of the task.scope - the scope.securityManager - (optional) the security manager.
java.lang.Exception - if the instance could not be created.
public TaskCall(org.apache.axis.message.addressing.EndpointReferenceType epr,
GCUBEScope scope,
GCUBESecurityManager... securityManager)
throws java.lang.Exception
epr - the endpoint.scope - the scope.securityManager - (optional) the security manager.
java.lang.Exception - if the instance could not be created.| Method Detail |
|---|
public void stop()
throws java.lang.Exception,
GCUBEUnrecoverableException,
GCUBERetrySameException
java.lang.Exception - if the call failed due to a local error.
GCUBEUnrecoverableException - if the task does not support this call.
* @throws GCUBERetrySameException if the task could not be stopped.
GCUBERetrySameExceptionpublic void setEndpointReference(org.apache.axis.message.addressing.EndpointReferenceType epr)
public TaskProxy getProxy()
throws java.lang.Exception
java.lang.Exception - if the proxy could not be returned.
public void subscribe(TaskMonitor monitor)
throws java.lang.Exception
monitor - the monitor.
java.lang.Exception - if the monitor could not be subscribed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||