Class CacheKeyProvider
java.lang.Object
org.jolokia.server.core.service.api.AbstractJolokiaService<CacheKeyProvider>
org.jolokia.service.jmx.api.CacheKeyProvider
- All Implemented Interfaces:
Comparable<CacheKeyProvider>,org.jolokia.server.core.service.api.JolokiaService<CacheKeyProvider>
- Direct Known Subclasses:
JDKManagementCacheKeyProvider
public abstract class CacheKeyProvider
extends org.jolokia.server.core.service.api.AbstractJolokiaService<CacheKeyProvider>
implements org.jolokia.server.core.service.api.JolokiaService<CacheKeyProvider>
An SPI interface used by
ListHandler that can be used to optimize the
structure of list() operation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jolokia.server.core.service.api.JolokiaService
org.jolokia.server.core.service.api.JolokiaService.Init -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringdetermineKey(ObjectInstance objectInstance) By providing a non-null key for anObjectInstancean extension may tell Jolokia that the JSON data forMBeanInfocan be shared with otherinstancesthat use the same cache key.Methods inherited from class org.jolokia.server.core.service.api.AbstractJolokiaService
compareTo, destroy, getJolokiaContext, getOrder, getType, init, isEnabled, registerJolokiaMBean, unregisterJolokiaMBeanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.jolokia.server.core.service.api.JolokiaService
destroy, getOrder, getType, init, isEnabled
-
Constructor Details
-
CacheKeyProvider
protected CacheKeyProvider(int pOrderId)
-
-
Method Details
-
determineKey
By providing a non-null key for anObjectInstancean extension may tell Jolokia that the JSON data forMBeanInfocan be shared with otherinstancesthat use the same cache key. This heavily optimizes memory usage and size oflist()response.- Parameters:
objectInstance-- Returns:
-