|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.distribute.HarvesterMessageHandler
dk.netarkivet.harvester.scheduler.HarvesterStatusReceiver
public class HarvesterStatusReceiver
Handles the reception of status messages from the harvesters. Will call the
visit(HarvesterReadyMessage)
method when a Ready message is
received.
Constructor Summary | |
---|---|
HarvesterStatusReceiver(JobDispatcher jobDispatcher,
JMSConnection jmsConnection)
|
Method Summary | |
---|---|
void |
shutdown()
The inverse of the start() method. |
void |
start()
Implements functionality for starting an instances of this ComponentLifeCycle object. |
void |
visit(HarvesterReadyMessage message)
Tells the dispatcher that it may dispatch a new job. |
Methods inherited from class dk.netarkivet.harvester.distribute.HarvesterMessageHandler |
---|
onMessage, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HarvesterStatusReceiver(JobDispatcher jobDispatcher, JMSConnection jmsConnection)
jobDispatcher
- The JobDispatcher
to delegate the
dispatching of new jobs to, when a 'Ready for job' event is received.jmsConnection
- The JMS connection by which
HarvesterReadyMessage
is received.Method Detail |
---|
public void start()
ComponentLifeCycle
ComponentLifeCycle
object.
This may be loading files, establish connections, initializing data,
starting threads, etc.
start
in interface ComponentLifeCycle
public void shutdown()
ComponentLifeCycle
start()
method. Contains functionality
for deallocation of ressources, clearing data, closing connections,
stopping threads, etc
shutdown
in interface ComponentLifeCycle
public void visit(HarvesterReadyMessage message)
visit
in interface HarvesterMessageVisitor
visit
in class HarvesterMessageHandler
message
- The message containing the relevant harvester information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |