Package org.epics.ca

Class BaseV3ChannelPut

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

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

      • BaseV3ChannelPut

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

      • initializePut

        protected void initializePut()
      • destroy

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

        public void get()
        Description copied from interface: ChannelPut
        Get the current data.
        Specified by:
        get in interface ChannelPut
      • getCompleted

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

        public void put​(org.epics.pvdata.pv.PVStructure pvPutStructure,
                        org.epics.pvdata.misc.BitSet bitSet)
        Description copied from interface: ChannelPut
        Put data to a channel. Completion status is reported by calling ChannelPutRequester.putDone() callback.
        Specified by:
        put in interface ChannelPut
        Parameters:
        pvPutStructure - The PVStructure that holds the putData.
        bitSet - selects what fields to put.
      • putCompleted

        public void putCompleted​(gov.aps.jca.event.PutEvent event)
        Specified by:
        putCompleted in interface gov.aps.jca.event.PutListener
      • getRequesterName

        public String getRequesterName()
      • message

        public void message​(String message,
                            org.epics.pvdata.pv.MessageType messageType)
      • 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.