org.apache.james.management
Interface BayesianAnalyzerManagementMBean

All Known Implementing Classes:
BayesianAnalyzerManagement

public interface BayesianAnalyzerManagementMBean

Expose spool management functionality through JMX.


Method Summary
 int addHamFromDir(java.lang.String dir)
          adds data to existing corpus by importing all the mails contained in the given dir as ham
 int addHamFromMbox(java.lang.String file)
          adds data to existing corpus by importing all the mails contained in the given mbox as ham
 int addSpamFromDir(java.lang.String dir)
          adds data to existing corpus by importing all the mails contained in the given dir as spam
 int addSpamFromMbox(java.lang.String file)
          adds data to existing corpus by importing all the mails contained in the given mbox as spam
 void exportData(java.lang.String file)
          exports the corpus to a file
 void importData(java.lang.String file)
          imports the corpus from a file
 void resetData()
          reset trained data
 

Method Detail

addHamFromDir

int addHamFromDir(java.lang.String dir)
                  throws BayesianAnalyzerManagementException
adds data to existing corpus by importing all the mails contained in the given dir as ham

Parameters:
dir - full path to the directory containing mail files
Returns:
number of processes mails
Throws:
BayesianAnalyzerManagementException

addSpamFromDir

int addSpamFromDir(java.lang.String dir)
                   throws BayesianAnalyzerManagementException
adds data to existing corpus by importing all the mails contained in the given dir as spam

Parameters:
dir - full path to the directory containing mail files
Returns:
number of processes mails
Throws:
BayesianAnalyzerManagementException

addHamFromMbox

int addHamFromMbox(java.lang.String file)
                   throws BayesianAnalyzerManagementException
adds data to existing corpus by importing all the mails contained in the given mbox as ham

Parameters:
file - path to the mbox file
Returns:
number of processes mails
Throws:
BayesianAnalyzerManagementException

addSpamFromMbox

int addSpamFromMbox(java.lang.String file)
                    throws BayesianAnalyzerManagementException
adds data to existing corpus by importing all the mails contained in the given mbox as spam

Parameters:
file - path to the mbox file
Returns:
number of processes mails
Throws:
BayesianAnalyzerManagementException

exportData

void exportData(java.lang.String file)
                throws BayesianAnalyzerManagementException
exports the corpus to a file

Parameters:
file - path to the mbox file
Throws:
BayesianAnalyzerManagementException

importData

void importData(java.lang.String file)
                throws BayesianAnalyzerManagementException
imports the corpus from a file

Parameters:
file - path to the mbox file
Throws:
BayesianAnalyzerManagementException

resetData

void resetData()
               throws BayesianAnalyzerManagementException
reset trained data

Throws:
BayesianAnalyzerManagementException


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