|
||||||||||
| 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()
|
CacheStatus |
getCacheStatus()
Gets where this object is in its lifecycle transitions. |
Element |
getClusterConfig()
|
String |
getClusterName()
|
String |
getClusterProperties()
|
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(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 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 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 LegacyConfigurationpublic Element getCacheLoaderConfig()
getCacheLoaderConfig in interface LegacyConfigurationpublic Element getCacheLoaderConfiguration()
getCacheLoaderConfiguration in interface LegacyConfigurationpublic String getCacheMode()
getCacheMode in interface LegacyConfigurationpublic String getClusterName()
getClusterName in interface LegacyConfigurationpublic String getClusterProperties()
getClusterProperties in interface LegacyConfigurationpublic Element getClusterConfig()
getClusterConfig in interface LegacyConfigurationpublic Element getEvictionPolicyConfig()
getEvictionPolicyConfig in interface LegacyConfigurationpublic boolean getExposeManagementStatistics()
getExposeManagementStatistics in interface LegacyConfigurationpublic boolean getUseInterceptorMbeans()
getUseInterceptorMbeans in interface LegacyConfigurationpublic boolean getFetchInMemoryState()
getFetchInMemoryState in interface LegacyConfigurationpublic long getStateRetrievalTimeout()
getStateRetrievalTimeout in interface LegacyConfiguration@Deprecated public void setInitialStateRetrievalTimeout(long timeout)
setInitialStateRetrievalTimeout in interface LegacyConfigurationpublic String getIsolationLevel()
getIsolationLevel in interface LegacyConfigurationpublic long getLockAcquisitionTimeout()
getLockAcquisitionTimeout in interface LegacyConfigurationpublic org.jgroups.jmx.JChannelFactoryMBean getMultiplexerService()
getMultiplexerService in interface LegacyConfigurationpublic String getMultiplexerStack()
getMultiplexerStack in interface LegacyConfigurationpublic org.jgroups.ChannelFactory getMuxChannelFactory()
getMuxChannelFactory in interface LegacyConfigurationpublic String getNodeLockingScheme()
getNodeLockingScheme in interface LegacyConfigurationpublic long getReplQueueInterval()
getReplQueueInterval in interface LegacyConfigurationpublic int getReplQueueMaxElements()
getReplQueueMaxElements in interface LegacyConfigurationpublic String getReplicationVersion()
getReplicationVersion in interface LegacyConfigurationpublic boolean getSyncCommitPhase()
getSyncCommitPhase in interface LegacyConfigurationpublic long getSyncReplTimeout()
getSyncReplTimeout in interface LegacyConfigurationpublic boolean getSyncRollbackPhase()
getSyncRollbackPhase in interface LegacyConfigurationpublic TransactionManager getTransactionManager()
getTransactionManager in interface LegacyConfigurationpublic String getTransactionManagerLookupClass()
getTransactionManagerLookupClass in interface LegacyConfigurationpublic boolean getUseRegionBasedMarshalling()
getUseRegionBasedMarshalling in interface LegacyConfigurationpublic boolean getUseReplQueue()
getUseReplQueue in interface LegacyConfigurationpublic boolean isInactiveOnStartup()
isInactiveOnStartup in interface LegacyConfigurationpublic void setBuddyReplicationConfig(Element config)
setBuddyReplicationConfig in interface LegacyConfigurationpublic void setCacheLoaderConfig(Element cache_loader_config)
setCacheLoaderConfig in interface LegacyConfigurationpublic void setCacheLoaderConfiguration(Element config)
setCacheLoaderConfiguration in interface LegacyConfiguration
public void setCacheMode(String mode)
throws Exception
setCacheMode in interface LegacyConfigurationExceptionpublic void setClusterConfig(Element config)
setClusterConfig in interface LegacyConfiguration@Deprecated public long getInitialStateRetrievalTimeout()
getInitialStateRetrievalTimeout in interface LegacyConfigurationpublic void setClusterName(String name)
setClusterName in interface LegacyConfigurationpublic void setClusterProperties(String cluster_props)
setClusterProperties in interface LegacyConfigurationpublic void setEvictionPolicyConfig(Element config)
setEvictionPolicyConfig in interface LegacyConfigurationpublic void setExposeManagementStatistics(boolean expose)
setExposeManagementStatistics in interface LegacyConfigurationpublic void setUseInterceptorMbeans(boolean use)
setUseInterceptorMbeans in interface LegacyConfigurationpublic void setFetchInMemoryState(boolean flag)
setFetchInMemoryState in interface LegacyConfigurationpublic void setInactiveOnStartup(boolean inactiveOnStartup)
setInactiveOnStartup in interface LegacyConfigurationpublic void setStateRetrievalTimeout(long timeout)
setStateRetrievalTimeout in interface LegacyConfigurationpublic void setIsolationLevel(String level)
setIsolationLevel in interface LegacyConfigurationpublic void setLockAcquisitionTimeout(long timeout)
setLockAcquisitionTimeout in interface LegacyConfigurationpublic void setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
setMultiplexerService in interface LegacyConfigurationpublic void setMultiplexerStack(String stackName)
setMultiplexerStack in interface LegacyConfigurationpublic void setMuxChannelFactory(org.jgroups.ChannelFactory factory)
setMuxChannelFactory in interface LegacyConfigurationpublic void setNodeLockingScheme(String nodeLockingScheme)
setNodeLockingScheme in interface LegacyConfigurationpublic void setReplQueueInterval(long interval)
setReplQueueInterval in interface LegacyConfigurationpublic void setReplQueueMaxElements(int max_elements)
setReplQueueMaxElements in interface LegacyConfigurationpublic void setReplicationVersion(String version)
setReplicationVersion in interface LegacyConfigurationpublic void setSyncCommitPhase(boolean sync_commit_phase)
setSyncCommitPhase in interface LegacyConfigurationpublic void setSyncReplTimeout(long timeout)
setSyncReplTimeout in interface LegacyConfigurationpublic void setSyncRollbackPhase(boolean sync_rollback_phase)
setSyncRollbackPhase in interface LegacyConfigurationpublic void setTransactionManager(TransactionManager manager)
setTransactionManager in interface LegacyConfiguration
public void setTransactionManagerLookupClass(String cl)
throws Exception
setTransactionManagerLookupClass in interface LegacyConfigurationExceptionpublic void setUseRegionBasedMarshalling(boolean isTrue)
setUseRegionBasedMarshalling in interface LegacyConfigurationpublic void setUseReplQueue(boolean flag)
setUseReplQueue in interface 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(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 | |||||||||