public interface CacheJmxWrapperMBean<K,V> extends LegacyConfiguration
Cache
. Full access to the cache is not supported, only a certain
set of operations are exposed via JMX:
Configuration
elementsJmxRegistrationManager
. Use this class only when you want to obtain
a reference to a Cache object through JMX.Modifier and Type | Field and Description |
---|---|
static int |
CREATED
The lifecycle method create has completed
|
static int |
DESTROYED
The lifecycle method destroy has completed
|
static int |
FAILED
There has been an error during some operation
|
static int |
REGISTERED
The MBean has been instantiated and has completed MBeanRegistration.postRegister
|
static int |
STARTED
The lifecycle method start has completed
|
static int |
STARTING
The lifecycle method start has been invoked
|
static int |
STOPPED
The lifecycle method stop has completed
|
static int |
STOPPING
The lifecycle method stop has been invoked
|
static int |
UNREGISTERED
The MBean has been instantiated but has not completed MBeanRegistration.postRegister
|
Modifier and Type | Method and Description |
---|---|
void |
create() |
void |
destroy() |
Cache<K,V> |
getCache()
Retrieves a reference to the underlying
Cache |
CacheStatus |
getCacheStatus()
Gets where this object is in its lifecycle transitions.
|
Configuration |
getConfiguration() |
org.jgroups.Address |
getLocalAddress()
Returns the local address of this cache in a cluster, or
null
if running in local mode. |
List<org.jgroups.Address> |
getMembers()
Returns a list of members in the cluster, or
null
if running in local mode. |
int |
getNumberOfAttributes() |
int |
getNumberOfNodes() |
boolean |
getRegisterJmxResource()
Gets whether this object should register the cache's interceptors
with JMX during
create() . |
int |
getState()
Legacy attribute to expose the
cache status
in terms of the JBoss AS ServiceMBean values. |
String |
printCacheDetails() |
String |
printCacheDetailsAsHtml() |
String |
printConfigurationAsHtmlString() |
String |
printConfigurationAsString() |
String |
printLockInfo() |
String |
printLockInfoAsHtml() |
void |
setRegisterJmxResource(boolean register)
Sets whether this object should register the cache's interceptors
with JMX during
create() . |
void |
start() |
void |
stop() |
getBuddyReplicationConfig, getCacheLoaderConfig, getCacheLoaderConfiguration, getCacheMode, getClusterConfig, getClusterName, getClusterProperties, getEvictionPolicyConfig, getExposeManagementStatistics, getFetchInMemoryState, getInitialStateRetrievalTimeout, getIsolationLevel, getLockAcquisitionTimeout, getMultiplexerStack, getMuxChannelFactory, getNodeLockingScheme, getReplicationVersion, getReplQueueInterval, getReplQueueMaxElements, getStateRetrievalTimeout, getSyncCommitPhase, getSyncReplTimeout, getSyncRollbackPhase, getTransactionManager, getTransactionManagerLookupClass, getUseInterceptorMbeans, getUseRegionBasedMarshalling, getUseReplQueue, isInactiveOnStartup, setBuddyReplicationConfig, setCacheLoaderConfig, setCacheLoaderConfiguration, setCacheMode, setClusterConfig, setClusterName, setClusterProperties, setEvictionPolicyConfig, setExposeManagementStatistics, setFetchInMemoryState, setInactiveOnStartup, setInitialStateRetrievalTimeout, setIsolationLevel, setLockAcquisitionTimeout, setMultiplexerStack, setMuxChannelFactory, setNodeLockingScheme, setReplicationVersion, setReplQueueInterval, setReplQueueMaxElements, setStateRetrievalTimeout, setSyncCommitPhase, setSyncReplTimeout, setSyncRollbackPhase, setTransactionManager, setTransactionManagerLookupClass, setUseInterceptorMbeans, setUseRegionBasedMarshalling, setUseReplQueue
static final int STOPPED
static final int STOPPING
static final int STARTING
static final int STARTED
static final int FAILED
static final int DESTROYED
static final int CREATED
static final int UNREGISTERED
static final int REGISTERED
void create() throws CacheException
CacheException
void start() throws CacheException
CacheException
void stop()
void destroy()
CacheStatus getCacheStatus()
null
int getState()
cache status
in terms of the JBoss AS ServiceMBean values. This interface does
not extend ServiceMBean, but this attribute is retained to provide
compatibility with the JBoss AS JSR-77 integration layer.STARTED
.Configuration getConfiguration()
String printConfigurationAsString()
String printConfigurationAsHtmlString()
String printCacheDetails()
String printCacheDetailsAsHtml()
org.jgroups.Address getLocalAddress()
null
if running in local mode.null
if running in local mode.List<org.jgroups.Address> getMembers()
null
if running in local mode.List
of members in the cluster, or null
if running in local mode.int getNumberOfNodes()
int getNumberOfAttributes()
String printLockInfo()
String printLockInfoAsHtml()
boolean getRegisterJmxResource()
create()
.
Default is true
.void setRegisterJmxResource(boolean register)
create()
.
Default is true
.Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.