Class EPICS_V4_PV
java.lang.Object
org.epics.archiverappliance.engine.pv.EPICS_V4_PV
- All Implemented Interfaces:
PV,org.epics.pva.client.ClientChannelListener,org.epics.pva.client.MonitorListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidaboutToWriteBuffer(DBRTimeEvent lastEvent) Updates field values when about to write to the buffer.voidaddListener(PVListener listener) Add a new listener.voidaddMetaField(String fieldName) Add a meta field to archive along with the value.voidchannelStateChanged(org.epics.pva.client.PVAChannel channel, org.epics.pva.client.ClientChannelState clientChannelState) get the archive DBR types for this pvCombine the metadata from various sources and return the latest copy.voidgetLowLevelChannelInfo(List<Map<String, String>> statuses) Get any low level info as a displayable list; this is typically meant for debugging purposes..getName()get the meta info for this pvvoidhandleMonitor(org.epics.pva.client.PVAChannel channel, BitSet changes, BitSet overruns, org.epics.pva.data.PVAStructure data) booleanbooleanvoidremoveListener(PVListener listener) Remove a listener.voidThis method is called each time the ArchiveChannel has written changed a DBRTimeEvent into the buffers.voidstart()Start the PV: connect, get meta data, subscribe to updates, invokePVListenerfor incoming values, ...voidstop()Stop the PV: disconnect, ...voidDo a caget and update the metadata that is cached in the PV.
-
Method Details
-
getName
-
addListener
Description copied from interface:PVAdd a new listener.- Specified by:
addListenerin interfacePV- Parameters:
listener- PVListener- See Also:
-
removeListener
Description copied from interface:PVRemove a listener.- Specified by:
removeListenerin interfacePV- Parameters:
listener- PVListener
-
start
Description copied from interface:PVStart the PV: connect, get meta data, subscribe to updates, invokePVListenerfor incoming values, ... -
stop
public void stop()Description copied from interface:PVStop the PV: disconnect, ... When the PV is no longer needed, one should 'stop' it to release resources. -
isRunning
public boolean isRunning() -
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfacePV- Returns:
- Returns
truewhen connected. WhileisRunning, we are subscribed for value updates, but we might still be disconnected, at least temporarily.
-
connectionState
- Specified by:
connectionStatein interfacePV- Returns:
-
getArchDBRTypes
Description copied from interface:PVget the archive DBR types for this pv- Specified by:
getArchDBRTypesin interfacePV- Returns:
- ArchDBRTypes
-
getLatestMetadata
Description copied from interface:PVCombine the metadata from various sources and return the latest copy.- Specified by:
getLatestMetadatain interfacePV- Returns:
- HashMap
-
updateTotalMetaInfo
Description copied from interface:PVDo a caget and update the metadata that is cached in the PV.- Specified by:
updateTotalMetaInfoin interfacePV- Throws:
IllegalStateException-
-
getHostName
- Specified by:
getHostNamein interfacePV
-
getLowLevelChannelInfo
Description copied from interface:PVGet any low level info as a displayable list; this is typically meant for debugging purposes.. Add these to as key value pairs to the statuses- Specified by:
getLowLevelChannelInfoin interfacePV
-
channelStateChanged
public void channelStateChanged(org.epics.pva.client.PVAChannel channel, org.epics.pva.client.ClientChannelState clientChannelState) - Specified by:
channelStateChangedin interfaceorg.epics.pva.client.ClientChannelListener
-
handleMonitor
public void handleMonitor(org.epics.pva.client.PVAChannel channel, BitSet changes, BitSet overruns, org.epics.pva.data.PVAStructure data) - Specified by:
handleMonitorin interfaceorg.epics.pva.client.MonitorListener
-
getTotalMetaInfo
get the meta info for this pv- Specified by:
getTotalMetaInfoin interfacePV- Returns:
- MetaInfo
-
sampleWrittenIntoStores
public void sampleWrittenIntoStores()Description copied from interface:PVThis method is called each time the ArchiveChannel has written changed a DBRTimeEvent into the buffers.- Specified by:
sampleWrittenIntoStoresin interfacePV
-
aboutToWriteBuffer
Updates field values when about to write to the buffer.- Specified by:
aboutToWriteBufferin interfacePV- Parameters:
lastEvent- Last event got.
-
addMetaField
Add a meta field to archive along with the value.- Parameters:
fieldName- Name of the meta field.
-