public class PvaClientChannel extends Object implements org.epics.pvaccess.client.ChannelRequester, org.epics.pvdata.pv.Requester
| Modifier and Type | Method and Description |
|---|---|
int |
cacheSize()
Get the number of cached gets and puts.
|
void |
channelCreated(org.epics.pvdata.pv.Status status,
org.epics.pvaccess.client.Channel channel) |
void |
channelStateChange(org.epics.pvaccess.client.Channel channel,
org.epics.pvaccess.client.Channel.ConnectionState connectionState) |
void |
clearRequester()
Clear user callback for change of state.
|
void |
connect()
connect with timeout set to 5 seconds.
|
void |
connect(double timeout)
Connect to the channel.
|
PvaClientArray |
createArray()
Call the next method with request = "field(value)";
|
PvaClientArray |
createArray(org.epics.pvdata.pv.PVStructure pvRequest)
Create a pvaClientArray.
|
PvaClientArray |
createArray(String request)
First call createRequest as implemented by pvDataJava and then calls the next method.
|
PvaClientField |
createField()
Calls the next method with subField = "";
|
PvaClientField |
createField(String subField)
Create an PvaClientField for the specified subField.
|
PvaClientGet |
createGet()
Call the next method with request = "value,alarm,timeStamp"
|
PvaClientGet |
createGet(org.epics.pvdata.pv.PVStructure pvRequest)
Creates a pvaClientGet.
|
PvaClientGet |
createGet(String request)
First call createRequest as implemented by pvDataJava and then calls the next method.
|
PvaClientMonitor |
createMonitor()
Call the next method with request = "field(value.alarm,timeStamp)"
|
PvaClientMonitor |
createMonitor(org.epics.pvdata.pv.PVStructure pvRequest)
Create an PvaClientMonitor.
|
PvaClientMonitor |
createMonitor(String request)
First call createRequest as implemented by pvDataJava and then calls the next method.
|
PvaClientProcess |
createProcess()
Calls the next method with request = "";
|
PvaClientProcess |
createProcess(org.epics.pvdata.pv.PVStructure pvRequest)
Creates a PvaClientProcess.
|
PvaClientProcess |
createProcess(String request)
First call createRequest as implemented by pvDataJava and then calls the next method.
|
PvaClientPut |
createPut()
Call the next method with request = "field(value)"
|
PvaClientPut |
createPut(org.epics.pvdata.pv.PVStructure pvRequest)
Create an PvaClientPut.
|
PvaClientPut |
createPut(String request)
First call createRequest as implemented by pvDataJava and then calls the next method.
|
PvaClientPutGet |
createPutGet()
Call the next method with request = "record[process=true]putField(argument)getField(result)".
|
PvaClientPutGet |
createPutGet(org.epics.pvdata.pv.PVStructure pvRequest)
Create an PvaClientPutGet.
|
PvaClientPutGet |
createPutGet(String request)
First call createRequest as implemented by pvDataJava and then calls the next method.
|
PvaClientRPC |
createRPC()
Create a PvaClientRPC.
|
PvaClientRPC |
createRPC(org.epics.pvdata.pv.PVStructure pvRequest)
Create a PvaClientRPC.
|
void |
destroy()
Destroy the pvAccess connection and all cached gets and puts.
|
PvaClientGet |
get()
Call the next method with request = "value,alarm,timeStamp"
|
PvaClientGet |
get(String request)
Get a cached PvaClientGet or create and connect to a new PvaClientGet.
|
org.epics.pvaccess.client.Channel |
getChannel()
Get the Channel to which pvaClientChannel is connected.
|
String |
getChannelName()
Get the name of the channel to which pvaClientChannel is connected.
|
String |
getRequesterName() |
void |
issueConnect()
Issue a connect request and return immediately.
|
void |
message(String message,
org.epics.pvdata.pv.MessageType messageType) |
PvaClientMonitor |
monitor()
Call the next method with request = "value,alarm,timeStamp"
|
PvaClientMonitor |
monitor(PvaClientMonitorRequester pvaClientMonitorRequester)
Call the next method with request = "value,alarm,timeStamp"
|
PvaClientMonitor |
monitor(PvaClientMonitorRequester pvaClientMonitorRequester,
PvaClientUnlistenRequester pvaClientListenerRequester)
Call the next method with request = "value,alarm,timeStamp"
|
PvaClientMonitor |
monitor(String request)
Get a cached PvaClientMonitor or create and connect to a new PvaClientMonitor.
|
PvaClientMonitor |
monitor(String request,
PvaClientMonitorRequester pvaClientMonitorRequester)
Create and connect to a new PvaClientMonitor.
|
PvaClientMonitor |
monitor(String request,
PvaClientMonitorRequester pvaClientMonitorRequester,
PvaClientUnlistenRequester pvaClientListenerRequester)
Create and connect to a new PvaClientMonitor.
|
PvaClientPut |
put()
Call the next method with request = "field(value)"
|
PvaClientPut |
put(String request)
Get a cached PvaClientPut or create and connect to a new PvaClientPut.
|
org.epics.pvdata.pv.PVStructure |
rpc(org.epics.pvdata.pv.PVStructure pvArgument)
Issue a channelRPC request
|
org.epics.pvdata.pv.PVStructure |
rpc(org.epics.pvdata.pv.PVStructure pvRequest,
org.epics.pvdata.pv.PVStructure pvArgument)
Issue a channelRPC request
|
void |
setStateChangeRequester(PvaClientChannelStateChangeRequester stateChangeRequester)
Set a user callback for change of state.
|
String |
showCache()
Show the list of cached gets and puts.
|
org.epics.pvdata.pv.Status |
waitConnect()
Wait until the connection completes or for timeout.
|
org.epics.pvdata.pv.Status |
waitConnect(double timeout)
Wait until the connection completes or for timeout.
|
public void channelCreated(org.epics.pvdata.pv.Status status,
org.epics.pvaccess.client.Channel channel)
channelCreated in interface org.epics.pvaccess.client.ChannelRequesterpublic void channelStateChange(org.epics.pvaccess.client.Channel channel,
org.epics.pvaccess.client.Channel.ConnectionState connectionState)
channelStateChange in interface org.epics.pvaccess.client.ChannelRequesterpublic String getRequesterName()
getRequesterName in interface org.epics.pvdata.pv.Requesterpublic void message(String message, org.epics.pvdata.pv.MessageType messageType)
message in interface org.epics.pvdata.pv.Requesterpublic void destroy()
public String getChannelName()
public org.epics.pvaccess.client.Channel getChannel()
public void setStateChangeRequester(PvaClientChannelStateChangeRequester stateChangeRequester)
stateChangeRequester - The user supplied requester.public void clearRequester()
public void connect()
public void connect(double timeout)
timeout - The time to wait for connecting to the channel.
A value of 0.0 means forever.RuntimeException - if connection fails.public void issueConnect()
public org.epics.pvdata.pv.Status waitConnect()
public org.epics.pvdata.pv.Status waitConnect(double timeout)
timeout - The time in second to wait.
A value of 0 means forever.public PvaClientField createField()
public PvaClientField createField(String subField)
subField - The syntax for subField is defined in package org.epics.pvdata.copypublic PvaClientProcess createProcess()
RuntimeException - if create fails.public PvaClientProcess createProcess(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientProcess createProcess(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The syntax of pvRequest is described in package org.epics.pvdata.copy.RuntimeException - if create fails.public PvaClientGet get()
RuntimeException - if create fails.public PvaClientGet get(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientGet createGet()
RuntimeException - if create fails.public PvaClientGet createGet(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientGet createGet(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The syntax of pvRequest is described in package org.epics.pvdata.copy.RuntimeException - if create fails.public PvaClientPut put()
RuntimeException - if create fails.public PvaClientPut put(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientPut createPut()
RuntimeException - if create fails.public PvaClientPut createPut(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientPut createPut(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The syntax of pvRequest is described in package org.epics.pvdata.copy.RuntimeException - if create fails.public PvaClientPutGet createPutGet()
RuntimeException - if create fails.public PvaClientPutGet createPutGet(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientPutGet createPutGet(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The syntax of pvRequest is described in package org.epics.pvdata.copy.RuntimeException - if create fails.public PvaClientArray createArray()
RuntimeException - if create fails.public PvaClientArray createArray(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientArray createArray(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The syntax of pvRequest is described in package org.epics.pvdata.copy.RuntimeException - if create fails.public PvaClientMonitor monitor()
RuntimeException - if create fails.public PvaClientMonitor monitor(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientMonitor monitor(PvaClientMonitorRequester pvaClientMonitorRequester)
pvaClientMonitorRequester - The client callback.RuntimeException - if create fails.public PvaClientMonitor monitor(String request, PvaClientMonitorRequester pvaClientMonitorRequester)
request - The request as described in package org.epics.pvdata.copypvaClientMonitorRequester - The client callback.RuntimeException - if create fails.public PvaClientMonitor monitor(PvaClientMonitorRequester pvaClientMonitorRequester, PvaClientUnlistenRequester pvaClientListenerRequester)
pvaClientMonitorRequester - The client callback.pvaClientListenerRequester - The client callback.RuntimeException - if create fails.public PvaClientMonitor monitor(String request, PvaClientMonitorRequester pvaClientMonitorRequester, PvaClientUnlistenRequester pvaClientListenerRequester)
request - The request as described in package org.epics.pvdata.copypvaClientMonitorRequester - The client callback.pvaClientListenerRequester - The client callback.RuntimeException - if create fails.public PvaClientMonitor createMonitor()
RuntimeException - if create fails.public PvaClientMonitor createMonitor(String request)
request - The request as described in package org.epics.pvdata.copyRuntimeException - if create fails.public PvaClientMonitor createMonitor(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The syntax of pvRequest is described in package org.epics.pvdata.copy.RuntimeException - if create fails.public org.epics.pvdata.pv.PVStructure rpc(org.epics.pvdata.pv.PVStructure pvRequest,
org.epics.pvdata.pv.PVStructure pvArgument)
pvRequest - The pvRequest that is passed to createRPC.pvArgument - The argument for a request.public org.epics.pvdata.pv.PVStructure rpc(org.epics.pvdata.pv.PVStructure pvArgument)
pvArgument - The argument for the request.public PvaClientRPC createRPC()
public PvaClientRPC createRPC(org.epics.pvdata.pv.PVStructure pvRequest)
pvRequest - The pvRequest that must have the same interface
as a pvArgument that is passed to an rpc request.public String showCache()
public int cacheSize()
Copyright © 2018 EPICS. All rights reserved.