Class BasicContext
java.lang.Object
org.epics.archiverappliance.common.BasicContext
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
ETLContext
All the main units of work in the appliance that deal with plugins pass in a context that can be used to hold state that pertains to the unit of work.
For now, these are
- The main writer thread in the engine that writes to the short term store.
- The ETL jobs that transfer data from one store to the other.
- A client retrieval that gets data from the plugin.
- Author:
- mshankar
-
Constructor Summary
ConstructorsConstructorDescriptionBasicContext(ArchDBRTypes retrievalExpectedDBRType, String pvNameFromRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(Closeable resource) Add a resource that needs to be closed once we finish the unit of work..voidclose()getPaths()The PlainPB plugin deals with paths that can be translated into NIO by our implementation of Paths.
-
Constructor Details
-
BasicContext
public BasicContext() -
BasicContext
-
-
Method Details
-
getPaths
The PlainPB plugin deals with paths that can be translated into NIO by our implementation of Paths. We generate one per context so that things can be closed correctly.- Returns:
- paths ArchPaths
-
addResource
Add a resource that needs to be closed once we finish the unit of work..- Parameters:
resource- Closeable resouce
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getRetrievalExpectedDBRType
- Returns:
- retrievalExpectedDBRType ArchDBRTypes
-
getPvNameFromRequest
- Returns:
- pvNameFromRequest
-