Class RPCChannel
- java.lang.Object
-
- org.epics.pvaccess.server.rpc.impl.RPCChannel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.epics.pvaccess.client.Channel
Channel.ConnectionState
-
-
Constructor Summary
Constructors Constructor Description RPCChannel(ChannelProvider provider, String channelName, ChannelRequester channelRequester, Service service, ThreadPoolExecutor threadPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelArraycreateChannelArray(ChannelArrayRequester channelArrayRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a ChannelArray.ChannelGetcreateChannelGet(ChannelGetRequester channelGetRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a ChannelGet.ChannelProcesscreateChannelProcess(ChannelProcessRequester channelProcessRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a ChannelProcess.ChannelPutcreateChannelPut(ChannelPutRequester channelPutRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a ChannelPut.ChannelPutGetcreateChannelPutGet(ChannelPutGetRequester channelPutGetRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a ChannelPutGet.ChannelRPCcreateChannelRPC(ChannelRPCRequester channelRPCRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a ChannelRPC (Remote Procedure Call).org.epics.pvdata.monitor.MonitorcreateMonitor(org.epics.pvdata.monitor.MonitorRequester monitorRequester, org.epics.pvdata.pv.PVStructure pvRequest)Create a Monitor.voiddestroy()Destroy the channel.AccessRightsgetAccessRights(org.epics.pvdata.pv.PVField pvField)Get the access rights for a field of a PVStructure created via a call to createPVStructure.StringgetChannelName()Get the channel name.ChannelRequestergetChannelRequester()Get the channel requester.Channel.ConnectionStategetConnectionState()Returns the connection state of this channel.voidgetField(GetFieldRequester requester, String subField)Get a Field which describes the subField.ChannelProvidergetProvider()Get the the channel provider of this channel.StringgetRemoteAddress()Returns the channel's remote address, e.g.StringgetRequesterName()booleanisConnected()Is the channel connected?voidmessage(String message, org.epics.pvdata.pv.MessageType messageType)
-
-
-
Constructor Detail
-
RPCChannel
public RPCChannel(ChannelProvider provider, String channelName, ChannelRequester channelRequester, Service service, ThreadPoolExecutor threadPool)
-
-
Method Detail
-
getProvider
public ChannelProvider getProvider()
Description copied from interface:ChannelGet the the channel provider of this channel.- Specified by:
getProviderin interfaceChannel- Returns:
- The channel provider.
-
getChannelName
public String getChannelName()
Description copied from interface:ChannelGet the channel name.- Specified by:
getChannelNamein interfaceChannel- Returns:
- The name.
-
getChannelRequester
public ChannelRequester getChannelRequester()
Description copied from interface:ChannelGet the channel requester.- Specified by:
getChannelRequesterin interfaceChannel- Returns:
- The requester.
-
getRemoteAddress
public String getRemoteAddress()
Description copied from interface:ChannelReturns the channel's remote address, e.g. "/192.168.1.101:5064" or "#C0 S1".- Specified by:
getRemoteAddressin interfaceChannel- Returns:
- the channel's remote address.
-
destroy
public void destroy()
Description copied from interface:ChannelDestroy the channel. It will not honor any further requests.
-
isConnected
public boolean isConnected()
Description copied from interface:ChannelIs the channel connected?- Specified by:
isConnectedin interfaceChannel- Returns:
- (false,true) means (not, is) connected.
-
getConnectionState
public Channel.ConnectionState getConnectionState()
Description copied from interface:ChannelReturns the connection state of this channel.- Specified by:
getConnectionStatein interfaceChannel- Returns:
- the
ConnectionStatevalue.
-
createChannelRPC
public ChannelRPC createChannelRPC(ChannelRPCRequester channelRPCRequester, org.epics.pvdata.pv.PVStructure pvRequest)
Description copied from interface:ChannelCreate a ChannelRPC (Remote Procedure Call).- Specified by:
createChannelRPCin interfaceChannel- Parameters:
channelRPCRequester- The requester.pvRequest- Request options.- Returns:
ChannelRPCinstance.
-
getAccessRights
public AccessRights getAccessRights(org.epics.pvdata.pv.PVField pvField)
Description copied from interface:ChannelGet the access rights for a field of a PVStructure created via a call to createPVStructure. MATEJ Channel access can store this info via auxInfo.- Specified by:
getAccessRightsin interfaceChannel- Parameters:
pvField- The field for which access rights is desired.- Returns:
- The access rights.
-
getField
public void getField(GetFieldRequester requester, String subField)
Description copied from interface:ChannelGet a Field which describes the subField. GetFieldRequester.getDone is called after both client and server have processed the getField request. This is for clients that want to introspect a PVRecord via channel access.
-
createChannelProcess
public ChannelProcess createChannelProcess(ChannelProcessRequester channelProcessRequester, org.epics.pvdata.pv.PVStructure pvRequest)
Description copied from interface:ChannelCreate a ChannelProcess. ChannelProcessRequester.channelProcessReady is called after both client and server are ready for the client to make a process request.- Specified by:
createChannelProcessin interfaceChannel- Parameters:
channelProcessRequester- The interface for notifying when this request is complete and when channel completes processing.pvRequest- Additional options (e.g. triggering).- Returns:
ChannelProcessinstance.
-
createChannelGet
public ChannelGet createChannelGet(ChannelGetRequester channelGetRequester, org.epics.pvdata.pv.PVStructure pvRequest)
Description copied from interface:ChannelCreate a ChannelGet. ChannelGetRequester.channelGetReady is called after both client and server are ready for the client to make a get request.- Specified by:
createChannelGetin interfaceChannel- Parameters:
channelGetRequester- The interface for notifying when this request is complete and when a channel get completes.pvRequest- A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.- Returns:
ChannelGetinstance.
-
createChannelPut
public ChannelPut createChannelPut(ChannelPutRequester channelPutRequester, org.epics.pvdata.pv.PVStructure pvRequest)
Description copied from interface:ChannelCreate a ChannelPut. ChannelPutRequester.channelPutReady is called after both client and server are ready for the client to make a put request.- Specified by:
createChannelPutin interfaceChannel- Parameters:
channelPutRequester- The interface for notifying when this request is complete and when a channel get completes.pvRequest- A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.- Returns:
ChannelPutinstance.
-
createChannelPutGet
public ChannelPutGet createChannelPutGet(ChannelPutGetRequester channelPutGetRequester, org.epics.pvdata.pv.PVStructure pvRequest)
Description copied from interface:ChannelCreate a ChannelPutGet. ChannelPutGetRequester.channelPutGetReady is called after both client and server are ready for the client to make a putGet request.- Specified by:
createChannelPutGetin interfaceChannel- Parameters:
channelPutGetRequester- The interface for notifying when this request is complete and when a channel get completes.pvRequest- A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.- Returns:
ChannelPutGetinstance.
-
createMonitor
public org.epics.pvdata.monitor.Monitor createMonitor(org.epics.pvdata.monitor.MonitorRequester monitorRequester, org.epics.pvdata.pv.PVStructure pvRequest)Description copied from interface:ChannelCreate a Monitor.- Specified by:
createMonitorin interfaceChannel- Parameters:
monitorRequester- The requester.pvRequest- A structure describing the desired set of fields from the remote PVRecord. This has the same form as a pvRequest to PVCopyFactory.create.- Returns:
Monitorinstance.
-
createChannelArray
public ChannelArray createChannelArray(ChannelArrayRequester channelArrayRequester, org.epics.pvdata.pv.PVStructure pvRequest)
Description copied from interface:ChannelCreate a ChannelArray.- Specified by:
createChannelArrayin interfaceChannel- Parameters:
channelArrayRequester- The ChannelArrayRequesterpvRequest- Additional options (e.g. triggering).- Returns:
ChannelArrayinstance.
-
getRequesterName
public String getRequesterName()
- Specified by:
getRequesterNamein interfaceorg.epics.pvdata.pv.Requester
-
message
public void message(String message, org.epics.pvdata.pv.MessageType messageType)
- Specified by:
messagein interfaceorg.epics.pvdata.pv.Requester
-
-