Class StepExecutionService
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.ChainedProviderService<StepExecutor>
-
- com.dtolabs.rundeck.core.execution.workflow.steps.StepExecutionService
-
- All Implemented Interfaces:
FrameworkSupportService,ProviderService<StepExecutor>,DescribableService,PluggableProviderService<StepExecutor>,PluggableService<StepExecutor>
public class StepExecutionService extends ChainedProviderService<StepExecutor> implements DescribableService, PluggableProviderService<StepExecutor>
StepExecutionService can provide executors for workflow steps.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanLoadWithLoader(ProviderLoader loader)StepExecutorgetExecutorForItem(StepExecutionItem item)static StepExecutionServicegetInstanceForFramework(Framework framework, IServicesRegistration registration)java.lang.StringgetName()com.dtolabs.rundeck.core.execution.workflow.steps.PluginStepExecutionServicegetPluginStepExecutionService()ProviderRegistryService<StepExecutor>getProviderRegistryService()Deprecated.protected java.util.List<ProviderService<StepExecutor>>getServiceList()static booleanisRegistered(java.lang.String name)java.util.List<ProviderIdent>listDescribableProviders()java.util.List<Description>listDescriptions()CloseableProvider<StepExecutor>loadCloseableWithLoader(java.lang.String providerName, ProviderLoader loader)Load a closeable provider with the given loaderStepExecutorloadWithLoader(java.lang.String providerName, ProviderLoader loader)Load provider with the given loadervoidregisterClass(java.lang.String name, java.lang.Class<? extends StepExecutor> clazz)Deprecated.voidregisterInstance(java.lang.String name, StepExecutor object)Deprecated.-
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
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceFrameworkSupportService- Returns:
- the name used to identify the service
-
isRegistered
public static boolean isRegistered(java.lang.String name)
-
canLoadWithLoader
public boolean canLoadWithLoader(ProviderLoader loader)
- Specified by:
canLoadWithLoaderin interfacePluggableService<StepExecutor>- 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 StepExecutor loadWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
Description copied from interface:PluggableServiceLoad provider with the given loader- Specified by:
loadWithLoaderin interfacePluggableService<StepExecutor>- 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<StepExecutor> 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<StepExecutor>- 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<StepExecutor>> getServiceList()
- Specified by:
getServiceListin classChainedProviderService<StepExecutor>
-
getInstanceForFramework
public static StepExecutionService getInstanceForFramework(Framework framework, IServicesRegistration registration)
-
getExecutorForItem
public StepExecutor getExecutorForItem(StepExecutionItem item) throws ExecutionServiceException
- Throws:
ExecutionServiceException
-
listDescribableProviders
public java.util.List<ProviderIdent> listDescribableProviders()
- Specified by:
listDescribableProvidersin interfaceDescribableService
-
listDescriptions
public java.util.List<Description> listDescriptions()
- Specified by:
listDescriptionsin interfaceDescribableService
-
registerClass
@Deprecated public void registerClass(java.lang.String name, java.lang.Class<? extends StepExecutor> clazz)Deprecated.
-
registerInstance
@Deprecated public void registerInstance(java.lang.String name, StepExecutor object)Deprecated.
-
getProviderRegistryService
@Deprecated public ProviderRegistryService<StepExecutor> getProviderRegistryService()
Deprecated.- Returns:
- dynamic registry for providers
-
getPluginStepExecutionService
public com.dtolabs.rundeck.core.execution.workflow.steps.PluginStepExecutionService getPluginStepExecutionService()
-
-