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 classDirectoryResourceModelSource.Configuration
-
Field Summary
Fields Modifier and Type Field Description static DescriptionDESCRIPTION
-
Constructor Summary
Constructors Constructor Description DirectoryResourceModelSource(Framework framework)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.util.Properties configuration)Configure the object with the configuration properties.java.util.List<java.lang.String>getModelSourceErrors()INodeSetgetNodes()java.lang.StringtoString()-
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 ConfigurationExceptionDescription copied from interface:ConfigurableConfigure the object with the configuration properties.- Specified by:
configurein interfaceConfigurable- Parameters:
configuration- the properties to use- Throws:
ConfigurationException- if there is an invalid configuration
-
getNodes
public INodeSet getNodes() throws ResourceModelSourceException
- Specified by:
getNodesin interfaceResourceModelSource- Throws:
ResourceModelSourceException
-
getModelSourceErrors
public java.util.List<java.lang.String> getModelSourceErrors()
- Specified by:
getModelSourceErrorsin interfaceResourceModelSourceErrors
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-