Package org.epics.ca
Class BaseV3Channel
- java.lang.Object
-
- org.epics.ca.BaseV3Channel
-
- All Implemented Interfaces:
gov.aps.jca.event.ConnectionListener,EventListener,V3Channel,Channel,ChannelFind,org.epics.pvdata.pv.Requester
public class BaseV3Channel extends Object implements ChannelFind, Channel, V3Channel, gov.aps.jca.event.ConnectionListener
Base class that implements V3Channel.- Author:
- mrk
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.epics.pvaccess.client.Channel
Channel.ConnectionState
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(ChannelGet channelGet)Add a channelGetbooleanadd(ChannelPut channelPut)Add a channelPutbooleanadd(org.epics.pvdata.monitor.Monitor monitor)Add a monitorvoidcancel()voidconnectCaV3()voidconnectionChanged(gov.aps.jca.event.ConnectionEvent arg0)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.ChannelProvidergetChannelProvider()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.gov.aps.jca.ChannelgetJCAChannel()Get the JCA Channel.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)booleanremove(ChannelGet channelGet)Remove a ChannelGetbooleanremove(ChannelPut channelPut)Remove a ChannelPutbooleanremove(org.epics.pvdata.monitor.Monitor monitor)Remove a Monitor
-
-
-
Method Detail
-
connectCaV3
public void connectCaV3()
-
cancel
public void cancel()
- Specified by:
cancelin interfaceChannelFind
-
getChannelProvider
public ChannelProvider getChannelProvider()
- Specified by:
getChannelProviderin interfaceChannelFind
-
getConnectionState
public Channel.ConnectionState getConnectionState()
Description copied from interface:ChannelReturns the connection state of this channel.- Specified by:
getConnectionStatein interfaceChannel- Returns:
- the
ConnectionStatevalue.
-
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.
-
add
public boolean add(ChannelGet channelGet)
Description copied from interface:V3ChannelAdd a channelGet
-
add
public boolean add(ChannelPut channelPut)
Description copied from interface:V3ChannelAdd a channelPut
-
add
public boolean add(org.epics.pvdata.monitor.Monitor monitor)
Description copied from interface:V3ChannelAdd a monitor
-
remove
public boolean remove(ChannelGet channelGet)
Description copied from interface:V3ChannelRemove a ChannelGet
-
remove
public boolean remove(ChannelPut channelPut)
Description copied from interface:V3ChannelRemove a ChannelPut
-
remove
public boolean remove(org.epics.pvdata.monitor.Monitor monitor)
Description copied from interface:V3ChannelRemove a Monitor
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
destroy
public void destroy()
Description copied from interface:ChannelDestroy the channel. It will not honor any further requests.
-
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.
-
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.
-
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.
-
getProvider
public ChannelProvider getProvider()
Description copied from interface:ChannelGet the the channel provider of this channel.- Specified by:
getProviderin interfaceChannel- Returns:
- The channel provider.
-
isConnected
public boolean isConnected()
Description copied from interface:ChannelIs the channel connected?- Specified by:
isConnectedin interfaceChannel- Returns:
- (false,true) means (not, is) connected.
-
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
-
getJCAChannel
public gov.aps.jca.Channel getJCAChannel()
Description copied from interface:V3ChannelGet the JCA Channel.- Specified by:
getJCAChannelin interfaceV3Channel- Returns:
- The interface.
-
connectionChanged
public void connectionChanged(gov.aps.jca.event.ConnectionEvent arg0)
- Specified by:
connectionChangedin interfacegov.aps.jca.event.ConnectionListener
-
-