Class DeltaArchiveChannel
java.lang.Object
org.epics.archiverappliance.engine.model.ArchiveChannel
org.epics.archiverappliance.engine.model.DeltaArchiveChannel
An ArchiveChannel that stores each incoming value that differs from the
previous sample by some 'delta'.
- Author:
- Kay Kasemir
-
Field Summary
Fields inherited from class org.epics.archiverappliance.engine.model.ArchiveChannel
lastDBRTimeEvent, latestDBRTimeEvent, pvMetrics, SAVE_META_DATA_PERIOD_SECS -
Constructor Summary
ConstructorsConstructorDescriptionDeltaArchiveChannel(String name, Writer writer, int buffer_capacity, Instant last_timeestamp, double period_estimate, double delta, ConfigService configservice, ArchDBRTypes archdbrtype, String controlPVname, int commandThreadID, boolean usePVAccess) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhandleNewValue(DBRTimeEvent timeevent) Attempt to add each new value to the buffer.Methods inherited from class org.epics.archiverappliance.engine.model.ArchiveChannel
aboutToWriteBuffer, addValueToBuffer, getConnectedMetaChannelCount, getControlPVname, getCurrentCopyOfMetaFields, getHostName, getJCACommandThreadID, getLastArchivedValue, getLatestMetadata, getLowLevelChannelStateInfo, getMetaChannelCount, getMetaPVNames, getName, getPVData, getPVMetrics, getSampleBuffer, getSecondsElapsedSinceSearchRequest, getWriter, handleDisconnected, initializeMetaFieldPVS, isConnected, isMetaPVConnected, isPaused, metaChannelsNeedStartingUp, reset, setlastRotateLogsEpochSeconds, setPaused, shutdownMetaChannels, start, startUpMetaChannels, stop, toString, updateMetadataOnceADay
-
Constructor Details
-
DeltaArchiveChannel
public DeltaArchiveChannel(String name, Writer writer, int buffer_capacity, Instant last_timeestamp, double period_estimate, double delta, ConfigService configservice, ArchDBRTypes archdbrtype, String controlPVname, int commandThreadID, boolean usePVAccess) throws Exception - Parameters:
name- Name of the channel (PV)writer-buffer_capacity- Size of sample bufferlast_timeestamp-period_estimate- Estimated change period [seconds]delta- Value changes ≥ this value will be storedconfigservice- ConfigServicearchdbrtype- ArchDBRTypeScontrolPVname-commandThreadID-usePVAccess-- Throws:
Exception- On error in PV setup
-
-
Method Details
-
getMechanism
- Specified by:
getMechanismin classArchiveChannel- Returns:
- Short description of sample mechanism
-
handleNewValue
Attempt to add each new value to the buffer.- Overrides:
handleNewValuein classArchiveChannel- Parameters:
timeevent- DBRTimeEvent- Returns:
- true if the value was already written because it's the first value after startup or error, so there's no need to write that sample again.
-