com.dtolabs.rundeck.core.resources
Class CachingResourceModelSource

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

public class CachingResourceModelSource
extends ExceptionCatchingResourceModelSource

Abstract caching model source. calls to getNodes will attempt to use the delegate to get nodes. If successful the nodes will be stored in the cache with a call to #storeNodesInCache(com.dtolabs.rundeck.core.common.INodeSet). If any exception is thrown it will be caught. finally getNodes returns the result of #loadCachedNodes()


Field Summary
 
Fields inherited from class com.dtolabs.rundeck.core.resources.ExceptionCatchingResourceModelSource
logger
 
Constructor Summary
CachingResourceModelSource(ResourceModelSource delegate, ResourceModelSourceCache cache)
           
CachingResourceModelSource(ResourceModelSource delegate, java.lang.String identity, ResourceModelSourceCache cache)
           
 
Method Summary
 
Methods inherited from class com.dtolabs.rundeck.core.resources.ExceptionCatchingResourceModelSource
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
 

Constructor Detail

CachingResourceModelSource

public CachingResourceModelSource(ResourceModelSource delegate,
                                  ResourceModelSourceCache cache)

CachingResourceModelSource

public CachingResourceModelSource(ResourceModelSource delegate,
                                  java.lang.String identity,
                                  ResourceModelSourceCache cache)