public interface ResourceMetadataCache
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.opennms.newts.api.Context context,
org.opennms.newts.api.Resource resourceId)
Deletes an cached entry for the given context and resource ID.
|
com.google.common.base.Optional<ResourceMetadata> |
get(org.opennms.newts.api.Context context,
org.opennms.newts.api.Resource resource)
Returns an
Optional of the ResourceMetadata for context and
resource, or Optional.absent() if one does not exist. |
void |
merge(org.opennms.newts.api.Context context,
org.opennms.newts.api.Resource resource,
ResourceMetadata rMetadata)
Merges the contents of a
ResourceMetadata with the cached instance corresponding to
context and resource. |
void merge(org.opennms.newts.api.Context context,
org.opennms.newts.api.Resource resource,
ResourceMetadata rMetadata)
ResourceMetadata with the cached instance corresponding to
context and resource. If no such ResourceMetadata instance
exists, the supplied value is stored as-is.context - application context of the resource metadataresource - the resourcerMetadata - metadata associated with the resourcecom.google.common.base.Optional<ResourceMetadata> get(org.opennms.newts.api.Context context, org.opennms.newts.api.Resource resource)
Optional of the ResourceMetadata for context and
resource, or Optional.absent() if one does not exist.context - application context of the resource metadataresource - the resourcecontext and resourcevoid delete(org.opennms.newts.api.Context context,
org.opennms.newts.api.Resource resourceId)
context - application context of the resource metadataresourceId - the resourceCopyright © 2021. All rights reserved.