• All Implemented Interfaces:
    gov.aps.jca.event.ConnectionListener, gov.aps.jca.event.MonitorListener, EventListener, ControllingPV, PV

    public class EPICS_V3_PV
    extends Object
    implements PV, ControllingPV, gov.aps.jca.event.ConnectionListener, gov.aps.jca.event.MonitorListener
    EPICS ChannelAccess implementation of the PV interface.
    Initial version:CSS, 4-Jun-2012, Luofeng Li:added codes to support for the new archiver
    Kay Kasemir
    See Also:
    • Method Detail

      • isEnableAllPV

        public boolean isEnableAllPV()
        Specified by:
        isEnableAllPV in interface ControllingPV
        the status of all pvs controlled by this pv
      • getTotalMetaInfo

        public MetaInfo getTotalMetaInfo()
        get the meta info for this pv
        Specified by:
        getTotalMetaInfo in interface PV
      • addControledPV

        public void addControledPV​(String pvName)
        Description copied from interface: ControllingPV
        add pv controlled by this pv
        Specified by:
        addControledPV in interface ControllingPV
        pvName - The PV name
      • getName

        public String getName()
        Specified by:
        getName in interface PV
        Returns the name.
      • addListener

        public void addListener​(PVListener listener)
        Add a new listener.
        Specified by:
        addListener in interface PV
        listener - PVListener
        See Also:
      • removeListener

        public void removeListener​(PVListener listener)
        Remove a listener.
        Specified by:
        removeListener in interface PV
        listener - PVListener
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface PV
        Returns true between start() and stop().
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface PV
        Returns true when connected. While isRunning, we are subscribed for value updates, but we might still be disconnected, at least temporarily.
      • stop

        public void stop()
        Stop the PV: disconnect, ... When the PV is no longer needed, one should 'stop' it to release resources.
        Specified by:
        stop in interface ControllingPV
        Specified by:
        stop in interface PV
      • connectionChanged

        public void connectionChanged​(gov.aps.jca.event.ConnectionEvent ev)
        ConnectionListener interface.
        Specified by:
        connectionChanged in interface gov.aps.jca.event.ConnectionListener
      • monitorChanged

        public void monitorChanged​(gov.aps.jca.event.MonitorEvent ev)
        MonitorListener interface.
        Specified by:
        monitorChanged in interface gov.aps.jca.event.MonitorListener
      • setMetaFieldParentPV

        public void setMetaFieldParentPV​(PV parentPV,
                                         boolean isRuntimeOnly)
        Description copied from interface: PV
        Set the "parent" PV for this meta field pv. The data from this PV is stored as a metafield in the parentPV.
        Specified by:
        setMetaFieldParentPV in interface PV
        parentPV - - Store data from this PV as a metafield in the parentPV.
        isRuntimeOnly - - Only store values in the runtime hashMaps.
      • markPVHasMetafields

        public void markPVHasMetafields​(boolean hasMetaField)
        Description copied from interface: PV
        Making this PV as having metafields or not If the PV has metafields, then internal state is created to maintain the latest values of these metafields.
        Specified by:
        markPVHasMetafields in interface PV
        hasMetaField -  
        See Also:
      • getLowLevelChannelInfo

        public void getLowLevelChannelInfo​(List<Map<String,​String>> statuses)
        Description copied from interface: PV
        Get 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:
        getLowLevelChannelInfo in interface PV
      • updateTotalMetaInfo

        public void updateTotalMetaInfo()
                                 throws IllegalStateException,
        Description copied from interface: PV
        Do a caget and update the metadata that is cached in the PV.
        Specified by:
        updateTotalMetaInfo in interface PV
        IllegalStateException -  
        gov.aps.jca.CAException -  
      • setDBEroperties

        public void setDBEroperties()
      • sampleWrittenIntoStores

        public void sampleWrittenIntoStores()
        Description copied from interface: PV
        This method is called each time the ArchiveChannel has written changed a DBRTimeEvent into the buffers.
        Specified by:
        sampleWrittenIntoStores in interface PV