|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(ServiceManager)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
Initializable.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.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.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 DataSourceComponentpublic int addHamFromDir(java.lang.String dir) throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
addHamFromDir
in interface BayesianAnalyzerManagementMBean
addHamFromDir
in interface BayesianAnalyzerManagementService
dir
- 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 BayesianAnalyzerManagementMBean
addSpamFromDir
in interface BayesianAnalyzerManagementService
dir
- 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 BayesianAnalyzerManagementMBean
addHamFromMbox
in interface BayesianAnalyzerManagementService
file
- 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 BayesianAnalyzerManagementMBean
addSpamFromMbox
in interface BayesianAnalyzerManagementService
file
- 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 BayesianAnalyzerManagementMBean
exportData
in interface BayesianAnalyzerManagementService
file
- 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 BayesianAnalyzerManagementMBean
importData
in interface BayesianAnalyzerManagementService
file
- path to the mbox file
BayesianAnalyzerManagementException
- IF the service is not configuredBayesianAnalyzerManagementService.importData(String)
public void resetData() throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementMBean
resetData
in interface BayesianAnalyzerManagementMBean
resetData
in interface BayesianAnalyzerManagementService
BayesianAnalyzerManagementException
BayesianAnalyzerManagementService.resetData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |