|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fao.geonet.kernel.harvest.harvester.AbstractHarvester
public abstract class AbstractHarvester
Field Summary | |
---|---|
protected jeeves.server.context.ServiceContext |
context
|
protected DataManager |
dataMan
|
protected SettingManager |
settingMan
|
Constructor Summary | |
---|---|
AbstractHarvester()
|
Method Summary | |
---|---|
void |
add(jeeves.resources.dbms.Dbms dbms,
org.jdom.Element node)
|
protected void |
add(org.jdom.Element el,
java.lang.String name,
int value)
|
void |
addHarvestInfo(org.jdom.Element info,
java.lang.String id,
java.lang.String uuid)
Adds harvesting information to each metadata element. |
void |
addInfo(org.jdom.Element node)
Adds harvesting result information to each harvesting entry |
static AbstractHarvester |
create(java.lang.String type,
jeeves.server.context.ServiceContext context,
SettingManager sm,
DataManager dm)
|
void |
destroy(jeeves.resources.dbms.Dbms dbms)
Called when the harvesting entry is removed from the system. |
protected abstract java.lang.String |
doAdd(jeeves.resources.dbms.Dbms dbms,
org.jdom.Element node)
|
protected abstract void |
doAddInfo(org.jdom.Element node)
|
protected abstract void |
doDestroy(jeeves.resources.dbms.Dbms dbms)
|
protected abstract void |
doHarvest(jeeves.interfaces.Logger l,
jeeves.server.resources.ResourceManager rm)
|
protected abstract void |
doInit(org.jdom.Element entry)
|
protected abstract void |
doUpdate(jeeves.resources.dbms.Dbms dbms,
java.lang.String id,
org.jdom.Element node)
|
java.lang.String |
getID()
|
abstract AbstractParams |
getParams()
|
abstract java.lang.String |
getType()
|
void |
init(org.jdom.Element node)
|
Common.OperResult |
run()
|
protected void |
setValue(java.util.Map<java.lang.String,java.lang.Object> values,
java.lang.String path,
org.jdom.Element el,
java.lang.String name)
|
Common.OperResult |
start(jeeves.resources.dbms.Dbms dbms)
|
static void |
staticInit(jeeves.server.context.ServiceContext context)
|
Common.OperResult |
stop(jeeves.resources.dbms.Dbms dbms)
|
protected void |
storeCategories(jeeves.resources.dbms.Dbms dbms,
AbstractParams params,
java.lang.String path)
Override this method with an empty body to avoid categories storage |
protected void |
storeNode(jeeves.resources.dbms.Dbms dbms,
AbstractParams params,
java.lang.String path)
|
protected void |
storeNodeExtra(jeeves.resources.dbms.Dbms dbms,
AbstractParams params,
java.lang.String path,
java.lang.String siteId,
java.lang.String optionsId)
Override this method to store harvesting node's specific settings |
protected void |
storePrivileges(jeeves.resources.dbms.Dbms dbms,
AbstractParams params,
java.lang.String path)
Override this method with an empty body to avoid privileges storage |
void |
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 |
Field Detail |
---|
protected jeeves.server.context.ServiceContext context
protected SettingManager settingMan
protected DataManager dataMan
Constructor Detail |
---|
public AbstractHarvester()
Method Detail |
---|
public static void staticInit(jeeves.server.context.ServiceContext context) throws java.lang.Exception
java.lang.Exception
public static AbstractHarvester create(java.lang.String type, jeeves.server.context.ServiceContext context, SettingManager sm, DataManager dm) throws jeeves.exceptions.BadParameterEx, jeeves.exceptions.OperationAbortedEx
jeeves.exceptions.BadParameterEx
jeeves.exceptions.OperationAbortedEx
public void add(jeeves.resources.dbms.Dbms dbms, org.jdom.Element node) throws jeeves.exceptions.BadInputEx, java.sql.SQLException
jeeves.exceptions.BadInputEx
java.sql.SQLException
public void init(org.jdom.Element node) throws jeeves.exceptions.BadInputEx
jeeves.exceptions.BadInputEx
public void destroy(jeeves.resources.dbms.Dbms dbms) throws java.lang.Exception
java.lang.Exception
public Common.OperResult start(jeeves.resources.dbms.Dbms dbms) throws java.sql.SQLException
java.sql.SQLException
public Common.OperResult stop(jeeves.resources.dbms.Dbms dbms) throws java.sql.SQLException
java.sql.SQLException
public Common.OperResult run()
public void update(jeeves.resources.dbms.Dbms dbms, org.jdom.Element node) throws jeeves.exceptions.BadInputEx, java.sql.SQLException
jeeves.exceptions.BadInputEx
java.sql.SQLException
public java.lang.String getID()
public void addInfo(org.jdom.Element node)
public void addHarvestInfo(org.jdom.Element info, java.lang.String id, java.lang.String uuid)
public abstract java.lang.String getType()
public abstract AbstractParams getParams()
protected abstract void doInit(org.jdom.Element entry) throws jeeves.exceptions.BadInputEx
jeeves.exceptions.BadInputEx
protected abstract void doDestroy(jeeves.resources.dbms.Dbms dbms) throws java.sql.SQLException
java.sql.SQLException
protected abstract java.lang.String doAdd(jeeves.resources.dbms.Dbms dbms, org.jdom.Element node) throws jeeves.exceptions.BadInputEx, java.sql.SQLException
jeeves.exceptions.BadInputEx
java.sql.SQLException
protected abstract void doUpdate(jeeves.resources.dbms.Dbms dbms, java.lang.String id, org.jdom.Element node) throws jeeves.exceptions.BadInputEx, java.sql.SQLException
jeeves.exceptions.BadInputEx
java.sql.SQLException
protected abstract void doAddInfo(org.jdom.Element node)
protected abstract void doHarvest(jeeves.interfaces.Logger l, jeeves.server.resources.ResourceManager rm) throws java.lang.Exception
java.lang.Exception
protected void storeNode(jeeves.resources.dbms.Dbms dbms, AbstractParams params, java.lang.String path) throws java.sql.SQLException
java.sql.SQLException
protected void storePrivileges(jeeves.resources.dbms.Dbms dbms, AbstractParams params, java.lang.String path) throws java.sql.SQLException
java.sql.SQLException
protected void storeCategories(jeeves.resources.dbms.Dbms dbms, AbstractParams params, java.lang.String path) throws java.sql.SQLException
java.sql.SQLException
protected void storeNodeExtra(jeeves.resources.dbms.Dbms dbms, AbstractParams params, java.lang.String path, java.lang.String siteId, java.lang.String optionsId) throws java.sql.SQLException
java.sql.SQLException
protected void setValue(java.util.Map<java.lang.String,java.lang.Object> values, java.lang.String path, org.jdom.Element el, java.lang.String name)
protected void add(org.jdom.Element el, java.lang.String name, int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |