com.dtolabs.rundeck.core.resources
Class DirectoryResourceModelSource

java.lang.Object
  extended by com.dtolabs.rundeck.core.resources.DirectoryResourceModelSource
All Implemented Interfaces:
Configurable, ResourceModelSource

public class DirectoryResourceModelSource
extends java.lang.Object
implements ResourceModelSource, Configurable

DirectoryResourceModelSource scans a directory for xml and yaml files, and loads all discovered files as nodes files


Nested Class Summary
static class DirectoryResourceModelSource.Configuration
           
 
Field Summary
static Description DESCRIPTION
           
 
Constructor Summary
DirectoryResourceModelSource(Framework framework)
           
 
Method Summary
 void configure(java.util.Properties configuration)
          Configure the object with the configuration properties.
 INodeSet getNodes()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 interface Configurable
Parameters:
configuration - the properties to use
Throws:
ConfigurationException - if there is an invalid configuration

getNodes

public INodeSet getNodes()
                  throws ResourceModelSourceException
Specified by:
getNodes in interface ResourceModelSource
Throws:
ResourceModelSourceException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object