Package org.dspace.rdf
Class RDFConsumer
java.lang.Object
org.dspace.rdf.RDFConsumer
- All Implemented Interfaces:
Consumer
- Author:
- Pascal-Nicolas Becker (dspace -at- pascal -hyphen- becker -dot- de)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BitstreamServiceprotected BundleServiceprotected SiteServiceprotected Deque<org.dspace.rdf.RDFConsumer.DSOIdentifier>protected Deque<org.dspace.rdf.RDFConsumer.DSOIdentifier>protected WorkflowItemServiceprotected WorkspaceItemService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConsume an event.voidconsumeBitstream(Context ctx, Event event) voidconsumeBundles(Context ctx, Event event) voidconsumeCommunityCollectionItem(Context ctx, Event event) voidconsumeSite(Context ctx, Event event) voidSignal that there are no more events queued in this event stream and event processing for the preceding consume calls should be finished up.voidFinish - free any allocated resources.voidAllocate any resources required to operate.
-
Field Details
-
toConvert
-
toDelete
-
bitstreamService
-
bundleService
-
siteService
-
workspaceItemService
-
workflowItemService
-
-
Constructor Details
-
RDFConsumer
public RDFConsumer()
-
-
Method Details
-
initialize
Description copied from interface:ConsumerAllocate any resources required to operate. This may include initializing any pooled JMS resources. Called ONCE when created by the dispatcher pool. This should be used to set up expensive resources that will remain for the lifetime of the consumer.- Specified by:
initializein interfaceConsumer- Throws:
Exception- if error
-
consume
Description copied from interface:ConsumerConsume an event. Events may be filtered by a dispatcher, hiding them from the consumer. This behavior is based on the dispatcher/consumer configuration. Should include logic to initialize any resources required for a batch of events.This method must not commit the context. Committing causes re-dispatch of the event queue, which can result in infinite recursion leading to memory exhaustion as seen in {@link https://github.com/DSpace/DSpace/pull/8756}.
- Specified by:
consumein interfaceConsumer- Parameters:
ctx- the current DSpace sessionevent- the content event- Throws:
SQLException
-
consumeBitstream
- Throws:
SQLException
-
consumeBundles
- Throws:
SQLException
-
consumeCommunityCollectionItem
- Throws:
SQLException
-
consumeSite
- Throws:
SQLException
-
end
Description copied from interface:ConsumerSignal that there are no more events queued in this event stream and event processing for the preceding consume calls should be finished up. -
finish
Description copied from interface:ConsumerFinish - free any allocated resources. Called when consumer (via it's parent dispatcher) is going to be destroyed by the dispatcher pool.
-