Class DirectoryResourceModelSource
- java.lang.Object
-
- com.dtolabs.rundeck.core.resources.DirectoryResourceModelSource
-
- All Implemented Interfaces:
Configurable
,ResourceModelSource
,ResourceModelSourceErrors
public class DirectoryResourceModelSource extends java.lang.Object implements ResourceModelSource, ResourceModelSourceErrors, Configurable
DirectoryResourceModelSource scans a directory for xml and yaml files, and loads all discovered files as nodes files
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectoryResourceModelSource.Configuration
-
Field Summary
Fields Modifier and Type Field Description static Description
DESCRIPTION
-
Constructor Summary
Constructors Constructor Description DirectoryResourceModelSource(Framework framework)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(java.util.Properties configuration)
Configure the object with the configuration properties.java.util.List<java.lang.String>
getModelSourceErrors()
INodeSet
getNodes()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.resources.ResourceModelSource
getSourceType, getWriteable
-
-
-
-
Field Detail
-
DESCRIPTION
public static final Description DESCRIPTION
-
-
Constructor Detail
-
DirectoryResourceModelSource
public DirectoryResourceModelSource(Framework framework)
-
-
Method Detail
-
configure
public void configure(java.util.Properties configuration) throws ConfigurationException
Description copied from interface:Configurable
Configure the object with the configuration properties.- Specified by:
configure
in interfaceConfigurable
- Parameters:
configuration
- the properties to use- Throws:
ConfigurationException
- if there is an invalid configuration
-
getNodes
public INodeSet getNodes() throws ResourceModelSourceException
- Specified by:
getNodes
in interfaceResourceModelSource
- Throws:
ResourceModelSourceException
-
getModelSourceErrors
public java.util.List<java.lang.String> getModelSourceErrors()
- Specified by:
getModelSourceErrors
in interfaceResourceModelSourceErrors
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-