org.dspace.checker
Class CheckerConsumer

java.lang.Object
  extended by org.dspace.checker.CheckerConsumer
All Implemented Interfaces:
Consumer

public class CheckerConsumer
extends Object
implements Consumer

Class for removing Checker data for a Bitstreams based on deletion events.

Version:
$Revision: 3737 $

Constructor Summary
CheckerConsumer()
           
 
Method Summary
 void consume(Context ctx, Event event)
          Consume an event
 void end(Context ctx)
          Signal that there are no more events queued in this event stream.
 void finish(Context ctx)
          Finish - free any allocated resources.
 void initialize()
          Initialize - allocate any resources required to operate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckerConsumer

public CheckerConsumer()
Method Detail

initialize

public void initialize()
                throws Exception
Initialize - allocate any resources required to operate. Called at the start of ANY sequence of event consume() calls.

Specified by:
initialize in interface Consumer
Throws:
Exception

consume

public void consume(Context ctx,
                    Event event)
             throws Exception
Consume an event

Specified by:
consume in interface Consumer
Parameters:
ctx - the execution context object
event - the content event
Throws:
Exception

end

public void end(Context ctx)
         throws Exception
Signal that there are no more events queued in this event stream.

Specified by:
end in interface Consumer
Throws:
Exception

finish

public void finish(Context ctx)
            throws Exception
Finish - free any allocated resources. Called when consumer is being released

Specified by:
finish in interface Consumer
Throws:
Exception


Copyright © 2010 DuraSpace. All Rights Reserved.