Package step.client.executions
Class RemoteExecutionManager
java.lang.Object
step.client.AbstractRemoteClient
step.client.executions.RemoteExecutionManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class provides an API for the execution of plans existing on a remote controller
-
Field Summary
Fields inherited from class step.client.AbstractRemoteClient
client, cookies, credentials
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes a plan located on the controllerExecutes a plan located on the controllerexecute
(ExecutionParameters executionParameterObject) (Advanced) Executes a plan located on the controller using the providedExecutionParameters
objectexecuteFromExternalRepository
(String repositoryId, Map<String, String> repositoryParameters) Executes a plan located on an external repositoryexecuteFromExternalRepository
(String repositoryId, Map<String, String> repositoryParameters, Map<String, String> executionParameters) Executes a plan located on an external repositoryprotected ControllerCredentials
Returns a future representing of the executiongetStatusReport
(String executionId, String reportNodeClass) void
Stop an executionwaitForTermination
(String executionID, long timeout) Waits for an execution to terminateMethods inherited from class step.client.AbstractRemoteClient
close, executeRequest, notImplemented, requestBuilder, requestBuilder
-
Constructor Details
-
RemoteExecutionManager
public RemoteExecutionManager() -
RemoteExecutionManager
-
-
Method Details
-
execute
Executes a plan located on the controller- Parameters:
planId
- the ID of the plan to be executed.- Returns:
- the execution ID of the execution
-
execute
Executes a plan located on the controller- Parameters:
planId
- the ID of the plan to be executed.executionParameters
- the execution parameters (the drop-downs that are set on the execution screen in the UI)- Returns:
- the execution ID of the execution
-
executeFromExternalRepository
public String executeFromExternalRepository(String repositoryId, Map<String, String> repositoryParameters) Executes a plan located on an external repository- Parameters:
repositoryId
- the ID of the repository the Plan is located onrepositoryParameters
- the parameters to be passed to the repository to locate the plan- Returns:
- the execution ID of the execution
-
executeFromExternalRepository
public String executeFromExternalRepository(String repositoryId, Map<String, String> repositoryParameters, Map<String, String> executionParameters) Executes a plan located on an external repository- Parameters:
repositoryId
- the ID of the repository the Plan is located onrepositoryParameters
- the parameters to be passed to the repository to locate the planexecutionParameters
- the execution parameters (the drop-downs that are set on the execution screen in the UI)- Returns:
- the execution ID of the execution
-
execute
(Advanced) Executes a plan located on the controller using the providedExecutionParameters
object- Parameters:
executionParameterObject
- theExecutionParameters
- Returns:
- the execution ID of the execution
-
stop
Stop an execution- Parameters:
executionId
- the ID of the execution to be stopped
-
get
- Parameters:
executionId
- the ID of the execution- Returns:
- the
Execution
-
getStatusReport
- Parameters:
executionId
- the ID of the executionreportNodeClass
- the classname of theReportNode
to be queried- Returns:
- the distribution of
ReportNodeStatus
for theReportNode
s specified as argument
-
waitForTermination
public Execution waitForTermination(String executionID, long timeout) throws TimeoutException, InterruptedException Waits for an execution to terminate- Parameters:
executionID
-timeout
- the timeout in ms- Returns:
- Throws:
TimeoutException
InterruptedException
-
getFuture
Returns a future representing of the execution- Parameters:
executionId
-- Returns:
-
getControllerCredentials
-