|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.pojo.jmx.PojoCacheJmxWrapper
public class PojoCacheJmxWrapper
| Field Summary |
|---|
| Fields inherited from interface org.jboss.cache.pojo.jmx.PojoCacheJmxWrapperMBean |
|---|
CREATED, DESTROYED, FAILED, REGISTERED, STARTED, STARTING, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
PojoCacheJmxWrapper()
Default constructor. |
|
PojoCacheJmxWrapper(PojoCache toWrap)
Creates a PojoCacheJmxWrapper that wraps the given PojoCache. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
create()
Lifecycle method to start PojoCache. |
void |
destroy()
Lifecycle method to destroy PojoCache. |
org.w3c.dom.Element |
getBuddyReplicationConfig()
|
org.w3c.dom.Element |
getCacheLoaderConfig()
|
org.w3c.dom.Element |
getCacheLoaderConfiguration()
|
java.lang.String |
getCacheMode()
|
org.jboss.cache.CacheStatus |
getCacheStatus()
Gets where this object is in its lifecycle transitions. |
org.w3c.dom.Element |
getClusterConfig()
|
java.lang.String |
getClusterName()
|
java.lang.String |
getClusterProperties()
|
org.jboss.cache.config.Configuration |
getConfiguration()
Retrieves an immutable configuration. |
org.w3c.dom.Element |
getEvictionPolicyConfig()
|
boolean |
getExposeManagementStatistics()
|
boolean |
getFetchInMemoryState()
|
long |
getInitialStateRetrievalTimeout()
Deprecated. |
java.lang.String |
getInternalLocation(java.lang.Object pojo)
Obtain the internal location of this pojo stored under PojoCache. |
java.lang.String |
getIsolationLevel()
|
long |
getLockAcquisitionTimeout()
|
javax.management.MBeanServer |
getMBeanServer()
|
org.jgroups.jmx.JChannelFactoryMBean |
getMultiplexerService()
|
java.lang.String |
getMultiplexerStack()
|
org.jgroups.ChannelFactory |
getMuxChannelFactory()
|
java.lang.String |
getNodeLockingScheme()
|
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
PojoCache |
getPojoCache()
Returns the PojoCache. |
boolean |
getRegisterInterceptors()
Gets whether this object should register the cache's interceptors with JMX. |
boolean |
getRegisterPlainCache()
Gets whether this object should register a PojoCacheJmxWrapperMBean
for the underlying PojoCache with JMX. |
java.lang.String |
getReplicationVersion()
|
long |
getReplQueueInterval()
|
int |
getReplQueueMaxElements()
|
int |
getState()
Legacy attribute to expose the cache status
in terms of the JBoss AS ServiceMBean values. |
long |
getStateRetrievalTimeout()
|
boolean |
getSyncCommitPhase()
|
long |
getSyncReplTimeout()
|
boolean |
getSyncRollbackPhase()
|
javax.transaction.TransactionManager |
getTransactionManager()
|
java.lang.String |
getTransactionManagerLookupClass()
|
java.lang.String |
getUnderlyingCacheObjectName()
Get the MBean object name that the underlying replicated cache is using. |
boolean |
getUseInterceptorMbeans()
|
boolean |
getUseRegionBasedMarshalling()
|
boolean |
getUseReplQueue()
|
boolean |
isInactiveOnStartup()
|
void |
postDeregister()
Unregisters the CacheJmxWrapper, if getRegisterPlainCache() is
true. |
void |
postRegister(java.lang.Boolean registrationDone)
Registers the CacheJmxWrapperMBean, if getRegisterPlainCache() is true. |
void |
preDeregister()
No-op. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName objName)
Caches the provided server and objName. |
void |
removeNotificationListener(javax.management.NotificationListener listener)
|
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
setBuddyReplicationConfig(org.w3c.dom.Element config)
|
void |
setCacheLoaderConfig(org.w3c.dom.Element cache_loader_config)
|
void |
setCacheLoaderConfiguration(org.w3c.dom.Element config)
|
void |
setCacheMode(java.lang.String mode)
|
void |
setClusterConfig(org.w3c.dom.Element config)
|
void |
setClusterName(java.lang.String name)
|
void |
setClusterProperties(java.lang.String cluster_props)
|
void |
setConfiguration(org.jboss.cache.config.Configuration config)
Sets the configuration that the underlying cache should use. |
void |
setEvictionPolicyConfig(org.w3c.dom.Element config)
|
void |
setExposeManagementStatistics(boolean expose)
|
void |
setFetchInMemoryState(boolean flag)
|
void |
setInactiveOnStartup(boolean inactiveOnStartup)
|
void |
setInitialStateRetrievalTimeout(long timeout)
Deprecated. |
void |
setIsolationLevel(java.lang.String level)
|
void |
setLockAcquisitionTimeout(long timeout)
|
void |
setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
|
void |
setMultiplexerStack(java.lang.String stackName)
|
void |
setMuxChannelFactory(org.jgroups.ChannelFactory factory)
|
void |
setNodeLockingScheme(java.lang.String nodeLockingScheme)
|
void |
setPojoCache(PojoCache cache)
|
void |
setRegisterInterceptors(boolean register)
Sets whether this object should register the cache's interceptors with JMX. |
void |
setRegisterPlainCache(boolean registerPlainCache)
Sets whether this object should register a PojoCacheJmxWrapperMBean
for the underlying PojoCache with JMX. |
void |
setReplicationVersion(java.lang.String version)
|
void |
setReplQueueInterval(long interval)
|
void |
setReplQueueMaxElements(int max_elements)
|
void |
setStateRetrievalTimeout(long timeout)
|
void |
setSyncCommitPhase(boolean sync_commit_phase)
|
void |
setSyncReplTimeout(long timeout)
|
void |
setSyncRollbackPhase(boolean sync_rollback_phase)
|
void |
setTransactionManager(javax.transaction.TransactionManager manager)
|
void |
setTransactionManagerLookupClass(java.lang.String cl)
|
void |
setUseInterceptorMbeans(boolean use)
|
void |
setUseRegionBasedMarshalling(boolean isTrue)
|
void |
setUseReplQueue(boolean flag)
|
void |
start()
Lifecycle method to start PojoCache. |
void |
stop()
Lifecycle method to stop PojoCache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PojoCacheJmxWrapper()
public PojoCacheJmxWrapper(PojoCache toWrap)
toWrap - the cache| Method Detail |
|---|
public PojoCache getPojoCache()
PojoCacheJmxWrapperMBean
getPojoCache in interface PojoCacheJmxWrapperMBeanpublic org.jboss.cache.config.Configuration getConfiguration()
PojoCacheJmxWrapperMBean
getConfiguration in interface PojoCacheJmxWrapperMBean
public java.lang.String getInternalLocation(java.lang.Object pojo)
throws PojoCacheAlreadyDetachedException
PojoCacheJmxWrapperMBean
getInternalLocation in interface PojoCacheJmxWrapperMBeanpojo - That is associated with this POJO. If null, it means all POJOs in this cache system.
PojoCacheAlreadyDetachedException - if pojo has been detached already.public java.lang.String getUnderlyingCacheObjectName()
PojoCacheJmxWrapperMBean
getUnderlyingCacheObjectName in interface PojoCacheJmxWrapperMBean
public void create()
throws PojoCacheException
PojoCacheJmxWrapperMBean
create in interface PojoCacheJmxWrapperMBeanPojoCacheException
public void start()
throws PojoCacheException
PojoCacheJmxWrapperMBean
start in interface PojoCacheJmxWrapperMBeanPojoCacheExceptionpublic void stop()
PojoCacheJmxWrapperMBean
stop in interface PojoCacheJmxWrapperMBeanpublic void destroy()
PojoCacheJmxWrapperMBean
destroy in interface PojoCacheJmxWrapperMBeanpublic org.jboss.cache.CacheStatus getCacheStatus()
PojoCacheJmxWrapperMBean
getCacheStatus in interface PojoCacheJmxWrapperMBeannullpublic int getState()
PojoCacheJmxWrapperMBeancache 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.
getState in interface PojoCacheJmxWrapperMBeanPojoCacheJmxWrapperMBean.STARTED.public boolean getRegisterPlainCache()
PojoCacheJmxWrapperMBeanPojoCacheJmxWrapperMBean
for the underlying PojoCache with JMX.
Default is true.
getRegisterPlainCache in interface PojoCacheJmxWrapperMBeanpublic void setRegisterPlainCache(boolean registerPlainCache)
PojoCacheJmxWrapperMBeanPojoCacheJmxWrapperMBean
for the underlying PojoCache with JMX.
Default is true.
If true, the PojoCacheJmxWrapperMBean will be
instantiated and registered either as part of the registration of
this object, or during the call to PojoCacheJmxWrapperMBean.create().
setRegisterPlainCache in interface PojoCacheJmxWrapperMBeanpublic boolean getRegisterInterceptors()
PojoCacheJmxWrapperMBeanregisterPlainCache
is true.
Default is true.
getRegisterInterceptors in interface PojoCacheJmxWrapperMBeanpublic void setRegisterInterceptors(boolean register)
PojoCacheJmxWrapperMBeanregisterPlainCache
is true.
Default is true.
setRegisterInterceptors in interface PojoCacheJmxWrapperMBeanpublic org.w3c.dom.Element getBuddyReplicationConfig()
getBuddyReplicationConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.w3c.dom.Element getCacheLoaderConfig()
getCacheLoaderConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.w3c.dom.Element getCacheLoaderConfiguration()
getCacheLoaderConfiguration in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getCacheMode()
getCacheMode in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getClusterName()
getClusterName in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getClusterProperties()
getClusterProperties in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.w3c.dom.Element getClusterConfig()
getClusterConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.w3c.dom.Element getEvictionPolicyConfig()
getEvictionPolicyConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getExposeManagementStatistics()
getExposeManagementStatistics in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getUseInterceptorMbeans()
getUseInterceptorMbeans in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getFetchInMemoryState()
getFetchInMemoryState in interface org.jboss.cache.jmx.LegacyConfigurationpublic long getStateRetrievalTimeout()
getStateRetrievalTimeout in interface org.jboss.cache.jmx.LegacyConfiguration@Deprecated public void setInitialStateRetrievalTimeout(long timeout)
setInitialStateRetrievalTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getIsolationLevel()
getIsolationLevel in interface org.jboss.cache.jmx.LegacyConfigurationpublic long getLockAcquisitionTimeout()
getLockAcquisitionTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.jgroups.jmx.JChannelFactoryMBean getMultiplexerService()
getMultiplexerService in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getMultiplexerStack()
getMultiplexerStack in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.jgroups.ChannelFactory getMuxChannelFactory()
getMuxChannelFactory in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getNodeLockingScheme()
getNodeLockingScheme in interface org.jboss.cache.jmx.LegacyConfigurationpublic long getReplQueueInterval()
getReplQueueInterval in interface org.jboss.cache.jmx.LegacyConfigurationpublic int getReplQueueMaxElements()
getReplQueueMaxElements in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getReplicationVersion()
getReplicationVersion in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getSyncCommitPhase()
getSyncCommitPhase in interface org.jboss.cache.jmx.LegacyConfigurationpublic long getSyncReplTimeout()
getSyncReplTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getSyncRollbackPhase()
getSyncRollbackPhase in interface org.jboss.cache.jmx.LegacyConfigurationpublic javax.transaction.TransactionManager getTransactionManager()
getTransactionManager in interface org.jboss.cache.jmx.LegacyConfigurationpublic java.lang.String getTransactionManagerLookupClass()
getTransactionManagerLookupClass in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getUseRegionBasedMarshalling()
getUseRegionBasedMarshalling in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean getUseReplQueue()
getUseReplQueue in interface org.jboss.cache.jmx.LegacyConfigurationpublic boolean isInactiveOnStartup()
isInactiveOnStartup in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setBuddyReplicationConfig(org.w3c.dom.Element config)
setBuddyReplicationConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setCacheLoaderConfig(org.w3c.dom.Element cache_loader_config)
setCacheLoaderConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setCacheLoaderConfiguration(org.w3c.dom.Element config)
setCacheLoaderConfiguration in interface org.jboss.cache.jmx.LegacyConfiguration
public void setCacheMode(java.lang.String mode)
throws java.lang.Exception
setCacheMode in interface org.jboss.cache.jmx.LegacyConfigurationjava.lang.Exceptionpublic void setClusterConfig(org.w3c.dom.Element config)
setClusterConfig in interface org.jboss.cache.jmx.LegacyConfiguration@Deprecated public long getInitialStateRetrievalTimeout()
getInitialStateRetrievalTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setClusterName(java.lang.String name)
setClusterName in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setClusterProperties(java.lang.String cluster_props)
setClusterProperties in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setEvictionPolicyConfig(org.w3c.dom.Element config)
setEvictionPolicyConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setExposeManagementStatistics(boolean expose)
setExposeManagementStatistics in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setUseInterceptorMbeans(boolean use)
setUseInterceptorMbeans in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setFetchInMemoryState(boolean flag)
setFetchInMemoryState in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setInactiveOnStartup(boolean inactiveOnStartup)
setInactiveOnStartup in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setStateRetrievalTimeout(long timeout)
setStateRetrievalTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setIsolationLevel(java.lang.String level)
setIsolationLevel in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setLockAcquisitionTimeout(long timeout)
setLockAcquisitionTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
setMultiplexerService in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setMultiplexerStack(java.lang.String stackName)
setMultiplexerStack in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setMuxChannelFactory(org.jgroups.ChannelFactory factory)
setMuxChannelFactory in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setNodeLockingScheme(java.lang.String nodeLockingScheme)
setNodeLockingScheme in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setReplQueueInterval(long interval)
setReplQueueInterval in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setReplQueueMaxElements(int max_elements)
setReplQueueMaxElements in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setReplicationVersion(java.lang.String version)
setReplicationVersion in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setSyncCommitPhase(boolean sync_commit_phase)
setSyncCommitPhase in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setSyncReplTimeout(long timeout)
setSyncReplTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setSyncRollbackPhase(boolean sync_rollback_phase)
setSyncRollbackPhase in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setTransactionManager(javax.transaction.TransactionManager manager)
setTransactionManager in interface org.jboss.cache.jmx.LegacyConfiguration
public void setTransactionManagerLookupClass(java.lang.String cl)
throws java.lang.Exception
setTransactionManagerLookupClass in interface org.jboss.cache.jmx.LegacyConfigurationjava.lang.Exceptionpublic void setUseRegionBasedMarshalling(boolean isTrue)
setUseRegionBasedMarshalling in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setUseReplQueue(boolean flag)
setUseReplQueue in interface org.jboss.cache.jmx.LegacyConfiguration
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName objName)
throws java.lang.Exception
server and objName.
preRegister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postRegister(java.lang.Boolean registrationDone)
getRegisterPlainCache() is true.
postRegister in interface javax.management.MBeanRegistration
public void preDeregister()
throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postDeregister()
getRegisterPlainCache() is
true.
postDeregister in interface javax.management.MBeanRegistration
public void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationEmitterjavax.management.ListenerNotFoundException
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.IllegalArgumentException
addNotificationListener in interface javax.management.NotificationBroadcasterjava.lang.IllegalArgumentExceptionpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcaster
public void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterjavax.management.ListenerNotFoundExceptionpublic javax.management.MBeanServer getMBeanServer()
public void setConfiguration(org.jboss.cache.config.Configuration config)
config - the configurationpublic void setPojoCache(PojoCache cache)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||