Package com.dtolabs.rundeck.core.plugins
Class ChainedProviderService<T>
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.ChainedProviderService<T>
-
- All Implemented Interfaces:
FrameworkSupportService,ProviderService<T>
- Direct Known Subclasses:
ChainedProviderServiceImpl,NodeStepExecutionService,StepExecutionService,StoragePluginProviderService,WorkflowExecutionService,WorkflowStrategyService
public abstract class ChainedProviderService<T> extends java.lang.Object implements ProviderService<T>
ChainedProviderService attempts to load the provider from a primary service, and if that fails, it attempts it from a secondary service.
-
-
Constructor Summary
Constructors Constructor Description ChainedProviderService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CloseableProvider<T>closeableProviderOfType(java.lang.String providerName)protected abstract java.util.List<ProviderService<T>>getServiceList()java.util.List<ProviderIdent>listProviders()TproviderOfType(java.lang.String providerName)-
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.common.FrameworkSupportService
getName
-
-
-
-
Method Detail
-
providerOfType
public T providerOfType(java.lang.String providerName) throws ExecutionServiceException
- Specified by:
providerOfTypein interfaceProviderService<T>- Parameters:
providerName- name of the service provider- Returns:
- the provider instance of the given name.
- Throws:
ExecutionServiceException- on error
-
closeableProviderOfType
public CloseableProvider<T> closeableProviderOfType(java.lang.String providerName) throws ExecutionServiceException
- Specified by:
closeableProviderOfTypein interfaceProviderService<T>- Throws:
ExecutionServiceException
-
listProviders
public java.util.List<ProviderIdent> listProviders()
- Specified by:
listProvidersin interfaceProviderService<T>
-
getServiceList
protected abstract java.util.List<ProviderService<T>> getServiceList()
-
-