Package com.morpheusdata.core
Class AbstractTaskService
java.lang.Object
com.morpheusdata.core.AbstractTaskService
- All Implemented Interfaces:
ExecutableTaskInterface
Provides helper methods to build task configurations.
These builder methods can be called from the various
ExecutableTaskInterface execute methods to obtain the
necessary resource details for task execution.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<TaskConfig>buildComputeServerTaskConfig(ComputeServer server, Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a remote server.io.reactivex.rxjava3.core.Single<TaskConfig>buildContainerTaskConfig(Container container, Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a container.io.reactivex.rxjava3.core.Single<TaskConfig>buildInstanceTaskConfig(Instance instance, Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution on an Instanceio.reactivex.rxjava3.core.Single<TaskConfig>buildLocalTaskConfig(Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a local context.io.reactivex.rxjava3.core.Single<TaskConfig>buildRemoteTaskConfig(Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a remote context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.morpheusdata.core.ExecutableTaskInterface
executeContainerTask, executeContainerTask, executeLocalTask, executeRemoteTask, executeRemoteTask, executeServerTask, executeServerTask, getMorpheus
-
Constructor Details
-
AbstractTaskService
public AbstractTaskService()
-
-
Method Details
-
buildLocalTaskConfig
public io.reactivex.rxjava3.core.Single<TaskConfig> buildLocalTaskConfig(Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a local context.- Parameters:
baseConfig- generally an empty maptask- the Morpheus Task to be executedexcludes- String property names to excludeopts- options supplied from the execute method- Returns:
TaskConfig
-
buildInstanceTaskConfig
public io.reactivex.rxjava3.core.Single<TaskConfig> buildInstanceTaskConfig(Instance instance, Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution on an Instance- Parameters:
instance- the provisioned instancebaseConfig- generally an empty maptask- the Morpheus Task to be executedexcludes- String property names to excludeopts- options supplied from the execute method- Returns:
TaskConfig
-
buildRemoteTaskConfig
public io.reactivex.rxjava3.core.Single<TaskConfig> buildRemoteTaskConfig(Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a remote context.- Parameters:
baseConfig- generally an empty maptask- the Morpheus Task to be executedexcludes- String property names to excludeopts- options supplied from the execute method- Returns:
TaskConfig
-
buildContainerTaskConfig
public io.reactivex.rxjava3.core.Single<TaskConfig> buildContainerTaskConfig(Container container, Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a container.- Parameters:
container- the provisioned VM or ContainerbaseConfig- generally an empty maptask- the Morpheus Task to be executedexcludes- String property names to excludeopts- options supplied from the execute method- Returns:
TaskConfig
-
buildComputeServerTaskConfig
public io.reactivex.rxjava3.core.Single<TaskConfig> buildComputeServerTaskConfig(ComputeServer server, Map baseConfig, Task task, Collection excludes, Map opts) Get configuration details for execution in a remote server.- Parameters:
server- the provisioned serverbaseConfig- generally an empty maptask- the Morpheus Task to be executedexcludes- String property names to excludeopts- options supplied from the execute method- Returns:
TaskConfig
-