|
||||||||||
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.ExecutorCall
public class ExecutorCall
A high-level call for launching a task in a given scope.
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.
Constructor Summary | |
---|---|
ExecutorCall(java.lang.String taskName,
GCUBEScope scope,
GCUBESecurityManager... securityManager)
Creates an instance to launch a given task in a scope and, optionally, using a security manager. |
Method Summary | |
---|---|
TaskCall |
launch()
Launches a task and returns a call to it. |
TaskCall |
launch(java.util.Map<java.lang.String,java.lang.Object> inputs)
Launches a task with inputs and returns a call to it. |
void |
setEndpoint(java.lang.String hostname,
java.lang.String port)
Convenience method to set the target endpoint from host name and port. |
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 ExecutorCall(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.Method Detail |
---|
public void setEndpoint(java.lang.String hostname, java.lang.String port) throws java.lang.Exception
hostname
- the host name.port
- the port.
java.lang.Exception
- if a reference to the endpoint could not be built from its hostname and port.public TaskCall launch() throws java.lang.Exception, GCUBEException
java.lang.Exception
- if the call failed due to a local error.
GCUBEException
- if call failed due to remote error.public TaskCall launch(java.util.Map<java.lang.String,java.lang.Object> inputs) throws java.lang.Exception, GCUBEException
inputs
- the inputs.
java.lang.Exception
- if the call failed due to a local error.
GCUBEException
- if call failed due to remote error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |