站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

DestinationMBeanSupport (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq.server.jmx
Class DestinationMBeanSupport

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.mq.server.jmx.DestinationMBeanSupport
All Implemented Interfaces:
DestinationMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
Queue, Topic

public abstract class DestinationMBeanSupport
extends org.jboss.system.ServiceMBeanSupport
implements DestinationMBean, javax.management.MBeanRegistration

Super class for destination managers.

Version:
$Revision: 1.10.4.1 $
Author:
Peter Antman

Field Summary
 
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.
 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()
          Get the receivers implemenetation
 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 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)
          Set the receivers implementation class
 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.
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, destroyService, 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, 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
 

Constructor Detail

DestinationMBeanSupport

public DestinationMBeanSupport()
Method Detail

getDestinationManager

public javax.management.ObjectName getDestinationManager()
Get the value of JBossMQService.

Specified by:
getDestinationManager in interface DestinationMBean
Returns:
value of JBossMQService.

setDestinationManager

public void setDestinationManager(javax.management.ObjectName jbossMQService)
Set the value of JBossMQService.

Specified by:
setDestinationManager in interface DestinationMBean

getSpyDest

protected SpyDestination getSpyDest()

setSecurityConf

public void setSecurityConf(Element securityConf)
                     throws Exception
Description copied from interface: DestinationMBean
Sets the security xml config

Specified by:
setSecurityConf in interface DestinationMBean
Throws:
Exception

getSecurityConf

protected Element getSecurityConf()

setSecurityManager

public void setSecurityManager(javax.management.ObjectName securityManager)
Description copied from interface: DestinationMBean
Set the object name of the security manager.

Specified by:
setSecurityManager in interface DestinationMBean

getSecurityManager

protected javax.management.ObjectName getSecurityManager()

createService

public void createService()
                   throws Exception
Throws:
Exception

startService

public void startService()
                  throws Exception
Throws:
Exception

stopService

public void stopService()
                 throws Exception
Throws:
Exception

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

setJNDIName

public void setJNDIName(String name)
                 throws Exception
Sets the JNDI name for this topic

Specified by:
setJNDIName in interface DestinationMBean
Parameters:
name - Name to bind this topic to in the JNDI tree
Throws:
Exception

getJNDIName

public String getJNDIName()
Gets the JNDI name use by this topic

Specified by:
getJNDIName in interface DestinationMBean
Returns:
The JNDI name currently in use

getMessageCounter

public abstract MessageCounter[] getMessageCounter()
Get destination message counter array

Specified by:
getMessageCounter in interface DestinationMBean
Returns:
MessageCounter[]

getMessageStatistics

public abstract MessageStatistics[] getMessageStatistics()
                                                  throws Exception
Get destination stats array

Specified by:
getMessageStatistics in interface DestinationMBean
Returns:
MessageStatistics[]
Throws:
Exception - for any error

listMessageCounter

public String listMessageCounter()
List destination message counter as HTML table

Specified by:
listMessageCounter in interface DestinationMBean
Returns:
String

resetMessageCounter

public void resetMessageCounter()
Reset destination message counter

Specified by:
resetMessageCounter in interface DestinationMBean

listMessageCounterHistory

public String listMessageCounterHistory()
List destination message counter history as HTML table

Specified by:
listMessageCounterHistory in interface DestinationMBean
Returns:
String

resetMessageCounterHistory

public void resetMessageCounterHistory()
Reset destination message counter history

Specified by:
resetMessageCounterHistory in interface DestinationMBean

setMessageCounterHistoryDayLimit

public void setMessageCounterHistoryDayLimit(int days)
Sets the destination message counter history day limit <0: unlimited, =0: disabled, > 0 maximum day count

Specified by:
setMessageCounterHistoryDayLimit in interface DestinationMBean
Parameters:
days - maximum day count

getMessageCounterHistoryDayLimit

public int getMessageCounterHistoryDayLimit()
Gets the destination message counter history day limit

Specified by:
getMessageCounterHistoryDayLimit in interface DestinationMBean
Returns:
Maximum day count

getMaxDepth

public int getMaxDepth()
Description copied from interface: DestinationMBean
Retrieve the maximum depth of the queue or individual subscriptions

Specified by:
getMaxDepth in interface DestinationMBean
Returns:
the maximum depth

setMaxDepth

public void setMaxDepth(int depth)
Description copied from interface: DestinationMBean
Set the maximum depth of the queue or individual subscriptions

Specified by:
setMaxDepth in interface DestinationMBean
Parameters:
depth - the maximum depth, zero means unlimited

getInMemory

public boolean getInMemory()
Description copied from interface: DestinationMBean
Retrieve the topic/queue in memory mode

Specified by:
getInMemory in interface DestinationMBean
Returns:
true for in memory

setInMemory

public void setInMemory(boolean mode)
Description copied from interface: DestinationMBean
Set the temporary topic/queue in memory mode

Specified by:
setInMemory in interface DestinationMBean

getRedeliveryLimit

public int getRedeliveryLimit()
Returns the message redelivery limit; the number of redelivery attempts before a message is moved to the DLQ.

Specified by:
getRedeliveryLimit in interface DestinationMBean

setRedeliveryLimit

public void setRedeliveryLimit(int limit)
Sets the redelivery limit.

Specified by:
setRedeliveryLimit in interface DestinationMBean

getRedeliveryDelay

public long getRedeliveryDelay()
Returns the message redelivery delay, the delay in milliseconds before a rolled back or recovered message is redelivered

Specified by:
getRedeliveryDelay in interface DestinationMBean

setRedeliveryDelay

public void setRedeliveryDelay(long rDelay)
Sets the Message redelivery delay in milliseconds.

Specified by:
setRedeliveryDelay in interface DestinationMBean

getReceiversImpl

public Class getReceiversImpl()
Get the receivers implemenetation

Specified by:
getReceiversImpl in interface DestinationMBean
Returns:
the receivers implementation class

setReceiversImpl

public void setReceiversImpl(Class clazz)
Set the receivers implementation class

Specified by:
setReceiversImpl in interface DestinationMBean
Parameters:
clazz - the receivers implementation class


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.