|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.control.webharvest.engine.Harvester
public class Harvester
Harvesting engine.
Nested Class Summary | |
---|---|
static interface |
Harvester.Listener
Listener of events. |
Constructor Summary | |
---|---|
Harvester(MessageBroker messageBroker,
HarvesterConfiguration cfg)
Creates instance of the engine. |
Method Summary | |
---|---|
boolean |
cancel(RequestContext context,
String uuid)
Cancels pending tasks for given repository. |
protected void |
finalize()
|
int |
getPoolSize()
Gets pool size. |
boolean |
getRunning()
Checks if synchronizer is running. |
Statistics |
getStatistics(String uuid)
Gets statistics for given repository. |
void |
init()
Initializes engine. |
boolean |
isExecutingLocally(String uuid)
Checks if is executing locally. |
void |
registerListener(Harvester.Listener listener)
Registers listener. |
void |
removeAllListeners()
Removes all listeners. |
void |
reselect()
Reselects harvesting sites. |
void |
setPoolSize(int size)
Sets pool size. |
void |
shutdown()
Shuts down harvesting engine. |
boolean |
span(RequestContext context,
HrRecord resource,
Integer maxRecs,
Date fromDate)
Spans new, separate thread exclusively for the resource. |
void |
startup()
Startups synchronizer. |
boolean |
submit(RequestContext context,
HrRecord resource,
Integer maxRecs,
Date fromDate)
Submits new harvesting task for partial harvest. |
void |
unregisterListener(Harvester.Listener listener)
Removes listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Harvester(MessageBroker messageBroker, HarvesterConfiguration cfg)
messageBroker
- message brokercfg
- harvest configurationMethod Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void startup()
HarvesterMBean
startup
in interface HarvesterMBean
public void init()
public boolean getRunning()
HarvesterMBean
getRunning
in interface HarvesterMBean
true
if synchronizer is runningpublic void shutdown()
shutdown
in interface HarvesterMBean
public void setPoolSize(int size)
HarvesterMBean
setPoolSize
in interface HarvesterMBean
size
- desired pool sizepublic int getPoolSize()
HarvesterMBean
getPoolSize
in interface HarvesterMBean
public void reselect()
public boolean isExecutingLocally(String uuid)
uuid
- resource UUID
true
if is executing locallypublic Statistics getStatistics(String uuid)
uuid
- repository uuid.
null
if statistics unavailablepublic boolean submit(RequestContext context, HrRecord resource, Integer maxRecs, Date fromDate)
context
- request contextresource
- resource to harvestmaxRecs
- maximum number of records to harvest (null
for no maximum limit)fromDate
- to harvest only from the specific date (null
for no from date)
true
if task has been submittedpublic boolean span(RequestContext context, HrRecord resource, Integer maxRecs, Date fromDate)
context
- request contextresource
- resource to harvestmaxRecs
- maximum number of records to harvest (null
for no maximum limit)fromDate
- to harvest only from the specific date (null
for no from date)
true
if task has been sumbitedpublic boolean cancel(RequestContext context, String uuid)
context
- request contextuuid
- repository uuid
true
if has been canceled properlypublic void registerListener(Harvester.Listener listener)
listener
- listenerpublic void unregisterListener(Harvester.Listener listener)
listener
- listenerpublic void removeAllListeners()
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |