Package com.morpheusdata.core
Class AbstractTaskService
- java.lang.Object
-
- com.morpheusdata.core.AbstractTaskService
-
- All Implemented Interfaces:
ExecutableTaskInterface
public abstract class AbstractTaskService extends java.lang.Object implements ExecutableTaskInterface
Provides helper methods to build task configurations. These builder methods can be called from the variousExecutableTaskInterface
execute methods to obtain the necessary resource details for task execution.- See Also:
MorpheusTaskService
-
-
Constructor Summary
Constructors Constructor Description AbstractTaskService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.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 Instanceio.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.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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.morpheusdata.core.ExecutableTaskInterface
executeContainerTask, executeContainerTask, executeLocalTask, executeRemoteTask, executeRemoteTask, executeServerTask, executeServerTask, getMorpheus
-
-
-
-
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 maptask
- the Morpheus Task to be executedexcludes
- String property names to excludeopts
- 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 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.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 maptask
- the Morpheus Task to be executedexcludes
- String property names to excludeopts
- 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 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.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 serverbaseConfig
- generally an empty maptask
- the Morpheus Task to be executedexcludes
- String property names to excludeopts
- options supplied from the execute method- Returns:
TaskConfig
-
-