Package org.epics.ca

Class BaseV3Channel

    • Method Detail

      • connectCaV3

        public void connectCaV3()
      • getRemoteAddress

        public String getRemoteAddress()
        Description copied from interface: Channel
        Returns the channel's remote address, e.g. "/192.168.1.101:5064" or "#C0 S1".
        Specified by:
        getRemoteAddress in interface Channel
        Returns:
        the channel's remote address.
      • add

        public boolean add​(ChannelGet channelGet)
        Description copied from interface: V3Channel
        Add a channelGet
        Specified by:
        add in interface V3Channel
        Parameters:
        channelGet - The channelGet to add.
        Returns:
        (false,true) if the channelGet (was not, was) added.
      • add

        public boolean add​(ChannelPut channelPut)
        Description copied from interface: V3Channel
        Add a channelPut
        Specified by:
        add in interface V3Channel
        Parameters:
        channelPut - The channelPut to add.
        Returns:
        (false,true) if the channelPut (was not, was) added.
      • add

        public boolean add​(org.epics.pvdata.monitor.Monitor monitor)
        Description copied from interface: V3Channel
        Add a monitor
        Specified by:
        add in interface V3Channel
        Parameters:
        monitor - The monitor to add.
        Returns:
        (false,true) if the monitor (was not, was) added.
      • remove

        public boolean remove​(ChannelGet channelGet)
        Description copied from interface: V3Channel
        Remove a ChannelGet
        Specified by:
        remove in interface V3Channel
        Parameters:
        channelGet - The channelGet to remove.
        Returns:
        (false,true) if the channelGet (was not, was) removed.
      • remove

        public boolean remove​(ChannelPut channelPut)
        Description copied from interface: V3Channel
        Remove a ChannelPut
        Specified by:
        remove in interface V3Channel
        Parameters:
        channelPut - The channelPut to remove.
        Returns:
        (false,true) if the channelPut (was not, was) removed.
      • remove

        public boolean remove​(org.epics.pvdata.monitor.Monitor monitor)
        Description copied from interface: V3Channel
        Remove a Monitor
        Specified by:
        remove in interface V3Channel
        Parameters:
        monitor - The monitor to remove.
        Returns:
        (false,true) if the monitor (was not, was) removed.
      • createChannelArray

        public ChannelArray createChannelArray​(ChannelArrayRequester channelArrayRequester,
                                               org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a ChannelArray.
        Specified by:
        createChannelArray in interface Channel
        Parameters:
        channelArrayRequester - The ChannelArrayRequester
        pvRequest - Additional options (e.g. triggering).
        Returns:
        ChannelArray instance.
      • createChannelGet

        public ChannelGet createChannelGet​(ChannelGetRequester channelGetRequester,
                                           org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a ChannelGet. ChannelGetRequester.channelGetReady is called after both client and server are ready for the client to make a get request.
        Specified by:
        createChannelGet in interface Channel
        Parameters:
        channelGetRequester - The interface for notifying when this request is complete and when a channel get completes.
        pvRequest - A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.
        Returns:
        ChannelGet instance.
      • createMonitor

        public org.epics.pvdata.monitor.Monitor createMonitor​(org.epics.pvdata.monitor.MonitorRequester monitorRequester,
                                                              org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a Monitor.
        Specified by:
        createMonitor in interface Channel
        Parameters:
        monitorRequester - The requester.
        pvRequest - A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.
        Returns:
        Monitor instance.
      • createChannelProcess

        public ChannelProcess createChannelProcess​(ChannelProcessRequester channelProcessRequester,
                                                   org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a ChannelProcess. ChannelProcessRequester.channelProcessReady is called after both client and server are ready for the client to make a process request.
        Specified by:
        createChannelProcess in interface Channel
        Parameters:
        channelProcessRequester - The interface for notifying when this request is complete and when channel completes processing.
        pvRequest - Additional options (e.g. triggering).
        Returns:
        ChannelProcess instance.
      • createChannelPut

        public ChannelPut createChannelPut​(ChannelPutRequester channelPutRequester,
                                           org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a ChannelPut. ChannelPutRequester.channelPutReady is called after both client and server are ready for the client to make a put request.
        Specified by:
        createChannelPut in interface Channel
        Parameters:
        channelPutRequester - The interface for notifying when this request is complete and when a channel get completes.
        pvRequest - A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.
        Returns:
        ChannelPut instance.
      • createChannelPutGet

        public ChannelPutGet createChannelPutGet​(ChannelPutGetRequester channelPutGetRequester,
                                                 org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a ChannelPutGet. ChannelPutGetRequester.channelPutGetReady is called after both client and server are ready for the client to make a putGet request.
        Specified by:
        createChannelPutGet in interface Channel
        Parameters:
        channelPutGetRequester - The interface for notifying when this request is complete and when a channel get completes.
        pvRequest - A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.
        Returns:
        ChannelPutGet instance.
      • createChannelRPC

        public ChannelRPC createChannelRPC​(ChannelRPCRequester channelRPCRequester,
                                           org.epics.pvdata.pv.PVStructure pvRequest)
        Description copied from interface: Channel
        Create a ChannelRPC (Remote Procedure Call).
        Specified by:
        createChannelRPC in interface Channel
        Parameters:
        channelRPCRequester - The requester.
        pvRequest - Request options.
        Returns:
        ChannelRPC instance.
      • destroy

        public void destroy()
        Description copied from interface: Channel
        Destroy the channel. It will not honor any further requests.
        Specified by:
        destroy in interface Channel
      • getAccessRights

        public AccessRights getAccessRights​(org.epics.pvdata.pv.PVField pvField)
        Description copied from interface: Channel
        Get the access rights for a field of a PVStructure created via a call to createPVStructure. MATEJ Channel access can store this info via auxInfo.
        Specified by:
        getAccessRights in interface Channel
        Parameters:
        pvField - The field for which access rights is desired.
        Returns:
        The access rights.
      • getChannelName

        public String getChannelName()
        Description copied from interface: Channel
        Get the channel name.
        Specified by:
        getChannelName in interface Channel
        Returns:
        The name.
      • getField

        public void getField​(GetFieldRequester requester,
                             String subField)
        Description copied from interface: Channel
        Get a Field which describes the subField. GetFieldRequester.getDone is called after both client and server have processed the getField request. This is for clients that want to introspect a PVRecord via channel access.
        Specified by:
        getField in interface Channel
        Parameters:
        requester - The requester.
        subField - The name of the subField. If this is null or an empty string the returned Field is for the entire record.
      • getProvider

        public ChannelProvider getProvider()
        Description copied from interface: Channel
        Get the the channel provider of this channel.
        Specified by:
        getProvider in interface Channel
        Returns:
        The channel provider.
      • isConnected

        public boolean isConnected()
        Description copied from interface: Channel
        Is the channel connected?
        Specified by:
        isConnected in interface Channel
        Returns:
        (false,true) means (not, is) connected.
      • getRequesterName

        public String getRequesterName()
        Specified by:
        getRequesterName in interface org.epics.pvdata.pv.Requester
      • message

        public void message​(String message,
                            org.epics.pvdata.pv.MessageType messageType)
        Specified by:
        message in interface org.epics.pvdata.pv.Requester
      • getJCAChannel

        public gov.aps.jca.Channel getJCAChannel()
        Description copied from interface: V3Channel
        Get the JCA Channel.
        Specified by:
        getJCAChannel in interface V3Channel
        Returns:
        The interface.
      • connectionChanged

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