org.dspace.harvest
Class HarvestConsumer

java.lang.Object
  extended by org.dspace.harvest.HarvestConsumer
All Implemented Interfaces:
Consumer

public class HarvestConsumer
extends Object
implements Consumer

Class for handling cleanup of harvest settings for collections and items

Version:
$Revision: 3705 $
Author:
Stuart Lewis, Alexey Maslov

Constructor Summary
HarvestConsumer()
           
 
Method Summary
 void consume(Context context, Event event)
          Consume the event
 void end(Context ctx)
          Handle the end of the event
 void finish(Context ctx)
          Finish the event
 void initialize()
          Initalise the consumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestConsumer

public HarvestConsumer()
Method Detail

initialize

public void initialize()
                throws Exception
Initalise the consumer

Specified by:
initialize in interface Consumer
Throws:
Exception

consume

public void consume(Context context,
                    Event event)
             throws Exception
Consume the event

Specified by:
consume in interface Consumer
Parameters:
context -
event -
Throws:
Exception

end

public void end(Context ctx)
         throws Exception
Handle the end of the event

Specified by:
end in interface Consumer
Parameters:
ctx -
Throws:
Exception

finish

public void finish(Context ctx)
Finish the event

Specified by:
finish in interface Consumer
Parameters:
ctx -


Copyright © 2010 DuraSpace. All Rights Reserved.