com.dtolabs.rundeck.core.plugins
Class ChainedProviderService<T>

java.lang.Object
  extended by com.dtolabs.rundeck.core.plugins.ChainedProviderService<T>
All Implemented Interfaces:
FrameworkSupportService, ProviderService<T>
Direct Known Subclasses:
ChainedProviderServiceImpl, NodeStepExecutionService, StepExecutionService

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
ChainedProviderService()
           
 
Method Summary
protected abstract  java.util.List<ProviderService<T>> getServiceList()
           
 java.util.List<ProviderIdent> listProviders()
           
 T providerOfType(java.lang.String providerName)
          Return the provider instance of the given name.
 
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
 

Constructor Detail

ChainedProviderService

public ChainedProviderService()
Method Detail

providerOfType

public T providerOfType(java.lang.String providerName)
                 throws ExecutionServiceException
Description copied from interface: ProviderService
Return the provider instance of the given name.

Specified by:
providerOfType in interface ProviderService<T>
Throws:
ExecutionServiceException

listProviders

public java.util.List<ProviderIdent> listProviders()
Specified by:
listProviders in interface ProviderService<T>

getServiceList

protected abstract java.util.List<ProviderService<T>> getServiceList()