com.dtolabs.rundeck.core.resources
Class ExceptionCatchingResourceModelSource
java.lang.Object
com.dtolabs.rundeck.core.resources.DelegateResourceModelSource
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final org.apache.log4j.Logger logger
ExceptionCatchingResourceModelSource
protected ExceptionCatchingResourceModelSource(ResourceModelSource delegate)
ExceptionCatchingResourceModelSource
protected ExceptionCatchingResourceModelSource(ResourceModelSource delegate,
java.lang.String identity)
getNodes
public INodeSet getNodes()
throws ResourceModelSourceException
- Specified by:
getNodes
in interface ResourceModelSource
- Overrides:
getNodes
in class DelegateResourceModelSource
- Throws:
ResourceModelSourceException