Package org.epics.ca
Class BaseV3ChannelGet
- java.lang.Object
-
- org.epics.ca.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 Summary
Constructors Constructor Description BaseV3ChannelGet(ChannelGetRequester channelGetRequester, V3Channel v3Channel, org.epics.pvdata.pv.PVStructure pvRequest)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel any pending request.voidconnectionChanged(gov.aps.jca.event.ConnectionEvent event)voiddestroy()voidget()Get data from the channel.ChannelgetChannel()Get a channel instance this request belongs to.voidgetCompleted(gov.aps.jca.event.GetEvent getEvent)StringgetRequesterName()voidlastRequest()Announce next request as last request.voidlock()voidmessage(String message, org.epics.pvdata.pv.MessageType messageType)voidunlock()
-
-
-
Constructor Detail
-
BaseV3ChannelGet
public BaseV3ChannelGet(ChannelGetRequester channelGetRequester, V3Channel v3Channel, org.epics.pvdata.pv.PVStructure pvRequest)
Constructor.- Parameters:
channelGetRequester- The channelGetRequester.v3Channel- The V3ChannelpvRequest- The request structure.
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.epics.pvdata.misc.Destroyable
-
get
public void get()
Description copied from interface:ChannelGetGet data from the channel. Completion status is reported by calling ChannelGetRequester.getDone() callback.- Specified by:
getin interfaceChannelGet
-
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:
getCompletedin interfacegov.aps.jca.event.GetListener
-
connectionChanged
public void connectionChanged(gov.aps.jca.event.ConnectionEvent event)
- Specified by:
connectionChangedin interfacegov.aps.jca.event.ConnectionListener
-
cancel
public void cancel()
Description copied from interface:ChannelRequestCancel 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:
cancelin interfaceChannelRequest
-
lastRequest
public void lastRequest()
Description copied from interface:ChannelRequestAnnounce 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:
lastRequestin interfaceChannelRequest
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelRequestGet a channel instance this request belongs to.- Specified by:
getChannelin interfaceChannelRequest- Returns:
- the channel instance.
-
-