Class NodeStepExecutionService
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.ChainedProviderService<NodeStepExecutor>
-
- com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepExecutionService
-
- All Implemented Interfaces:
FrameworkSupportService
,ProviderService<NodeStepExecutor>
,DescribableService
,PluggableProviderService<NodeStepExecutor>
,PluggableService<NodeStepExecutor>
public class NodeStepExecutionService extends ChainedProviderService<NodeStepExecutor> implements PluggableProviderService<NodeStepExecutor>, DescribableService
NodeStepExecutionService is a provider of NodeStepExecutors, which aggregates a few services together that provide builtin NodeStepExecutors, and several forms of plugins.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERVICE_NAME
-
Constructor Summary
Constructors Constructor Description NodeStepExecutionService(Framework framework)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canLoadWithLoader(ProviderLoader loader)
com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepExecutionService.ChainedNodeStepPluginService
getChainedNodeStepPluginService()
NodeStepExecutor
getExecutorForExecutionItem(NodeStepExecutionItem item)
static NodeStepExecutionService
getInstanceForFramework(Framework framework, IServicesRegistration registration)
java.lang.String
getName()
com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepPluginService
getNodeStepPluginService()
ProviderRegistryService<NodeStepExecutor>
getProviderRegistryService()
com.dtolabs.rundeck.core.execution.workflow.steps.node.RemoteScriptNodeStepPluginService
getRemoteScriptNodeStepPluginService()
protected java.util.List<ProviderService<NodeStepExecutor>>
getServiceList()
java.util.List<ProviderIdent>
listDescribableProviders()
java.util.List<Description>
listDescriptions()
CloseableProvider<NodeStepExecutor>
loadCloseableWithLoader(java.lang.String providerName, ProviderLoader loader)
Load a closeable provider with the given loaderNodeStepExecutor
loadWithLoader(java.lang.String providerName, ProviderLoader loader)
Load provider with the given loadervoid
registerClass(java.lang.String name, java.lang.Class<? extends NodeStepExecutor> clazz)
void
registerInstance(java.lang.String name, NodeStepExecutor object)
-
Methods inherited from class com.dtolabs.rundeck.core.plugins.ChainedProviderService
closeableProviderOfType, listProviders, providerOfType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.PluggableProviderService
adapter
-
Methods inherited from interface com.dtolabs.rundeck.core.common.ProviderService
closeableProviderOfType, listProviders, providerOfType
-
-
-
-
Field Detail
-
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NodeStepExecutionService
public NodeStepExecutionService(Framework framework)
-
-
Method Detail
-
getChainedNodeStepPluginService
public com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepExecutionService.ChainedNodeStepPluginService getChainedNodeStepPluginService()
-
canLoadWithLoader
public boolean canLoadWithLoader(ProviderLoader loader)
- Specified by:
canLoadWithLoader
in interfacePluggableService<NodeStepExecutor>
- Parameters:
loader
- loader- Returns:
- true if the loader can be used for this service, by default delegates to the loader's
ProviderLoader.canLoadForService(FrameworkSupportService)
-
loadWithLoader
public NodeStepExecutor loadWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
Description copied from interface:PluggableService
Load provider with the given loader- Specified by:
loadWithLoader
in interfacePluggableService<NodeStepExecutor>
- Parameters:
providerName
- provider nameloader
- loader- Returns:
- loaded provider instance, by default delegates to the loader's
ProviderLoader.load(PluggableService, String)
- Throws:
ProviderLoaderException
- if an error occurs
-
loadCloseableWithLoader
public CloseableProvider<NodeStepExecutor> loadCloseableWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
Description copied from interface:PluggableService
Load a closeable provider with the given loader- Specified by:
loadCloseableWithLoader
in interfacePluggableService<NodeStepExecutor>
- Parameters:
providerName
- provider nameloader
- loader- Returns:
- closeable provider for instance, by default delegates to the loader's
ProviderLoader.loadCloseable(PluggableService, String)
- Throws:
ProviderLoaderException
- if an error occurs
-
getServiceList
protected java.util.List<ProviderService<NodeStepExecutor>> getServiceList()
- Specified by:
getServiceList
in classChainedProviderService<NodeStepExecutor>
-
registerInstance
public void registerInstance(java.lang.String name, NodeStepExecutor object)
-
registerClass
public void registerClass(java.lang.String name, java.lang.Class<? extends NodeStepExecutor> clazz)
-
getExecutorForExecutionItem
public NodeStepExecutor getExecutorForExecutionItem(NodeStepExecutionItem item) throws ExecutionServiceException
- Throws:
ExecutionServiceException
-
getInstanceForFramework
public static NodeStepExecutionService getInstanceForFramework(Framework framework, IServicesRegistration registration)
-
listDescriptions
public java.util.List<Description> listDescriptions()
- Specified by:
listDescriptions
in interfaceDescribableService
-
listDescribableProviders
public java.util.List<ProviderIdent> listDescribableProviders()
- Specified by:
listDescribableProviders
in interfaceDescribableService
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFrameworkSupportService
- Returns:
- the name used to identify the service
-
getProviderRegistryService
public ProviderRegistryService<NodeStepExecutor> getProviderRegistryService()
- Returns:
- dynamic registry for providers
-
getNodeStepPluginService
public com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepPluginService getNodeStepPluginService()
-
getRemoteScriptNodeStepPluginService
public com.dtolabs.rundeck.core.execution.workflow.steps.node.RemoteScriptNodeStepPluginService getRemoteScriptNodeStepPluginService()
-
-