public class ExecutorCall extends BaseCall
The call can work with known Executor instances. Alternatively, it may do its best to find one that hosts the task. It may be used repeatedly and it will remember the Executor instance previously used.
mappings, properties, taskName| Constructor and Description |
|---|
ExecutorCall(String taskName,
org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.common.core.security.GCUBESecurityManager... securityManager)
Creates an instance to launch a given task in a scope and, optionally, using a security manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPortTypeName() |
TaskCall |
launch()
Launches a task and returns a call to it.
|
TaskCall |
launch(Map<String,Object> inputs)
Launches a task with inputs and returns a call to it.
|
void |
setEndpoint(String hostname,
String port)
Convenience method to set the target endpoint from host name and port.
|
getQuery, getServiceClass, getServiceName, setQuery, setTaskPropertypublic ExecutorCall(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.protected String getPortTypeName()
getPortTypeName in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>public void setEndpoint(String hostname, String port) throws Exception
hostname - the host name.port - the port.Exception - if a reference to the endpoint could not be built from its hostname and port.public TaskCall launch() throws Exception, org.gcube.common.core.faults.GCUBEException
Exception - if the call failed due to a local error.org.gcube.common.core.faults.GCUBEException - if call failed due to remote error.public TaskCall launch(Map<String,Object> inputs) throws Exception, org.gcube.common.core.faults.GCUBEException
inputs - the inputs.Exception - if the call failed due to a local error.org.gcube.common.core.faults.GCUBEException - if call failed due to remote error.Copyright © 2015. All Rights Reserved.