com.dtolabs.rundeck.core.resources
Class ExceptionCatchingResourceModelSource

java.lang.Object
  extended by com.dtolabs.rundeck.core.resources.DelegateResourceModelSource
      extended by com.dtolabs.rundeck.core.resources.ExceptionCatchingResourceModelSource
All Implemented Interfaces:
ResourceModelSource
Direct Known Subclasses:
CachingResourceModelSource

public abstract class ExceptionCatchingResourceModelSource
extends DelegateResourceModelSource

Wraps a ResourceModelSource and provides resilience in case the underlying source throws checked or unchecked exceptions. Any exceptions thrown will be caught, and #returnResultNodes(com.dtolabs.rundeck.core.common .INodeSet) called with either null (exception thrown), or the result of the underlying call to getNodes


Field Summary
static org.apache.log4j.Logger logger
           
 
Constructor Summary
protected ExceptionCatchingResourceModelSource(ResourceModelSource delegate)
           
protected ExceptionCatchingResourceModelSource(ResourceModelSource delegate, java.lang.String identity)
           
 
Method Summary
 INodeSet getNodes()
           
 
Methods inherited from class com.dtolabs.rundeck.core.resources.DelegateResourceModelSource
getDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger
Constructor Detail

ExceptionCatchingResourceModelSource

protected ExceptionCatchingResourceModelSource(ResourceModelSource delegate)

ExceptionCatchingResourceModelSource

protected ExceptionCatchingResourceModelSource(ResourceModelSource delegate,
                                               java.lang.String identity)
Method Detail

getNodes

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