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
MalformedObjectNameExceptionpublic void init()
public void destroy()
public boolean isCacheEnabled()
ResourceCacheServiceMBeanisCacheEnabled in interface ResourceCacheServiceMBeantrue if the resource cache is enabled, false otherwisepublic boolean contains(Metacard metacard)
ResourceCacheServiceMBeancontains in interface ResourceCacheServiceMBeanmetacard - to use to find a matching resourcetrue if the resource is in the cache, false otherwise.public boolean containsById(String metacardId)
ResourceCacheServiceMBeancontainsById in interface ResourceCacheServiceMBeanmetacardId - 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.