public class ResourceCacheService extends Object implements ResourceCacheServiceMBean
MBEAN_CLASS, OBJECT_NAME
Constructor and Description |
---|
ResourceCacheService(MBeanServer mBeanServer,
ResourceCache resourceCache,
ReliableResourceDownloadManager downloadManager,
FrameworkProperties frameworkProperties,
CatalogFramework catalogFramework) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Metacard metacard)
Determines if the resource associated with the metacard is in the resource cache
|
boolean |
containsById(String metacardId)
Determines if the resource associated with the metacard is in the resource cache
|
void |
destroy() |
void |
init() |
boolean |
isCacheEnabled()
Determines if the resource cache is enabled.
|
public ResourceCacheService(MBeanServer mBeanServer, ResourceCache resourceCache, ReliableResourceDownloadManager downloadManager, FrameworkProperties frameworkProperties, CatalogFramework catalogFramework) throws MalformedObjectNameException
MalformedObjectNameException
public void init()
public void destroy()
public boolean isCacheEnabled()
ResourceCacheServiceMBean
isCacheEnabled
in interface ResourceCacheServiceMBean
true
if the resource cache is enabled, false
otherwisepublic boolean contains(Metacard metacard)
ResourceCacheServiceMBean
contains
in interface ResourceCacheServiceMBean
metacard
- to use to find a matching resourcetrue
if the resource is in the cache, false
otherwise.public boolean containsById(String metacardId)
ResourceCacheServiceMBean
containsById
in interface ResourceCacheServiceMBean
metacardId
- to use to find a matching resourcetrue
if the resource is in the cache, false
otherwise.This work is licensed under a Creative Commons Attribution 4.0 International License.