Package org.epics.ca

Class BaseV3ChannelGet

  • All Implemented Interfaces:
    gov.aps.jca.event.ConnectionListener, gov.aps.jca.event.GetListener, EventListener, ChannelGet, ChannelRequest, Lockable, org.epics.pvdata.misc.Destroyable

    public class BaseV3ChannelGet
    extends Object
    implements ChannelGet, gov.aps.jca.event.GetListener, gov.aps.jca.event.ConnectionListener
    Base class that implements ChannelGet for communicating with a V3 IOC.
    Author:
    mrk
    • Constructor Detail

      • BaseV3ChannelGet

        public BaseV3ChannelGet​(ChannelGetRequester channelGetRequester,
                                V3Channel v3Channel,
                                org.epics.pvdata.pv.PVStructure pvRequest)
        Constructor.
        Parameters:
        channelGetRequester - The channelGetRequester.
        v3Channel - The V3Channel
        pvRequest - The request structure.
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.epics.pvdata.misc.Destroyable
      • get

        public void get()
        Description copied from interface: ChannelGet
        Get data from the channel. Completion status is reported by calling ChannelGetRequester.getDone() callback.
        Specified by:
        get in interface ChannelGet
      • getRequesterName

        public String getRequesterName()
      • message

        public void message​(String message,
                            org.epics.pvdata.pv.MessageType messageType)
      • getCompleted

        public void getCompleted​(gov.aps.jca.event.GetEvent getEvent)
        Specified by:
        getCompleted in interface gov.aps.jca.event.GetListener
      • connectionChanged

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

        public void lock()
        Specified by:
        lock in interface Lockable
      • unlock

        public void unlock()
        Specified by:
        unlock in interface Lockable
      • cancel

        public void cancel()
        Description copied from interface: ChannelRequest
        Cancel any pending request. Completion will be reported via request's response callback:
        • if cancel() request is issued after the request was already complete, request success/failure completion will be reported and cancel() request ignored.
        • if the request was actually canceled, cancellation completion is reported.
        Specified by:
        cancel in interface ChannelRequest
      • lastRequest

        public void lastRequest()
        Description copied from interface: ChannelRequest
        Announce next request as last request. When last request will be completed (regardless of completion status) the remote and local instance will be destroyed.
        Specified by:
        lastRequest in interface ChannelRequest
      • getChannel

        public Channel getChannel()
        Description copied from interface: ChannelRequest
        Get a channel instance this request belongs to.
        Specified by:
        getChannel in interface ChannelRequest
        Returns:
        the channel instance.