public class CacheDynamicMBean
extends java.lang.Object
implements javax.management.DynamicMBean
| Constructor and Description |
|---|
CacheDynamicMBean(org.echocat.jomon.cache.Cache<?,?> cache) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends org.echocat.jomon.cache.Cache<?,?>> |
cast(java.lang.Class<T> type) |
java.lang.Object |
getAttribute(java.lang.String attribute) |
protected javax.management.MBeanAttributeInfo[] |
getAttributes() |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
protected java.lang.String |
getListenersAsString(java.util.Collection<org.echocat.jomon.cache.CacheListener> listeners) |
javax.management.MBeanInfo |
getMBeanInfo() |
protected javax.management.MBeanOperationInfo[] |
getOperations() |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
public CacheDynamicMBean(@Nonnull
org.echocat.jomon.cache.Cache<?,?> cache)
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
getAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionjavax.management.ReflectionException@Nonnull
protected java.lang.String getListenersAsString(@Nonnull
java.util.Collection<org.echocat.jomon.cache.CacheListener> listeners)
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.InvalidAttributeValueExceptionjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
invoke in interface javax.management.DynamicMBeanjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBean@Nonnull protected javax.management.MBeanAttributeInfo[] getAttributes()
@Nonnull protected javax.management.MBeanOperationInfo[] getOperations()
@Nonnull
protected <T extends org.echocat.jomon.cache.Cache<?,?>> T cast(@Nonnull
java.lang.Class<T> type)
throws javax.management.AttributeNotFoundException
javax.management.AttributeNotFoundExceptionpublic javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes in interface javax.management.DynamicMBeanpublic javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBeanCopyright © 2016 echocat. All Rights Reserved.