|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.harvesting.distribute.HarvestControllerClient
public class HarvestControllerClient
Proxy for remote scheduler. Establishes a JMS connection, and gives an interfaces for sending crawl requests.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
the logger to use. |
static java.lang.String |
sendMessage
A String to write to log when sending a message. |
Method Summary | |
---|---|
void |
close()
Closes client cleanly. |
void |
doOneCrawl(Job job,
java.util.List<MetadataEntry> metadata)
Submit an doOneCrawl request to a HarvestControllerServer with correct priority. |
static HarvestControllerClient |
getInstance()
Construction factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String sendMessage
protected final org.apache.commons.logging.Log log
Method Detail |
---|
public static HarvestControllerClient getInstance() throws IOFailure
IOFailure
- If there is a problem making the connection.public void doOneCrawl(Job job, java.util.List<MetadataEntry> metadata) throws ArgumentNotValid, IOFailure
job
- the specific job to sendmetadata
- pre-harvest metadata to store in arcfile.
ArgumentNotValid
- the job parameter is null
IOFailure
- if unable to send the doOneCrawl request to a
harvestControllerServerpublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |