Class RDFEngineSimple
java.lang.Object
org.aksw.jenax.dataaccess.sparql.engine.RDFEngineSimple
- All Implemented Interfaces:
AutoCloseable,HasServiceControl,RDFEngine,HasRDFLinkSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AutoCloseableprotected RDFLinkSourceprotected ServiceControl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRDFEngineSimple(RDFLinkSource linkSource, AutoCloseable closeAction) protectedRDFEngineSimple(RDFLinkSource linkSource, ServiceControl service, AutoCloseable closeAction) Constructed withRDFEngines.of(RDFLinkSource, Closeable). -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()An engine may optionally expose a way to start and stop the underlying service.
-
Field Details
-
linkSource
-
service
-
closeAction
-
-
Constructor Details
-
RDFEngineSimple
-
RDFEngineSimple
protected RDFEngineSimple(RDFLinkSource linkSource, ServiceControl service, AutoCloseable closeAction) Constructed withRDFEngines.of(RDFLinkSource, Closeable).
-
-
Method Details
-
getLinkSource
- Specified by:
getLinkSourcein interfaceHasRDFLinkSource
-
getServiceControl
Description copied from interface:RDFEngineAn engine may optionally expose a way to start and stop the underlying service. Note that only a call toAutoCloseable.close()must guarantee to stop the service and free any resources. Only callingServiceControl.stop()is generally NOT sufficient.- Specified by:
getServiceControlin interfaceHasServiceControl- Specified by:
getServiceControlin interfaceRDFEngine
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-