Package com.morpheusdata.core
Interface TaskProvider
- All Superinterfaces:
PluginProvider
,TaskProvider
Deprecated.
Provides a standard set of methods for interacting with cloud integrations or on-prem service providers.
This includes syncing assets related to things like VirtualMachines or Containers for various cloud types. For
integrating with actual provisioning a
ProvisionProvider
is also available.
NOTE: This Provider is deprecated and has been moved to TaskProvider
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault TaskResult
executeContainerTask
(Workload workload, Task task) Deprecated.Task execution on a provisionedWorkload
default TaskResult
executeContainerTask
(Workload workload, Task task, Map opts) Deprecated.Task execution on a provisionedWorkload
default TaskResult
executeLocalTask
(Task task, Map opts, Workload workload, ComputeServer server, Instance instance) Deprecated.Task execution in a local contextdefault TaskResult
executeRemoteTask
(Task task, Workload workload, ComputeServer server, Instance instance) Deprecated.Task execution in a remote contextdefault TaskResult
executeRemoteTask
(Task task, Map opts, Workload workload, ComputeServer server, Instance instance) Deprecated.Task execution in a remote contextdefault TaskResult
executeServerTask
(ComputeServer server, Task task) Deprecated.Task execution on a provisionedComputeServer
default TaskResult
executeServerTask
(ComputeServer server, Task task, Map opts) Deprecated.Task execution on a provisionedComputeServer
default TaskResult
executeWorkloadTask
(Workload workload, Task task, Map opts) Deprecated.Task execution on a provisionedWorkload
Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
Methods inherited from interface com.morpheusdata.core.providers.TaskProvider
getDescription, getIcon, getOptionTypes, getScope, getService, hasResults, isAllowExecuteLocal, isAllowExecuteRemote, isAllowExecuteResource, isAllowLocalRepo, isAllowRemoteKeyAuth
-
Method Details
-
executeLocalTask
default TaskResult executeLocalTask(Task task, Map opts, Workload workload, ComputeServer server, Instance instance) Deprecated.Task execution in a local context- Specified by:
executeLocalTask
in interfaceTaskProvider
- Parameters:
task
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this taskworkload
- optionalWorkload
detailsserver
- optionalComputeServer
detailsinstance
- optionalInstance
details- Returns:
- the result of the task
-
executeServerTask
Deprecated.Task execution on a provisionedComputeServer
- Specified by:
executeServerTask
in interfaceTaskProvider
- Parameters:
server
- server detailstask
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this task- Returns:
- the result of the task
-
executeServerTask
Deprecated.Task execution on a provisionedComputeServer
- Specified by:
executeServerTask
in interfaceTaskProvider
- Parameters:
server
-ComputeServer
detailstask
- Morpheus task to be executed- Returns:
- the result of the task
-
executeWorkloadTask
Deprecated.Task execution on a provisionedWorkload
- Parameters:
workload
-Workload
detailstask
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this task- Returns:
- the result of the task
-
executeContainerTask
Deprecated.Task execution on a provisionedWorkload
- Specified by:
executeContainerTask
in interfaceTaskProvider
- Parameters:
workload
-Workload
detailstask
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this task- Returns:
- the result of the task
-
executeContainerTask
Deprecated.Task execution on a provisionedWorkload
- Specified by:
executeContainerTask
in interfaceTaskProvider
- Parameters:
workload
-Workload
detailstask
- Morpheus task to be executed- Returns:
- the result of the task
-
executeRemoteTask
default TaskResult executeRemoteTask(Task task, Map opts, Workload workload, ComputeServer server, Instance instance) Deprecated.Task execution in a remote context- Specified by:
executeRemoteTask
in interfaceTaskProvider
- Parameters:
task
- Morpheus task to be executedopts
- contains the values of anyOptionType
that were defined for this taskworkload
- optionalContainer
detailsserver
- optionalComputeServer
detailsinstance
- optionalInstance
details- Returns:
- the result of the task
-
executeRemoteTask
default TaskResult executeRemoteTask(Task task, Workload workload, ComputeServer server, Instance instance) Deprecated.Task execution in a remote context- Specified by:
executeRemoteTask
in interfaceTaskProvider
- Parameters:
task
- Morpheus task to be executedworkload
- optionalContainer
detailsserver
- optionalComputeServer
detailsinstance
- optionalInstance
details- Returns:
- the result of the task
-