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 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 executed
      opts - contains the values of any OptionType that were defined for this task
      container - optional Container details
      server - optional ComputeServer details
      instance - optional Instance details
      Returns:
      the result of the task
    • executeServerTask

      TaskResult executeServerTask(ComputeServer server, Task task, Map opts)
      Task execution on a provisioned ComputeServer
      Parameters:
      server - server details
      task - Morpheus task to be executed
      opts - contains the values of any OptionType that were defined for this task
      Returns:
      the result of the task
    • executeServerTask

      TaskResult executeServerTask(ComputeServer server, Task task)
      Task execution on a provisioned ComputeServer
      Parameters:
      server - ComputeServer details
      task - Morpheus task to be executed
      Returns:
      the result of the task
    • executeContainerTask

      TaskResult executeContainerTask(Container container, Task task, Map opts)
      Task execution on a provisioned Container
      Parameters:
      container - Container details
      task - Morpheus task to be executed
      opts - contains the values of any OptionType that were defined for this task
      Returns:
      the result of the task
    • executeContainerTask

      TaskResult executeContainerTask(Container container, Task task)
      Task execution on a provisioned Container
      Parameters:
      container - Container details
      task - 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 executed
      opts - contains the values of any OptionType that were defined for this task
      container - optional Container details
      server - optional ComputeServer details
      instance - optional Instance 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 executed
      container - optional Container details
      server - optional ComputeServer details
      instance - optional Instance details
      Returns:
      the result of the task