org.fao.geonet.kernel.harvest
Class HarvestManager
java.lang.Object
org.fao.geonet.kernel.harvest.HarvestManager
public class HarvestManager
- extends java.lang.Object
Method Summary |
java.lang.String |
add(jeeves.resources.dbms.Dbms dbms,
org.jdom.Element node)
|
org.jdom.Element |
get(java.lang.String id)
|
AbstractHarvester |
getHarvester(java.lang.String harvestUuid)
|
org.jdom.Element |
getHarvestInfo(java.lang.String harvestUuid,
java.lang.String id,
java.lang.String uuid)
|
Common.OperResult |
remove(jeeves.resources.dbms.Dbms dbms,
java.lang.String id)
This method must be synchronized because it cannot run if we are updating some entries |
Common.OperResult |
run(java.lang.String id)
|
Common.OperResult |
start(jeeves.resources.dbms.Dbms dbms,
java.lang.String id)
|
Common.OperResult |
stop(jeeves.resources.dbms.Dbms dbms,
java.lang.String id)
|
boolean |
update(jeeves.resources.dbms.Dbms dbms,
org.jdom.Element node)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HarvestManager
public HarvestManager(jeeves.server.context.ServiceContext context,
SettingManager sm,
DataManager dm)
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public org.jdom.Element get(java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
add
public java.lang.String add(jeeves.resources.dbms.Dbms dbms,
org.jdom.Element node)
throws jeeves.exceptions.JeevesException,
java.sql.SQLException
- Throws:
jeeves.exceptions.JeevesException
java.sql.SQLException
update
public boolean update(jeeves.resources.dbms.Dbms dbms,
org.jdom.Element node)
throws jeeves.exceptions.BadInputEx,
java.sql.SQLException
- Throws:
jeeves.exceptions.BadInputEx
java.sql.SQLException
remove
public Common.OperResult remove(jeeves.resources.dbms.Dbms dbms,
java.lang.String id)
throws java.lang.Exception
- This method must be synchronized because it cannot run if we are updating some entries
- Throws:
java.lang.Exception
start
public Common.OperResult start(jeeves.resources.dbms.Dbms dbms,
java.lang.String id)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
stop
public Common.OperResult stop(jeeves.resources.dbms.Dbms dbms,
java.lang.String id)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
run
public Common.OperResult run(java.lang.String id)
getHarvestInfo
public org.jdom.Element getHarvestInfo(java.lang.String harvestUuid,
java.lang.String id,
java.lang.String uuid)
getHarvester
public AbstractHarvester getHarvester(java.lang.String harvestUuid)