|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataCollector
An inteface for using the data collecting features of this program. This interface is designed to be used by the UI.
Method Summary | |
---|---|
boolean |
addSource(java.lang.String name,
java.lang.String type,
java.net.URL location,
java.lang.String format)
Adds a single source to this DataCollector's data sources that will be updateble in the future. |
DataSourceDescription[] |
getSources()
Returns a description of each source that this DataCollector has. |
java.util.HashMap |
getSupportedTypes()
Returns all source types that are supported by this DataCollector. |
boolean |
removeSources(DataSourceDescription[] sources,
boolean removeData)
Removes one or more data sources permanently. |
void |
updateSources(DataSourceDescription[] sources)
Starts updating data sources. |
Methods inherited from interface maito.DataProcessor |
---|
getCurrentTasks, getErrors, setLogListener, workInProgress |
Method Detail |
---|
boolean addSource(java.lang.String name, java.lang.String type, java.net.URL location, java.lang.String format) throws java.lang.IllegalArgumentException
name
- A name/id for this source. This is the name that is visible to the user.type
- The type of this source. Must be one of the following:
"file"
"OAI-PMH"
location
- The location where this source's data is retrieved from.format
- The data format. Must be one of the following:
"quick_format_name"
"quick_format_document"
"DCXML"
"oai_citeseer"
java.lang.IllegalArgumentException
- Thrown when something is wrong with the parameters so that a new data source cannot be created.DataSourceDescription[] getSources()
void updateSources(DataSourceDescription[] sources)
sources
- The data sources that are to be updated.boolean removeSources(DataSourceDescription[] sources, boolean removeData)
sources
- The sources that are to be removed.removeData
- If true also all raw data is deleted from disk. If false the raw data is left alone.
java.util.HashMap getSupportedTypes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |