|
||||||||||
| 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 DestinationMBeanpublic void setDestinationManager(javax.management.ObjectName jbossMQService)
setDestinationManager in interface DestinationMBeanv - Value to assign to JBossMQService.protected SpyDestination getSpyDest()
public void setSecurityConf(Element securityConf)
throws Exception
DestinationMBean
setSecurityConf in interface DestinationMBeanExceptionprotected Element getSecurityConf()
public void setSecurityManager(javax.management.ObjectName securityManager)
DestinationMBean
setSecurityManager in interface DestinationMBeanprotected javax.management.ObjectName getSecurityManager()
public void createService()
throws Exception
createService in class org.jboss.system.ServiceMBeanSupportException
public void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
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.ServiceMBeanSupportException
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.ServiceMBeanSupportjavax.management.MalformedObjectNameException
public void setJNDIName(String name)
throws Exception
setJNDIName in interface DestinationMBeanname - Name to bind this topic to in the JNDI tree
Exception
protected InitialContext getInitialContext()
throws NamingException
NamingExceptionpublic String getJNDIName()
getJNDIName in interface DestinationMBeanpublic abstract MessageCounter[] getMessageCounter()
getMessageCounter in interface DestinationMBean
public abstract MessageStatistics[] getMessageStatistics()
throws Exception
getMessageStatistics in interface DestinationMBeanException - for any errorpublic String listMessageCounter()
listMessageCounter in interface DestinationMBeanpublic void resetMessageCounter()
resetMessageCounter in interface DestinationMBeanpublic String listMessageCounterHistory()
listMessageCounterHistory in interface DestinationMBeanpublic void resetMessageCounterHistory()
resetMessageCounterHistory in interface DestinationMBeanpublic void setMessageCounterHistoryDayLimit(int days)
setMessageCounterHistoryDayLimit in interface DestinationMBeandays - maximum day countpublic int getMessageCounterHistoryDayLimit()
getMessageCounterHistoryDayLimit in interface DestinationMBeanpublic int getMaxDepth()
DestinationMBean
getMaxDepth in interface DestinationMBeanpublic void setMaxDepth(int depth)
DestinationMBean
setMaxDepth in interface DestinationMBeandepth - the maximum depth, zero means unlimitedpublic boolean getInMemory()
DestinationMBean
getInMemory in interface DestinationMBeanpublic void setInMemory(boolean mode)
DestinationMBean
setInMemory in interface DestinationMBeanpublic int getRedeliveryLimit()
getRedeliveryLimit in interface DestinationMBeanpublic void setRedeliveryLimit(int limit)
setRedeliveryLimit in interface DestinationMBeanpublic long getRedeliveryDelay()
getRedeliveryDelay in interface DestinationMBeanpublic void setRedeliveryDelay(long rDelay)
setRedeliveryDelay in interface DestinationMBeanpublic Class getReceiversImpl()
DestinationMBean
getReceiversImpl in interface DestinationMBeanpublic void setReceiversImpl(Class clazz)
DestinationMBean
setReceiversImpl in interface DestinationMBeanpublic int getRecoveryRetries()
DestinationMBean
getRecoveryRetries in interface DestinationMBeanpublic void setRecoveryRetries(int retries)
DestinationMBean
setRecoveryRetries in interface DestinationMBeanpublic javax.management.ObjectName getExpiryDestination()
DestinationMBean
getExpiryDestination in interface DestinationMBeanpublic 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 | |||||||||