|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.management.impl.BayesianAnalyzerManagement
public class BayesianAnalyzerManagement
Management for BayesianAnalyzer
| Field Summary |
|---|
| Fields inherited from interface org.apache.james.management.BayesianAnalyzerManagementService |
|---|
ROLE |
| Constructor Summary | |
|---|---|
BayesianAnalyzerManagement()
|
|
| 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 |
configure(org.apache.avalon.framework.configuration.Configuration arg0)
|
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 |
initialize()
|
void |
resetData()
reset trained data |
void |
service(org.apache.avalon.framework.service.ServiceManager arg0)
|
void |
setDataSourceComponent(org.apache.avalon.excalibur.datasource.DataSourceComponent component)
Set the DataSourceComponent |
void |
setDataSourceSelector(org.apache.avalon.cornerstone.services.datasources.DataSourceSelector selector)
Set the DatasourceSekector |
void |
setRepositoryPath(java.lang.String repositoryPath)
Set the repository path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BayesianAnalyzerManagement()
| Method Detail |
|---|
public void service(org.apache.avalon.framework.service.ServiceManager arg0)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(ServiceManager)
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.ExceptionInitializable.initialize()
public void configure(org.apache.avalon.framework.configuration.Configuration arg0)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(Configuration)public void setRepositoryPath(java.lang.String repositoryPath)
repositoryPath - Thre repositoryPathpublic void setDataSourceSelector(org.apache.avalon.cornerstone.services.datasources.DataSourceSelector selector)
selector - The DataSourceSelectorpublic void setDataSourceComponent(org.apache.avalon.excalibur.datasource.DataSourceComponent component)
component - The DataSourceComponent
public int addHamFromDir(java.lang.String dir)
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
addHamFromDir in interface BayesianAnalyzerManagementMBeanaddHamFromDir in interface BayesianAnalyzerManagementServicedir - full path to the directory containing mail files
BayesianAnalyzerManagementException - If the service is not configuredBayesianAnalyzerManagementService.addHamFromDir(String)
public int addSpamFromDir(java.lang.String dir)
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
addSpamFromDir in interface BayesianAnalyzerManagementMBeanaddSpamFromDir in interface BayesianAnalyzerManagementServicedir - full path to the directory containing mail files
BayesianAnalyzerManagementException - If the service is not configuredBayesianAnalyzerManagementService.addSpamFromDir(String)
public int addHamFromMbox(java.lang.String file)
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
addHamFromMbox in interface BayesianAnalyzerManagementMBeanaddHamFromMbox in interface BayesianAnalyzerManagementServicefile - path to the mbox file
BayesianAnalyzerManagementException - If the service is not configuredBayesianAnalyzerManagementService.addHamFromMbox(String)
public int addSpamFromMbox(java.lang.String file)
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
addSpamFromMbox in interface BayesianAnalyzerManagementMBeanaddSpamFromMbox in interface BayesianAnalyzerManagementServicefile - path to the mbox file
BayesianAnalyzerManagementException - If the service is not configuredBayesianAnalyzerManagementService.addSpamFromMbox(String)
public void exportData(java.lang.String file)
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
exportData in interface BayesianAnalyzerManagementMBeanexportData in interface BayesianAnalyzerManagementServicefile - path to the mbox file
BayesianAnalyzerManagementException - If the service is not configuredBayesianAnalyzerManagementService.exportData(String)
public void importData(java.lang.String file)
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
importData in interface BayesianAnalyzerManagementMBeanimportData in interface BayesianAnalyzerManagementServicefile - path to the mbox file
BayesianAnalyzerManagementException - IF the service is not configuredBayesianAnalyzerManagementService.importData(String)
public void resetData()
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
resetData in interface BayesianAnalyzerManagementMBeanresetData in interface BayesianAnalyzerManagementServiceBayesianAnalyzerManagementExceptionBayesianAnalyzerManagementService.resetData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||