Class FileCopierService
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.AbstractProviderRegistryService<T>
-
- com.dtolabs.rundeck.core.plugins.BaseProviderRegistryService<T>
-
- com.dtolabs.rundeck.core.plugins.PluggableProviderRegistryService<T>
-
- com.dtolabs.rundeck.core.execution.service.NodeSpecifiedService<FileCopier>
-
- com.dtolabs.rundeck.core.execution.service.FileCopierService
-
- All Implemented Interfaces:
FrameworkSupportService,ProviderService<FileCopier>,DescribableService,JavaClassProviderLoadable<FileCopier>,PluggableProviderService<FileCopier>,PluggableService<FileCopier>,ProviderRegistryService<FileCopier>,ScriptPluginProviderLoadable<FileCopier>
public class FileCopierService extends NodeSpecifiedService<FileCopier> implements DescribableService, PluggableProviderService<FileCopier>, JavaClassProviderLoadable<FileCopier>, ScriptPluginProviderLoadable<FileCopier>
FileCopierService is ...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_LOCAL_PROVIDERstatic java.lang.StringDEFAULT_REMOTE_PROVIDERstatic java.lang.StringLOCAL_NODE_SERVICE_SPECIFIER_ATTRIBUTEstatic java.lang.StringREMOTE_NODE_SERVICE_SPECIFIER_ATTRIBUTEstatic java.lang.StringSERVICE_DEFAULT_PROVIDER_PROPERTY-
Fields inherited from class com.dtolabs.rundeck.core.plugins.BaseProviderRegistryService
framework
-
Fields inherited from class com.dtolabs.rundeck.core.plugins.AbstractProviderRegistryService
instanceregistry, registry
-
-
Constructor Summary
Constructors Constructor Description FileCopierService(Framework framework)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <X extends FileCopier>
FileCopiercreateProviderInstance(java.lang.Class<X> clazz, java.lang.String name)FileCopiercreateScriptProviderInstance(ScriptPluginProvider provider)java.util.List<java.lang.String>getBundledProviderNames()java.lang.StringgetDefaultProviderNameForNodeAndProject(INodeEntry node, java.lang.String project)static FileCopierServicegetInstanceForFramework(Framework framework, IServicesRegistration registration)java.lang.StringgetName()static java.lang.StringgetNodeAttributeForProvider(boolean isLocal)static java.lang.StringgetProviderNameForNode(boolean isLocal, IRundeckProjectConfig iRundeckProjectConfig)java.lang.StringgetServiceProviderNodeAttributeForNode(INodeEntry node)static booleanisRegistered(java.lang.String name)booleanisValidProviderClass(java.lang.Class clazz)java.util.List<ProviderIdent>listDescribableProviders()java.util.List<Description>listDescriptions()-
Methods inherited from class com.dtolabs.rundeck.core.execution.service.NodeSpecifiedService
getProviderForNodeAndProject
-
Methods inherited from class com.dtolabs.rundeck.core.plugins.PluggableProviderRegistryService
closeableProviderOfType, listProviders, providerOfType
-
Methods inherited from class com.dtolabs.rundeck.core.plugins.BaseProviderRegistryService
createProviderInstanceFromType, hasValidProviderSignature
-
Methods inherited from class com.dtolabs.rundeck.core.plugins.AbstractProviderRegistryService
getRegistryMap, registerClass, registerInstance
-
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.plugins.PluggableService
canLoadWithLoader, loadCloseableWithLoader, loadWithLoader
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.ProviderRegistryService
isCacheInstances, registerClass, registerInstance, setCacheInstances
-
Methods inherited from interface com.dtolabs.rundeck.core.common.ProviderService
closeableProviderOfType, listProviders, providerOfType
-
-
-
-
Field Detail
-
SERVICE_DEFAULT_PROVIDER_PROPERTY
public static final java.lang.String SERVICE_DEFAULT_PROVIDER_PROPERTY
- See Also:
- Constant Field Values
-
REMOTE_NODE_SERVICE_SPECIFIER_ATTRIBUTE
public static final java.lang.String REMOTE_NODE_SERVICE_SPECIFIER_ATTRIBUTE
- See Also:
- Constant Field Values
-
LOCAL_NODE_SERVICE_SPECIFIER_ATTRIBUTE
public static final java.lang.String LOCAL_NODE_SERVICE_SPECIFIER_ATTRIBUTE
- See Also:
- Constant Field Values
-
DEFAULT_REMOTE_PROVIDER
public static final java.lang.String DEFAULT_REMOTE_PROVIDER
- See Also:
- Constant Field Values
-
DEFAULT_LOCAL_PROVIDER
public static final java.lang.String DEFAULT_LOCAL_PROVIDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileCopierService
public FileCopierService(Framework framework)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceFrameworkSupportService- Returns:
- the name used to identify the service
-
getBundledProviderNames
public java.util.List<java.lang.String> getBundledProviderNames()
-
isRegistered
public static boolean isRegistered(java.lang.String name)
-
getDefaultProviderNameForNodeAndProject
public java.lang.String getDefaultProviderNameForNodeAndProject(INodeEntry node, java.lang.String project)
- Specified by:
getDefaultProviderNameForNodeAndProjectin classNodeSpecifiedService<FileCopier>- Parameters:
node- nodeproject- project- Returns:
- name of default provider for this service
-
getProviderNameForNode
public static java.lang.String getProviderNameForNode(boolean isLocal, IRundeckProjectConfig iRundeckProjectConfig)
-
getInstanceForFramework
public static FileCopierService getInstanceForFramework(Framework framework, IServicesRegistration registration)
-
getServiceProviderNodeAttributeForNode
public java.lang.String getServiceProviderNodeAttributeForNode(INodeEntry node)
- Specified by:
getServiceProviderNodeAttributeForNodein classNodeSpecifiedService<FileCopier>- Parameters:
node- node- Returns:
- name of Node attribute that specifies the service provider name for this service.
-
getNodeAttributeForProvider
public static java.lang.String getNodeAttributeForProvider(boolean isLocal)
-
isValidProviderClass
public boolean isValidProviderClass(java.lang.Class clazz)
- Specified by:
isValidProviderClassin interfaceJavaClassProviderLoadable<FileCopier>- Parameters:
clazz- the class- Returns:
- true if the class is a valid provider class for the service
-
createProviderInstance
public <X extends FileCopier> FileCopier createProviderInstance(java.lang.Class<X> clazz, java.lang.String name) throws PluginException, ProviderCreationException
- Specified by:
createProviderInstancein interfaceJavaClassProviderLoadable<FileCopier>- Type Parameters:
X- subtype of T- Parameters:
clazz- the classname- the provider name- Returns:
- Create provider instance from a class
- Throws:
PluginException- if the plugin has an errorProviderCreationException- if creating the instance has an error
-
createScriptProviderInstance
public FileCopier createScriptProviderInstance(ScriptPluginProvider provider) throws PluginException
- Specified by:
createScriptProviderInstancein interfaceScriptPluginProviderLoadable<FileCopier>- Parameters:
provider- the script plugin provider- Returns:
- the instance for a ScriptPluginProvider definition
- Throws:
PluginException- if the plugin has an error
-
listDescriptions
public java.util.List<Description> listDescriptions()
- Specified by:
listDescriptionsin interfaceDescribableService
-
listDescribableProviders
public java.util.List<ProviderIdent> listDescribableProviders()
- Specified by:
listDescribableProvidersin interfaceDescribableService
-
-