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 void
cancel()
Cancel any pending request.void
connectionChanged(gov.aps.jca.event.ConnectionEvent event)
void
destroy()
void
get()
Get the current data.Channel
getChannel()
Get a channel instance this request belongs to.void
getCompleted(gov.aps.jca.event.GetEvent getEvent)
String
getRequesterName()
protected void
initializePut()
void
lastRequest()
Announce next request as last request.void
lock()
void
message(String message, org.epics.pvdata.pv.MessageType messageType)
void
put(org.epics.pvdata.pv.PVStructure pvPutStructure, org.epics.pvdata.misc.BitSet bitSet)
Put data to a channel.void
putCompleted(gov.aps.jca.event.PutEvent event)
void
unlock()
-
-
-
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:
destroy
in interfaceorg.epics.pvdata.misc.Destroyable
-
get
public void get()
Description copied from interface:ChannelPut
Get the current data.- Specified by:
get
in interfaceChannelPut
-
getCompleted
public void getCompleted(gov.aps.jca.event.GetEvent getEvent)
- Specified by:
getCompleted
in 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:ChannelPut
Put data to a channel. Completion status is reported by calling ChannelPutRequester.putDone() callback.- Specified by:
put
in 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:
putCompleted
in 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:
connectionChanged
in interfacegov.aps.jca.event.ConnectionListener
-
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 interfaceChannelRequest
-
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 interfaceChannelRequest
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelRequest
Get a channel instance this request belongs to.- Specified by:
getChannel
in interfaceChannelRequest
- Returns:
- the channel instance.
-
-