|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mq.server.jmx.DestinationMBeanSupport
public abstract class DestinationMBeanSupport
Super class for destination managers.
Field Summary | |
---|---|
protected String |
destinationName
|
protected javax.management.ObjectName |
jbossMQService
|
protected boolean |
jndiBound
|
protected String |
jndiName
|
protected BasicQueueParameters |
parameters
The basic parameters |
protected Element |
securityConf
|
protected javax.management.ObjectName |
securityManager
A optional security manager. |
protected SpyDestination |
spyDest
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
DestinationMBeanSupport()
|
Method Summary | |
---|---|
void |
createService()
|
javax.management.ObjectName |
getDestinationManager()
Get the value of JBossMQService. |
javax.management.ObjectName |
getExpiryDestination()
Returns the expiry destination. |
protected InitialContext |
getInitialContext()
|
boolean |
getInMemory()
Retrieve the topic/queue in memory mode |
String |
getJNDIName()
Gets the JNDI name use by this topic |
int |
getMaxDepth()
Retrieve the maximum depth of the queue or individual subscriptions |
abstract MessageCounter[] |
getMessageCounter()
Get destination message counter array |
int |
getMessageCounterHistoryDayLimit()
Gets the destination message counter history day limit |
abstract MessageStatistics[] |
getMessageStatistics()
Get destination stats array |
protected javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
Class |
getReceiversImpl()
Returns the implementation class for receivers |
int |
getRecoveryRetries()
Returns the recovery retries |
long |
getRedeliveryDelay()
Returns the message redelivery delay, the delay in milliseconds before a rolled back or recovered message is redelivered |
int |
getRedeliveryLimit()
Returns the message redelivery limit; the number of redelivery attempts before a message is moved to the DLQ. |
protected Element |
getSecurityConf()
|
protected javax.management.ObjectName |
getSecurityManager()
|
protected SpyDestination |
getSpyDest()
|
String |
listMessageCounter()
List destination message counter as HTML table |
String |
listMessageCounterHistory()
List destination message counter history as HTML table |
void |
resetMessageCounter()
Reset destination message counter |
void |
resetMessageCounterHistory()
Reset destination message counter history |
void |
setDestinationManager(javax.management.ObjectName jbossMQService)
Set the value of JBossMQService. |
void |
setExpiryDestination(javax.management.ObjectName expiryDestination)
Sets the expiry destination. |
void |
setInMemory(boolean mode)
Set the temporary topic/queue in memory mode |
void |
setJNDIName(String name)
Sets the JNDI name for this topic |
void |
setMaxDepth(int depth)
Set the maximum depth of the queue or individual subscriptions |
void |
setMessageCounterHistoryDayLimit(int days)
Sets the destination message counter history day limit <0: unlimited, =0: disabled, > 0 maximum day count |
void |
setReceiversImpl(Class clazz)
Sets the class implementating the receivers |
void |
setRecoveryRetries(int retries)
Sets the class implementating the receivers |
void |
setRedeliveryDelay(long rDelay)
Sets the Message redelivery delay in milliseconds. |
void |
setRedeliveryLimit(int limit)
Sets the redelivery limit. |
void |
setSecurityConf(Element securityConf)
Sets the security xml config |
void |
setSecurityManager(javax.management.ObjectName securityManager)
Set the object name of the security manager. |
protected void |
setupExpiryDestination()
|
protected void |
setupSecurityManager()
|
void |
startService()
|
void |
stopService()
|
protected void |
teardownSecurityManager()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.mq.server.jmx.DestinationMBean |
---|
removeAllMessages |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Methods inherited from interface javax.management.MBeanRegistration |
---|
postDeregister, postRegister, preDeregister, preRegister |
Field Detail |
---|
protected SpyDestination spyDest
protected String destinationName
protected String jndiName
protected boolean jndiBound
protected javax.management.ObjectName jbossMQService
protected Element securityConf
protected BasicQueueParameters parameters
protected javax.management.ObjectName securityManager
Constructor Detail |
---|
public DestinationMBeanSupport()
Method Detail |
---|
public javax.management.ObjectName getDestinationManager()
getDestinationManager
in interface DestinationMBean
public void setDestinationManager(javax.management.ObjectName jbossMQService)
setDestinationManager
in interface DestinationMBean
v
- Value to assign to JBossMQService.protected SpyDestination getSpyDest()
public void setSecurityConf(Element securityConf) throws Exception
DestinationMBean
setSecurityConf
in interface DestinationMBean
Exception
protected Element getSecurityConf()
public void setSecurityManager(javax.management.ObjectName securityManager)
DestinationMBean
setSecurityManager
in interface DestinationMBean
protected javax.management.ObjectName getSecurityManager()
public void createService() throws Exception
createService
in class org.jboss.system.ServiceMBeanSupport
Exception
public void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void setupSecurityManager() throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
protected void setupExpiryDestination() throws Exception
Exception
public void stopService() throws Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void teardownSecurityManager() throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name) throws javax.management.MalformedObjectNameException
getObjectName
in class org.jboss.system.ServiceMBeanSupport
javax.management.MalformedObjectNameException
public void setJNDIName(String name) throws Exception
setJNDIName
in interface DestinationMBean
name
- Name to bind this topic to in the JNDI tree
Exception
protected InitialContext getInitialContext() throws NamingException
NamingException
public String getJNDIName()
getJNDIName
in interface DestinationMBean
public abstract MessageCounter[] getMessageCounter()
getMessageCounter
in interface DestinationMBean
public abstract MessageStatistics[] getMessageStatistics() throws Exception
getMessageStatistics
in interface DestinationMBean
Exception
- for any errorpublic String listMessageCounter()
listMessageCounter
in interface DestinationMBean
public void resetMessageCounter()
resetMessageCounter
in interface DestinationMBean
public String listMessageCounterHistory()
listMessageCounterHistory
in interface DestinationMBean
public void resetMessageCounterHistory()
resetMessageCounterHistory
in interface DestinationMBean
public void setMessageCounterHistoryDayLimit(int days)
setMessageCounterHistoryDayLimit
in interface DestinationMBean
days
- maximum day countpublic int getMessageCounterHistoryDayLimit()
getMessageCounterHistoryDayLimit
in interface DestinationMBean
public int getMaxDepth()
DestinationMBean
getMaxDepth
in interface DestinationMBean
public void setMaxDepth(int depth)
DestinationMBean
setMaxDepth
in interface DestinationMBean
depth
- the maximum depth, zero means unlimitedpublic boolean getInMemory()
DestinationMBean
getInMemory
in interface DestinationMBean
public void setInMemory(boolean mode)
DestinationMBean
setInMemory
in interface DestinationMBean
public int getRedeliveryLimit()
getRedeliveryLimit
in interface DestinationMBean
public void setRedeliveryLimit(int limit)
setRedeliveryLimit
in interface DestinationMBean
public long getRedeliveryDelay()
getRedeliveryDelay
in interface DestinationMBean
public void setRedeliveryDelay(long rDelay)
setRedeliveryDelay
in interface DestinationMBean
public Class getReceiversImpl()
DestinationMBean
getReceiversImpl
in interface DestinationMBean
public void setReceiversImpl(Class clazz)
DestinationMBean
setReceiversImpl
in interface DestinationMBean
public int getRecoveryRetries()
DestinationMBean
getRecoveryRetries
in interface DestinationMBean
public void setRecoveryRetries(int retries)
DestinationMBean
setRecoveryRetries
in interface DestinationMBean
public javax.management.ObjectName getExpiryDestination()
DestinationMBean
getExpiryDestination
in interface DestinationMBean
public void setExpiryDestination(javax.management.ObjectName expiryDestination)
DestinationMBean
setExpiryDestination
in interface DestinationMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |