org.apache.james.queue.library
Class MailQueueManagement

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.james.queue.library.MailQueueManagement
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, MailQueueManagementMBean

public class MailQueueManagement
extends StandardMBean
implements MailQueueManagementMBean

JMX MBean implementation which expose management functions by wrapping a ManageableMailQueue


Constructor Summary
MailQueueManagement(ManageableMailQueue queue)
           
 
Method Summary
 List<CompositeData> browse()
           
 long clear()
           
 long flush()
           
 long getSize()
           
 long removeWithName(String name)
           
 long removeWithRecipient(String address)
           
 long removeWithSender(String address)
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailQueueManagement

public MailQueueManagement(ManageableMailQueue queue)
                    throws NotCompliantMBeanException
Throws:
NotCompliantMBeanException
Method Detail

clear

public long clear()
           throws Exception
Specified by:
clear in interface MailQueueManagementMBean
Throws:
Exception

flush

public long flush()
           throws Exception
Specified by:
flush in interface MailQueueManagementMBean
Throws:
Exception

getSize

public long getSize()
             throws Exception
Specified by:
getSize in interface MailQueueManagementMBean
Throws:
Exception

removeWithName

public long removeWithName(String name)
                    throws Exception
Specified by:
removeWithName in interface MailQueueManagementMBean
Throws:
Exception

removeWithRecipient

public long removeWithRecipient(String address)
                         throws Exception
Specified by:
removeWithRecipient in interface MailQueueManagementMBean
Throws:
Exception

removeWithSender

public long removeWithSender(String address)
                      throws Exception
Specified by:
removeWithSender in interface MailQueueManagementMBean
Throws:
Exception

browse

public List<CompositeData> browse()
                           throws Exception
Specified by:
browse in interface MailQueueManagementMBean
Throws:
Exception


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.