|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 cacheMethod Detail |
---|
public PojoCache getPojoCache()
PojoCacheJmxWrapperMBean
getPojoCache
in interface PojoCacheJmxWrapperMBean
public Configuration getConfiguration()
PojoCacheJmxWrapperMBean
getConfiguration
in interface PojoCacheJmxWrapperMBean
public String getInternalLocation(Object pojo) throws PojoCacheAlreadyDetachedException
PojoCacheJmxWrapperMBean
getInternalLocation
in interface PojoCacheJmxWrapperMBean
pojo
- 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 PojoCacheJmxWrapperMBean
PojoCacheException
public void start() throws PojoCacheException
PojoCacheJmxWrapperMBean
start
in interface PojoCacheJmxWrapperMBean
PojoCacheException
public void stop()
PojoCacheJmxWrapperMBean
stop
in interface PojoCacheJmxWrapperMBean
public void destroy()
PojoCacheJmxWrapperMBean
destroy
in interface PojoCacheJmxWrapperMBean
public CacheStatus getCacheStatus()
PojoCacheJmxWrapperMBean
getCacheStatus
in interface PojoCacheJmxWrapperMBean
null
public int getState()
PojoCacheJmxWrapperMBean
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.
getState
in interface PojoCacheJmxWrapperMBean
PojoCacheJmxWrapperMBean.STARTED
.public boolean getRegisterPlainCache()
PojoCacheJmxWrapperMBean
PojoCacheJmxWrapperMBean
for the underlying PojoCache
with JMX.
Default is true
.
getRegisterPlainCache
in interface PojoCacheJmxWrapperMBean
public void setRegisterPlainCache(boolean registerPlainCache)
PojoCacheJmxWrapperMBean
PojoCacheJmxWrapperMBean
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 PojoCacheJmxWrapperMBean
public boolean getRegisterInterceptors()
PojoCacheJmxWrapperMBean
registerPlainCache
is true
.
Default is true
.
getRegisterInterceptors
in interface PojoCacheJmxWrapperMBean
public void setRegisterInterceptors(boolean register)
PojoCacheJmxWrapperMBean
registerPlainCache
is true
.
Default is true
.
setRegisterInterceptors
in interface PojoCacheJmxWrapperMBean
public Element getBuddyReplicationConfig()
getBuddyReplicationConfig
in interface LegacyConfiguration
public Element getCacheLoaderConfig()
getCacheLoaderConfig
in interface LegacyConfiguration
public Element getCacheLoaderConfiguration()
getCacheLoaderConfiguration
in interface LegacyConfiguration
public String getCacheMode()
getCacheMode
in interface LegacyConfiguration
public String getClusterName()
getClusterName
in interface LegacyConfiguration
public String getClusterProperties()
getClusterProperties
in interface LegacyConfiguration
public Element getClusterConfig()
getClusterConfig
in interface LegacyConfiguration
public Element getEvictionPolicyConfig()
getEvictionPolicyConfig
in interface LegacyConfiguration
public boolean getExposeManagementStatistics()
getExposeManagementStatistics
in interface LegacyConfiguration
public boolean getUseInterceptorMbeans()
getUseInterceptorMbeans
in interface LegacyConfiguration
public boolean getFetchInMemoryState()
getFetchInMemoryState
in interface LegacyConfiguration
public long getStateRetrievalTimeout()
getStateRetrievalTimeout
in interface LegacyConfiguration
@Deprecated public void setInitialStateRetrievalTimeout(long timeout)
setInitialStateRetrievalTimeout
in interface LegacyConfiguration
public String getIsolationLevel()
getIsolationLevel
in interface LegacyConfiguration
public long getLockAcquisitionTimeout()
getLockAcquisitionTimeout
in interface LegacyConfiguration
public org.jgroups.jmx.JChannelFactoryMBean getMultiplexerService()
getMultiplexerService
in interface LegacyConfiguration
public String getMultiplexerStack()
getMultiplexerStack
in interface LegacyConfiguration
public org.jgroups.ChannelFactory getMuxChannelFactory()
getMuxChannelFactory
in interface LegacyConfiguration
public String getNodeLockingScheme()
getNodeLockingScheme
in interface LegacyConfiguration
public long getReplQueueInterval()
getReplQueueInterval
in interface LegacyConfiguration
public int getReplQueueMaxElements()
getReplQueueMaxElements
in interface LegacyConfiguration
public String getReplicationVersion()
getReplicationVersion
in interface LegacyConfiguration
public boolean getSyncCommitPhase()
getSyncCommitPhase
in interface LegacyConfiguration
public long getSyncReplTimeout()
getSyncReplTimeout
in interface LegacyConfiguration
public boolean getSyncRollbackPhase()
getSyncRollbackPhase
in interface LegacyConfiguration
public TransactionManager getTransactionManager()
getTransactionManager
in interface LegacyConfiguration
public String getTransactionManagerLookupClass()
getTransactionManagerLookupClass
in interface LegacyConfiguration
public boolean getUseRegionBasedMarshalling()
getUseRegionBasedMarshalling
in interface LegacyConfiguration
public boolean getUseReplQueue()
getUseReplQueue
in interface LegacyConfiguration
public boolean isInactiveOnStartup()
isInactiveOnStartup
in interface LegacyConfiguration
public void setBuddyReplicationConfig(Element config)
setBuddyReplicationConfig
in interface LegacyConfiguration
public void setCacheLoaderConfig(Element cache_loader_config)
setCacheLoaderConfig
in interface LegacyConfiguration
public void setCacheLoaderConfiguration(Element config)
setCacheLoaderConfiguration
in interface LegacyConfiguration
public void setCacheMode(String mode) throws Exception
setCacheMode
in interface LegacyConfiguration
Exception
public void setClusterConfig(Element config)
setClusterConfig
in interface LegacyConfiguration
@Deprecated public long getInitialStateRetrievalTimeout()
getInitialStateRetrievalTimeout
in interface LegacyConfiguration
public void setClusterName(String name)
setClusterName
in interface LegacyConfiguration
public void setClusterProperties(String cluster_props)
setClusterProperties
in interface LegacyConfiguration
public void setEvictionPolicyConfig(Element config)
setEvictionPolicyConfig
in interface LegacyConfiguration
public void setExposeManagementStatistics(boolean expose)
setExposeManagementStatistics
in interface LegacyConfiguration
public void setUseInterceptorMbeans(boolean use)
setUseInterceptorMbeans
in interface LegacyConfiguration
public void setFetchInMemoryState(boolean flag)
setFetchInMemoryState
in interface LegacyConfiguration
public void setInactiveOnStartup(boolean inactiveOnStartup)
setInactiveOnStartup
in interface LegacyConfiguration
public void setStateRetrievalTimeout(long timeout)
setStateRetrievalTimeout
in interface LegacyConfiguration
public void setIsolationLevel(String level)
setIsolationLevel
in interface LegacyConfiguration
public void setLockAcquisitionTimeout(long timeout)
setLockAcquisitionTimeout
in interface LegacyConfiguration
public void setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
setMultiplexerService
in interface LegacyConfiguration
public void setMultiplexerStack(String stackName)
setMultiplexerStack
in interface LegacyConfiguration
public void setMuxChannelFactory(org.jgroups.ChannelFactory factory)
setMuxChannelFactory
in interface LegacyConfiguration
public void setNodeLockingScheme(String nodeLockingScheme)
setNodeLockingScheme
in interface LegacyConfiguration
public void setReplQueueInterval(long interval)
setReplQueueInterval
in interface LegacyConfiguration
public void setReplQueueMaxElements(int max_elements)
setReplQueueMaxElements
in interface LegacyConfiguration
public void setReplicationVersion(String version)
setReplicationVersion
in interface LegacyConfiguration
public void setSyncCommitPhase(boolean sync_commit_phase)
setSyncCommitPhase
in interface LegacyConfiguration
public void setSyncReplTimeout(long timeout)
setSyncReplTimeout
in interface LegacyConfiguration
public void setSyncRollbackPhase(boolean sync_rollback_phase)
setSyncRollbackPhase
in interface LegacyConfiguration
public void setTransactionManager(TransactionManager manager)
setTransactionManager
in interface LegacyConfiguration
public void setTransactionManagerLookupClass(String cl) throws Exception
setTransactionManagerLookupClass
in interface LegacyConfiguration
Exception
public void setUseRegionBasedMarshalling(boolean isTrue)
setUseRegionBasedMarshalling
in interface LegacyConfiguration
public void setUseReplQueue(boolean flag)
setUseReplQueue
in interface LegacyConfiguration
public ObjectName preRegister(MBeanServer server, ObjectName objName) throws Exception
server
and objName
.
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
getRegisterPlainCache()
is true
.
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
getRegisterPlainCache()
is
true
.
postDeregister
in interface MBeanRegistration
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
IllegalArgumentException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public 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 |