@WebListener public class CacheMonitor extends JmxMonitor implements CacheMonitorMXBean
Constructor and Description |
---|
CacheMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
long |
getCacheSize() |
List<CacheStats> |
getCacheStatsList() |
long |
getEvictionCount() |
long |
getHitCount() |
static CacheMonitor |
getInstance() |
long |
getLoadExceptionCount() |
long |
getLoadSuccessCount() |
long |
getMissCount() |
long |
getTotalLoadTime() |
long |
invalidateCaches() |
long |
invalidateTenantCaches(String tenantId) |
long |
invalidateUserCaches(String tenantId,
String userName) |
registerJmxBean, unregisterJmxBean
@Generated(value="lombok") public CacheMonitor()
public long invalidateCaches()
invalidateCaches
in interface CacheMonitorMXBean
public long invalidateTenantCaches(String tenantId)
invalidateTenantCaches
in interface CacheMonitorMXBean
public long invalidateUserCaches(String tenantId, String userName)
invalidateUserCaches
in interface CacheMonitorMXBean
public long getCacheSize()
getCacheSize
in interface CacheMonitorMXBean
public long getHitCount()
getHitCount
in interface CacheMonitorMXBean
public long getMissCount()
getMissCount
in interface CacheMonitorMXBean
public long getLoadSuccessCount()
getLoadSuccessCount
in interface CacheMonitorMXBean
public long getLoadExceptionCount()
getLoadExceptionCount
in interface CacheMonitorMXBean
public long getTotalLoadTime()
getTotalLoadTime
in interface CacheMonitorMXBean
public long getEvictionCount()
getEvictionCount
in interface CacheMonitorMXBean
public List<CacheStats> getCacheStatsList()
getCacheStatsList
in interface CacheMonitorMXBean
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
@Generated(value="lombok") public static CacheMonitor getInstance()
Copyright © 2017 SAP SE. All rights reserved.