Class StoragePluginProviderService
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.ChainedProviderService<StoragePlugin>
-
- com.dtolabs.rundeck.core.storage.service.StoragePluginProviderService
-
- All Implemented Interfaces:
FrameworkSupportService
,ProviderService<StoragePlugin>
,DescribableService
,PluggableProviderService<StoragePlugin>
,PluggableService<StoragePlugin>
public class StoragePluginProviderService extends ChainedProviderService<StoragePlugin> implements DescribableService, PluggableProviderService<StoragePlugin>
StoragePluginProviderService is composed of builtin services andPluggableStoragePluginProviderService
- Since:
- 2014-02-21
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERVICE_NAME
-
Constructor Summary
Constructors Constructor Description StoragePluginProviderService()
StoragePluginProviderService(java.util.Map<java.lang.String,java.lang.Class<? extends StoragePlugin>> builtinProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canLoadWithLoader(ProviderLoader loader)
java.util.List<java.lang.String>
getBundledProviderNames()
java.lang.String
getName()
PluggableStoragePluginProviderService
getPluggableStoragePluginProviderService()
protected java.util.List<ProviderService<StoragePlugin>>
getServiceList()
java.util.List<ProviderIdent>
listDescribableProviders()
java.util.List<Description>
listDescriptions()
CloseableProvider<StoragePlugin>
loadCloseableWithLoader(java.lang.String providerName, ProviderLoader loader)
Load a closeable provider with the given loaderStoragePlugin
loadWithLoader(java.lang.String providerName, ProviderLoader loader)
Load provider with the given loadervoid
setPluggableStoragePluginProviderService(PluggableStoragePluginProviderService pluggableStoragePluginProviderService)
-
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
-
StoragePluginProviderService
public StoragePluginProviderService()
-
StoragePluginProviderService
public StoragePluginProviderService(java.util.Map<java.lang.String,java.lang.Class<? extends StoragePlugin>> builtinProviders)
-
-
Method Detail
-
canLoadWithLoader
public boolean canLoadWithLoader(ProviderLoader loader)
- Specified by:
canLoadWithLoader
in interfacePluggableService<StoragePlugin>
- 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 StoragePlugin 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<StoragePlugin>
- 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<StoragePlugin> 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<StoragePlugin>
- 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
-
getBundledProviderNames
public java.util.List<java.lang.String> getBundledProviderNames()
-
getServiceList
protected java.util.List<ProviderService<StoragePlugin>> getServiceList()
- Specified by:
getServiceList
in classChainedProviderService<StoragePlugin>
-
listDescriptions
public java.util.List<Description> listDescriptions()
- Specified by:
listDescriptions
in interfaceDescribableService
-
listDescribableProviders
public java.util.List<ProviderIdent> listDescribableProviders()
- Specified by:
listDescribableProviders
in interfaceDescribableService
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFrameworkSupportService
- Returns:
- the name used to identify the service
-
getPluggableStoragePluginProviderService
public PluggableStoragePluginProviderService getPluggableStoragePluginProviderService()
-
setPluggableStoragePluginProviderService
public void setPluggableStoragePluginProviderService(PluggableStoragePluginProviderService pluggableStoragePluginProviderService)
-
-