|
||||||||||
| 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(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
create()
Lifecycle method to start PojoCache. |
void |
destroy()
Lifecycle method to destroy PojoCache. |
Element |
getBuddyReplicationConfig()
|
Element |
getCacheLoaderConfig()
|
Element |
getCacheLoaderConfiguration()
|
String |
getCacheMode()
|
org.jboss.cache.CacheStatus |
getCacheStatus()
Gets where this object is in its lifecycle transitions. |
Element |
getClusterConfig()
|
String |
getClusterName()
|
String |
getClusterProperties()
|
org.jboss.cache.config.Configuration |
getConfiguration()
Retrieves an immutable configuration. |
Element |
getEvictionPolicyConfig()
|
boolean |
getExposeManagementStatistics()
|
boolean |
getFetchInMemoryState()
|
long |
getInitialStateRetrievalTimeout()
Deprecated. |
String |
getInternalLocation(Object pojo)
Obtain the internal location of this pojo stored under PojoCache. |
String |
getIsolationLevel()
|
long |
getLockAcquisitionTimeout()
|
MBeanServer |
getMBeanServer()
|
org.jgroups.jmx.JChannelFactoryMBean |
getMultiplexerService()
|
String |
getMultiplexerStack()
|
org.jgroups.ChannelFactory |
getMuxChannelFactory()
|
String |
getNodeLockingScheme()
|
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. |
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()
|
TransactionManager |
getTransactionManager()
|
String |
getTransactionManagerLookupClass()
|
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(Boolean registrationDone)
Registers the CacheJmxWrapperMBean, if getRegisterPlainCache() is true. |
void |
preDeregister()
No-op. |
ObjectName |
preRegister(MBeanServer server,
ObjectName objName)
Caches the provided server and objName. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
setBuddyReplicationConfig(Element config)
|
void |
setCacheLoaderConfig(Element cache_loader_config)
|
void |
setCacheLoaderConfiguration(Element config)
|
void |
setCacheMode(String mode)
|
void |
setClusterConfig(Element config)
|
void |
setClusterName(String name)
|
void |
setClusterProperties(String cluster_props)
|
void |
setConfiguration(org.jboss.cache.config.Configuration config)
Sets the configuration that the underlying cache should use. |
void |
setEvictionPolicyConfig(Element config)
|
void |
setExposeManagementStatistics(boolean expose)
|
void |
setFetchInMemoryState(boolean flag)
|
void |
setInactiveOnStartup(boolean inactiveOnStartup)
|
void |
setInitialStateRetrievalTimeout(long timeout)
Deprecated. |
void |
setIsolationLevel(String level)
|
void |
setLockAcquisitionTimeout(long timeout)
|
void |
setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
|
void |
setMultiplexerStack(String stackName)
|
void |
setMuxChannelFactory(org.jgroups.ChannelFactory factory)
|
void |
setNodeLockingScheme(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(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(TransactionManager manager)
|
void |
setTransactionManagerLookupClass(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 String getInternalLocation(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 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 Element getBuddyReplicationConfig()
getBuddyReplicationConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic Element getCacheLoaderConfig()
getCacheLoaderConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic Element getCacheLoaderConfiguration()
getCacheLoaderConfiguration in interface org.jboss.cache.jmx.LegacyConfigurationpublic String getCacheMode()
getCacheMode in interface org.jboss.cache.jmx.LegacyConfigurationpublic String getClusterName()
getClusterName in interface org.jboss.cache.jmx.LegacyConfigurationpublic String getClusterProperties()
getClusterProperties in interface org.jboss.cache.jmx.LegacyConfigurationpublic Element getClusterConfig()
getClusterConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic 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 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 String getMultiplexerStack()
getMultiplexerStack in interface org.jboss.cache.jmx.LegacyConfigurationpublic org.jgroups.ChannelFactory getMuxChannelFactory()
getMuxChannelFactory in interface org.jboss.cache.jmx.LegacyConfigurationpublic 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 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 TransactionManager getTransactionManager()
getTransactionManager in interface org.jboss.cache.jmx.LegacyConfigurationpublic 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(Element config)
setBuddyReplicationConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setCacheLoaderConfig(Element cache_loader_config)
setCacheLoaderConfig in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setCacheLoaderConfiguration(Element config)
setCacheLoaderConfiguration in interface org.jboss.cache.jmx.LegacyConfiguration
public void setCacheMode(String mode)
throws Exception
setCacheMode in interface org.jboss.cache.jmx.LegacyConfigurationExceptionpublic void setClusterConfig(Element config)
setClusterConfig in interface org.jboss.cache.jmx.LegacyConfiguration@Deprecated public long getInitialStateRetrievalTimeout()
getInitialStateRetrievalTimeout in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setClusterName(String name)
setClusterName in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setClusterProperties(String cluster_props)
setClusterProperties in interface org.jboss.cache.jmx.LegacyConfigurationpublic void setEvictionPolicyConfig(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(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(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(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(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(TransactionManager manager)
setTransactionManager in interface org.jboss.cache.jmx.LegacyConfiguration
public void setTransactionManagerLookupClass(String cl)
throws Exception
setTransactionManagerLookupClass in interface org.jboss.cache.jmx.LegacyConfigurationExceptionpublic 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 ObjectName preRegister(MBeanServer server,
ObjectName objName)
throws Exception
server and objName.
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
getRegisterPlainCache() is true.
postRegister in interface MBeanRegistration
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
getRegisterPlainCache() is
true.
postDeregister in interface MBeanRegistration
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundException
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterIllegalArgumentExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic 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 | |||||||||