Package com.morpheusdata.core
Interface ExecutableTaskInterface
- All Known Implementing Classes:
AbstractTaskService
public interface ExecutableTaskInterface
Provides a common execution interface for building task types to use in the Morpheus
Task
workflow engine.-
Method Summary
Modifier and TypeMethodDescriptionexecuteContainerTask
(Container container, Task task) Task execution on a provisionedContainer
executeContainerTask
(Container container, Task task, Map opts) Task execution on a provisionedContainer
executeLocalTask
(Task task, Map opts, Container container, ComputeServer server, Instance instance) Task execution in a local contextexecuteRemoteTask
(Task task, Container container, ComputeServer server, Instance instance) Task execution in a remote contextexecuteRemoteTask
(Task task, Map opts, Container container, ComputeServer server, Instance instance) Task execution in a remote contextexecuteServerTask
(ComputeServer server, Task task) Task execution on a provisionedComputeServer
executeServerTask
(ComputeServer server, Task task, Map opts) Task execution on a provisionedComputeServer
-
Method Details
-
getMorpheus
MorpheusContext getMorpheus() -
executeLocalTask
TaskResult executeLocalTask(Task task, Map opts, Container container, ComputeServer server, Instance instance) Task execution in a local context- Parameters:
task
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this taskcontainer
- optionalContainer
detailsserver
- optionalComputeServer
detailsinstance
- optionalInstance
details- Returns:
- the result of the task
-
executeServerTask
Task execution on a provisionedComputeServer
- Parameters:
server
- server detailstask
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this task- Returns:
- the result of the task
-
executeServerTask
Task execution on a provisionedComputeServer
- Parameters:
server
-ComputeServer
detailstask
- Morpheus task to be executed- Returns:
- the result of the task
-
executeContainerTask
Task execution on a provisionedContainer
- Parameters:
container
-Container
detailstask
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this task- Returns:
- the result of the task
-
executeContainerTask
Task execution on a provisionedContainer
- Parameters:
container
-Container
detailstask
- Morpheus task to be executed- Returns:
- the result of the task
-
executeRemoteTask
TaskResult executeRemoteTask(Task task, Map opts, Container container, ComputeServer server, Instance instance) Task execution in a remote context- Parameters:
task
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this taskcontainer
- optionalContainer
detailsserver
- optionalComputeServer
detailsinstance
- optionalInstance
details- Returns:
- the result of the task
-
executeRemoteTask
TaskResult executeRemoteTask(Task task, Container container, ComputeServer server, Instance instance) Task execution in a remote context- Parameters:
task
- Morpheus task to be executedcontainer
- optionalContainer
detailsserver
- optionalComputeServer
detailsinstance
- optionalInstance
details- Returns:
- the result of the task
-