mappings, properties, taskName| Constructor and Description |
|---|
TaskCall(org.apache.axis.message.addressing.EndpointReferenceType epr,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager... securityManager)
Creates an instance for a task at a given endpoint and in a given scope, optionally using a security manager.
|
TaskCall(String taskName,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager... securityManager)
Creates an instance for a task with a given name and in a given scope, optionally using a security manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPortTypeName() |
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.
|
getQuery, getServiceClass, getServiceName, setQuery, setTaskPropertypublic TaskCall(String taskName, org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager... securityManager) throws Exception
taskName - the name of the task.scope - the scope.securityManager - (optional) the security manager.Exception - if the instance could not be created.public TaskCall(org.apache.axis.message.addressing.EndpointReferenceType epr,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager... securityManager)
throws Exception
epr - the endpoint.scope - the scope.securityManager - (optional) the security manager.Exception - if the instance could not be created.protected String getPortTypeName()
getPortTypeName in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>public void stop()
throws Exception,
org.gcube.common.core.faults.GCUBEUnrecoverableException,
org.gcube.common.core.faults.GCUBERetrySameException
Exception - if the call failed due to a local error.org.gcube.common.core.faults.GCUBEUnrecoverableException - if the task does not support this call.
* @throws GCUBERetrySameException if the task could not be stopped.org.gcube.common.core.faults.GCUBERetrySameExceptionpublic void setEndpointReference(org.apache.axis.message.addressing.EndpointReferenceType epr)
setEndpointReference in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>public TaskProxy getProxy() throws Exception
Exception - if the proxy could not be returned.public void subscribe(TaskMonitor monitor) throws Exception
monitor - the monitor.Exception - if the monitor could not be subscribed.Copyright © 2015. All Rights Reserved.