org.apache.james.management.impl
Class ProcessorManagement

java.lang.Object
  extended by org.apache.james.management.impl.ProcessorManagement
All Implemented Interfaces:
org.apache.avalon.framework.service.Serviceable, ProcessorManagementMBean, ProcessorManagementService

public class ProcessorManagement
extends java.lang.Object
implements org.apache.avalon.framework.service.Serviceable, ProcessorManagementService, ProcessorManagementMBean

manage processors, mailets and matchers


Field Summary
 
Fields inherited from interface org.apache.james.management.ProcessorManagementService
ROLE
 
Constructor Summary
ProcessorManagement()
           
 
Method Summary
 java.lang.String[] getMailetNames(java.lang.String processorName)
          retrieves the list of all mailets for one processor
 java.lang.String[] getMailetParameters(java.lang.String processorName, int mailetIndex)
          retrieves the list of parameters belonging to the specified mailet
 java.lang.String[] getMatcherNames(java.lang.String processorName)
          retrieves the list of all matchers for one processor
 java.lang.String[] getMatcherParameters(java.lang.String processorName, int matcherIndex)
          retrieves the list of parameters belonging to the specified matcher
 java.lang.String[] getProcessorNames()
          Retrieves all existing processors
 void init()
           
 void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
           
 void setProcessorManager(SpoolManager processorManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorManagement

public ProcessorManagement()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

init

@PostConstruct
public void init()

setProcessorManager

public void setProcessorManager(SpoolManager processorManager)

getProcessorNames

public java.lang.String[] getProcessorNames()
Description copied from interface: ProcessorManagementMBean
Retrieves all existing processors

Specified by:
getProcessorNames in interface ProcessorManagementMBean
Returns:
names of all configured processors

getMailetNames

public java.lang.String[] getMailetNames(java.lang.String processorName)
Description copied from interface: ProcessorManagementService
retrieves the list of all mailets for one processor

Specified by:
getMailetNames in interface ProcessorManagementService
Returns:
array of names

getMatcherNames

public java.lang.String[] getMatcherNames(java.lang.String processorName)
Description copied from interface: ProcessorManagementService
retrieves the list of all matchers for one processor

Specified by:
getMatcherNames in interface ProcessorManagementService
Returns:
array of names

getMatcherParameters

public java.lang.String[] getMatcherParameters(java.lang.String processorName,
                                               int matcherIndex)
Description copied from interface: ProcessorManagementService
retrieves the list of parameters belonging to the specified matcher

Specified by:
getMatcherParameters in interface ProcessorManagementService
Returns:
array of Strings, each String an assembled parameter key/value pair

getMailetParameters

public java.lang.String[] getMailetParameters(java.lang.String processorName,
                                              int mailetIndex)
Description copied from interface: ProcessorManagementService
retrieves the list of parameters belonging to the specified mailet

Specified by:
getMailetParameters in interface ProcessorManagementService
Returns:
array of Strings, each String an assembled parameter key/value pair


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.