Class AbstractTaskService

    • Constructor Detail

      • AbstractTaskService

        public AbstractTaskService()
    • Method Detail

      • buildLocalTaskConfig

        public io.reactivex.Single<TaskConfig> buildLocalTaskConfig​(java.util.Map baseConfig,
                                                                    Task task,
                                                                    java.util.Collection excludes,
                                                                    java.util.Map opts)
        Get configuration details for execution in a local context.
        Parameters:
        baseConfig - generally an empty map
        task - the Morpheus Task to be executed
        excludes - String property names to exclude
        opts - options supplied from the execute method
        Returns:
        TaskConfig
      • buildInstanceTaskConfig

        public io.reactivex.Single<TaskConfig> buildInstanceTaskConfig​(Instance instance,
                                                                       java.util.Map baseConfig,
                                                                       Task task,
                                                                       java.util.Collection excludes,
                                                                       java.util.Map opts)
        Get configuration details for execution on an Instance
        Parameters:
        instance - the provisioned instance
        baseConfig - generally an empty map
        task - the Morpheus Task to be executed
        excludes - String property names to exclude
        opts - options supplied from the execute method
        Returns:
        TaskConfig
      • buildRemoteTaskConfig

        public io.reactivex.Single<TaskConfig> buildRemoteTaskConfig​(java.util.Map baseConfig,
                                                                     Task task,
                                                                     java.util.Collection excludes,
                                                                     java.util.Map opts)
        Get configuration details for execution in a remote context.
        Parameters:
        baseConfig - generally an empty map
        task - the Morpheus Task to be executed
        excludes - String property names to exclude
        opts - options supplied from the execute method
        Returns:
        TaskConfig
      • buildContainerTaskConfig

        public io.reactivex.Single<TaskConfig> buildContainerTaskConfig​(Container container,
                                                                        java.util.Map baseConfig,
                                                                        Task task,
                                                                        java.util.Collection excludes,
                                                                        java.util.Map opts)
        Get configuration details for execution in a container.
        Parameters:
        container - the provisioned VM or Container
        baseConfig - generally an empty map
        task - the Morpheus Task to be executed
        excludes - String property names to exclude
        opts - options supplied from the execute method
        Returns:
        TaskConfig
      • buildComputeServerTaskConfig

        public io.reactivex.Single<TaskConfig> buildComputeServerTaskConfig​(ComputeServer server,
                                                                            java.util.Map baseConfig,
                                                                            Task task,
                                                                            java.util.Collection excludes,
                                                                            java.util.Map opts)
        Get configuration details for execution in a remote server.
        Parameters:
        server - the provisioned server
        baseConfig - generally an empty map
        task - the Morpheus Task to be executed
        excludes - String property names to exclude
        opts - options supplied from the execute method
        Returns:
        TaskConfig