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 Detail

      • executeLocalTask

        TaskResult executeLocalTask​(Task task,
                                    java.util.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,
                                     java.util.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
      • executeContainerTask

        TaskResult executeContainerTask​(Container container,
                                        Task task,
                                        java.util.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,
                                     java.util.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