Class ChannelPutGetRequestImpl
- java.lang.Object
-
- org.epics.pvaccess.client.impl.remote.BaseRequestImpl
-
- org.epics.pvaccess.client.impl.remote.ChannelPutGetRequestImpl
-
- All Implemented Interfaces:
ChannelPutGet
,ChannelRequest
,Lockable
,DataResponse
,ResponseRequest
,SubscriptionRequest
,TransportSender
,org.epics.pvdata.misc.Destroyable
public class ChannelPutGetRequestImpl extends BaseRequestImpl implements ChannelPutGet
PVA putGet request.- Version:
- $Id$
- Author:
- Matej Sekoranja
-
-
Field Summary
Fields Modifier and Type Field Description protected ChannelPutGetRequester
callback
Response callback listener.protected org.epics.pvdata.pv.PVStructure
getData
protected org.epics.pvdata.misc.BitSet
getDataBitSet
protected org.epics.pvdata.pv.PVStructure
putData
protected org.epics.pvdata.misc.BitSet
putDataBitSet
protected org.epics.pvdata.pv.PVStructure
putPutData
protected org.epics.pvdata.misc.BitSet
putPutDataBitSet
-
Fields inherited from class org.epics.pvaccess.client.impl.remote.BaseRequestImpl
channel, channelDestroyed, channelNotConnected, context, destroyed, destroyedStatus, invalidBitSetLengthStatus, invalidPutArrayStatus, invalidPutStructureStatus, ioid, lastRequest, lock, NULL_REQUEST, okStatus, otherRequestPendingStatus, pendingRequest, PURE_CANCEL_REQUEST, PURE_DESTROY_REQUEST, pvDataCreate, pvRequest, remotelyDestroyed, requester, statusCreate, subscribed
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChannelPutGetRequestImpl(ChannelImpl channel, ChannelPutGetRequester callback, org.epics.pvdata.pv.PVStructure pvRequest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate()
static ChannelPutGetRequestImpl
create(ChannelImpl channel, ChannelPutGetRequester callback, org.epics.pvdata.pv.PVStructure pvRequest)
void
getGet()
Get the get PVStructure.void
getPut()
Get the put PVStructure.void
putGet(org.epics.pvdata.pv.PVStructure pvPutStructure, org.epics.pvdata.misc.BitSet bitSet)
Issue a put/get request.void
send(ByteBuffer buffer, TransportSendControl control)
Called by transport.-
Methods inherited from class org.epics.pvaccess.client.impl.remote.BaseRequestImpl
cancel, createBitSetFor, destroy, destroy, getChannel, getIOID, getPendingRequest, getRequester, lastRequest, lock, reportStatus, response, resubscribeSubscription, reuseOrCreatePVField, startRequest, stopRequest, timeout, unlock, updateSubscription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.epics.pvaccess.client.ChannelRequest
cancel, getChannel, lastRequest
-
-
-
-
Field Detail
-
callback
protected final ChannelPutGetRequester callback
Response callback listener.
-
putData
protected org.epics.pvdata.pv.PVStructure putData
-
putDataBitSet
protected org.epics.pvdata.misc.BitSet putDataBitSet
-
getData
protected org.epics.pvdata.pv.PVStructure getData
-
getDataBitSet
protected org.epics.pvdata.misc.BitSet getDataBitSet
-
putPutData
protected org.epics.pvdata.pv.PVStructure putPutData
-
putPutDataBitSet
protected org.epics.pvdata.misc.BitSet putPutDataBitSet
-
-
Constructor Detail
-
ChannelPutGetRequestImpl
protected ChannelPutGetRequestImpl(ChannelImpl channel, ChannelPutGetRequester callback, org.epics.pvdata.pv.PVStructure pvRequest)
-
-
Method Detail
-
create
public static ChannelPutGetRequestImpl create(ChannelImpl channel, ChannelPutGetRequester callback, org.epics.pvdata.pv.PVStructure pvRequest)
-
activate
protected void activate()
- Overrides:
activate
in classBaseRequestImpl
-
send
public void send(ByteBuffer buffer, TransportSendControl control)
Description copied from interface:TransportSender
Called by transport. By this call transport gives callee ownership over the buffer. Calls onTransportSendControl
instance must be made from calling thread. Moreover, ownership is valid only for the time of call of this method. NOTE: these limitations allow efficient implementation.- Specified by:
send
in interfaceTransportSender
- Overrides:
send
in classBaseRequestImpl
- Parameters:
buffer
- buffer to send.control
- transport send control instance.
-
putGet
public void putGet(org.epics.pvdata.pv.PVStructure pvPutStructure, org.epics.pvdata.misc.BitSet bitSet)
Description copied from interface:ChannelPutGet
Issue a put/get request. If process was requested when the ChannelPutGet was created this is a put, process, get. Completion status is reported by calling ChannelPutGetRequester.putGetDone() callback.- Specified by:
putGet
in interfaceChannelPutGet
- Parameters:
pvPutStructure
- The PVStructure that holds the putData.bitSet
- putPVStructure bit-set (selects what fields to put).
-
getGet
public void getGet()
Description copied from interface:ChannelPutGet
Get the get PVStructure. The record will not be processed. Completion status is reported by calling ChannelPutGetRequester.getGetDone() callback.- Specified by:
getGet
in interfaceChannelPutGet
-
getPut
public void getPut()
Description copied from interface:ChannelPutGet
Get the put PVStructure. The record will not be processed. Completion status is reported by calling ChannelPutGetRequester.getPutDone() callback.- Specified by:
getPut
in interfaceChannelPutGet
-
-