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 ChannelPutGetRequestercallbackResponse callback listener.protected org.epics.pvdata.pv.PVStructuregetDataprotected org.epics.pvdata.misc.BitSetgetDataBitSetprotected org.epics.pvdata.pv.PVStructureputDataprotected org.epics.pvdata.misc.BitSetputDataBitSetprotected org.epics.pvdata.pv.PVStructureputPutDataprotected org.epics.pvdata.misc.BitSetputPutDataBitSet-
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 protectedChannelPutGetRequestImpl(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 voidactivate()static ChannelPutGetRequestImplcreate(ChannelImpl channel, ChannelPutGetRequester callback, org.epics.pvdata.pv.PVStructure pvRequest)voidgetGet()Get the get PVStructure.voidgetPut()Get the put PVStructure.voidputGet(org.epics.pvdata.pv.PVStructure pvPutStructure, org.epics.pvdata.misc.BitSet bitSet)Issue a put/get request.voidsend(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:
activatein classBaseRequestImpl
-
send
public void send(ByteBuffer buffer, TransportSendControl control)
Description copied from interface:TransportSenderCalled by transport. By this call transport gives callee ownership over the buffer. Calls onTransportSendControlinstance 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:
sendin interfaceTransportSender- Overrides:
sendin 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:ChannelPutGetIssue 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:
putGetin 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:ChannelPutGetGet the get PVStructure. The record will not be processed. Completion status is reported by calling ChannelPutGetRequester.getGetDone() callback.- Specified by:
getGetin interfaceChannelPutGet
-
getPut
public void getPut()
Description copied from interface:ChannelPutGetGet the put PVStructure. The record will not be processed. Completion status is reported by calling ChannelPutGetRequester.getPutDone() callback.- Specified by:
getPutin interfaceChannelPutGet
-
-