|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.discovery.IndexEventConsumer
public class IndexEventConsumer
Class for updating search indices in discovery from content events.
| Constructor Summary | |
|---|---|
IndexEventConsumer()
|
|
| Method Summary | |
|---|---|
void |
consume(Context ctx,
Event event)
Consume a content event -- just build the sets of objects to add (new) to the index, update, and delete. |
void |
end(Context ctx)
Process sets of objects to add, update, and delete in index. |
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 IndexEventConsumer()
| 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
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 | |||||||||