Class MonitoredArchiveChannel
java.lang.Object
org.epics.archiverappliance.engine.model.ArchiveChannel
org.epics.archiverappliance.engine.model.MonitoredArchiveChannel
An ArchiveChannel that stores each incoming value.
- Version:
- Initial version:CSS, 4-Jun-2012, Luofeng Li:added codes to support for the new archiver
- 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
ConstructorsConstructorDescriptionMonitoredArchiveChannel(String name, Writer writer, int buffer_capacity, Instant last_archived_timestamp, double period_estimate, 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
-
MonitoredArchiveChannel
public MonitoredArchiveChannel(String name, Writer writer, int buffer_capacity, Instant last_archived_timestamp, double period_estimate, ConfigService configservice, ArchDBRTypes archdbrtype, String controlPVname, int commandThreadID, boolean usePVAccess) throws Exception - Parameters:
name- pv's namewriter- the writer for this pvbuffer_capacity- the sample buffer's capacity for this pvlast_archived_timestamp- the last time stamp when this pv was archivedperiod_estimate-configservice- the configservice of new archiverarchdbrtype- the archiving dbr typecontrolPVname- the pv's name who control this pv to start archiving or stop archivingcommandThreadID- - this is the index into the array of JCA command threads that processes this context.usePVAccess- - Should we use PVAccess to connect to this PV.- Throws:
Exception- error when creating archive channel for this pv- See Also:
-
-
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.
-