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.StringSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description NodeStepExecutionService(Framework framework)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanLoadWithLoader(ProviderLoader loader)com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepExecutionService.ChainedNodeStepPluginServicegetChainedNodeStepPluginService()NodeStepExecutorgetExecutorForExecutionItem(NodeStepExecutionItem item)static NodeStepExecutionServicegetInstanceForFramework(Framework framework, IServicesRegistration registration)java.lang.StringgetName()com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepPluginServicegetNodeStepPluginService()ProviderRegistryService<NodeStepExecutor>getProviderRegistryService()com.dtolabs.rundeck.core.execution.workflow.steps.node.RemoteScriptNodeStepPluginServicegetRemoteScriptNodeStepPluginService()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 loaderNodeStepExecutorloadWithLoader(java.lang.String providerName, ProviderLoader loader)Load provider with the given loader-
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:
canLoadWithLoaderin 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:PluggableServiceLoad provider with the given loader- Specified by:
loadWithLoaderin 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:PluggableServiceLoad a closeable provider with the given loader- Specified by:
loadCloseableWithLoaderin 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:
getServiceListin classChainedProviderService<NodeStepExecutor>
-
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:
listDescriptionsin interfaceDescribableService
-
listDescribableProviders
public java.util.List<ProviderIdent> listDescribableProviders()
- Specified by:
listDescribableProvidersin interfaceDescribableService
-
getName
public java.lang.String getName()
- Specified by:
getNamein 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()
-
-