|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.event.TestConsumer
public class TestConsumer
Demonstration and test consumer for the event system. This consumer only makes an entry in the log, and on an output stream, for each event it receives. It also logs when consume() and end() get called. It is intended for testing, exploring, and debugging the event system.
| Constructor Summary | |
|---|---|
TestConsumer()
|
|
| Method Summary | |
|---|---|
void |
consume(Context ctx,
Event event)
Consume a content event - display it in detail. |
void |
end(Context ctx)
Signal that there are no more events queued in this event stream and event processing for the preceding consume calls should be finished up. |
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 |
|---|
public TestConsumer()
| Method Detail |
|---|
public void initialize()
throws Exception
Consumer
initialize in interface ConsumerException
public void consume(Context ctx,
Event event)
throws Exception
consume in interface Consumerctx - DSpace contextevent - Content event
Exception
public void end(Context ctx)
throws Exception
Consumer
end in interface ConsumerException
public void finish(Context ctx)
throws Exception
Consumer
finish in interface ConsumerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||