Package org.epics.ca
Class BaseV3ChannelPut
- java.lang.Object
-
- org.epics.ca.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 Summary
Constructors Constructor Description BaseV3ChannelPut(ChannelPutRequester channelPutRequester, 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 the current data.ChannelgetChannel()Get a channel instance this request belongs to.voidgetCompleted(gov.aps.jca.event.GetEvent getEvent)StringgetRequesterName()protected voidinitializePut()voidlastRequest()Announce next request as last request.voidlock()voidmessage(String message, org.epics.pvdata.pv.MessageType messageType)voidput(org.epics.pvdata.pv.PVStructure pvPutStructure, org.epics.pvdata.misc.BitSet bitSet)Put data to a channel.voidputCompleted(gov.aps.jca.event.PutEvent event)voidunlock()
-
-
-
Constructor Detail
-
BaseV3ChannelPut
public BaseV3ChannelPut(ChannelPutRequester channelPutRequester, V3Channel v3Channel, org.epics.pvdata.pv.PVStructure pvRequest)
Constructor.- Parameters:
channelPutRequester- The channelPutRequester.v3Channel- The V3ChannelpvRequest- The request structure.
-
-
Method Detail
-
initializePut
protected void initializePut()
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.epics.pvdata.misc.Destroyable
-
get
public void get()
Description copied from interface:ChannelPutGet the current data.- Specified by:
getin interfaceChannelPut
-
getCompleted
public void getCompleted(gov.aps.jca.event.GetEvent getEvent)
- Specified by:
getCompletedin interfacegov.aps.jca.event.GetListener
-
put
public void put(org.epics.pvdata.pv.PVStructure pvPutStructure, org.epics.pvdata.misc.BitSet bitSet)Description copied from interface:ChannelPutPut data to a channel. Completion status is reported by calling ChannelPutRequester.putDone() callback.- Specified by:
putin interfaceChannelPut- 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:
putCompletedin interfacegov.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:
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.
-
-