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.String
SERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canLoadWithLoader(ProviderLoader loader)
StepExecutor
getExecutorForItem(StepExecutionItem item)
static StepExecutionService
getInstanceForFramework(Framework framework, IServicesRegistration registration)
java.lang.String
getName()
com.dtolabs.rundeck.core.execution.workflow.steps.PluginStepExecutionService
getPluginStepExecutionService()
ProviderRegistryService<StepExecutor>
getProviderRegistryService()
Deprecated.protected java.util.List<ProviderService<StepExecutor>>
getServiceList()
static boolean
isRegistered(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 loaderStepExecutor
loadWithLoader(java.lang.String providerName, ProviderLoader loader)
Load provider with the given loadervoid
registerClass(java.lang.String name, java.lang.Class<? extends StepExecutor> clazz)
Deprecated.void
registerInstance(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:
getName
in 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:
canLoadWithLoader
in 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:PluggableService
Load provider with the given loader- Specified by:
loadWithLoader
in 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:PluggableService
Load a closeable provider with the given loader- Specified by:
loadCloseableWithLoader
in 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:
getServiceList
in 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:
listDescribableProviders
in interfaceDescribableService
-
listDescriptions
public java.util.List<Description> listDescriptions()
- Specified by:
listDescriptions
in 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()
-
-