public class PvaClient extends Object implements org.epics.pvdata.pv.Requester
| Constructor and Description |
|---|
PvaClient() |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheSize()
Get the number of cached gets and puts.
|
PvaClientChannel |
channel(String channelName)
Get a cached channel or create and connect to a new channel.
|
PvaClientChannel |
channel(String channelName,
String providerName)
Get a cached channel or create and connect to a new channel.
|
PvaClientChannel |
channel(String channelName,
String providerName,
double timeOut)
Get a cached channel or create and connect to a new channel.
|
void |
clearRequester()
Clear the requester.
|
PvaClientChannel |
createChannel(String channelName)
Create an PvaClientChannel.
|
PvaClientChannel |
createChannel(String channelName,
String providerName)
Create an PvaClientChannel with the specified provider.
|
void |
destroy()
Destroy all cached channels.
|
static PvaClient |
get()
Get the single instance of PvaClient.
|
static PvaClient |
get(String providerNames)
Get the single instance of PvaClient.
|
static boolean |
getDebug()
Is debug set?
|
String |
getRequesterName() |
void |
message(String message,
org.epics.pvdata.pv.MessageType messageType) |
static void |
setDebug(boolean value)
Should debug info be shown?
|
void |
setRequester(org.epics.pvdata.pv.Requester requester)
Set a requester.
|
String |
showCache()
Show the list of cached gets and puts.
|
public static PvaClient get(String providerNames)
providerNames - - space separated list of provider names.public static PvaClient get()
public void destroy()
public 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 PvaClientChannel channel(String channelName)
channelName - The channelName.RuntimeException - if connection fails.public PvaClientChannel channel(String channelName, String providerName)
channelName - The channelName.providerName - The provider name.RuntimeException - if connection fails.public PvaClientChannel channel(String channelName, String providerName, double timeOut)
channelName - The channelName.providerName - The provider name.timeOut - The number of seconds to wait for connection. 0.0 means forever.RuntimeException - if connection fails.public PvaClientChannel createChannel(String channelName)
channelName - The channelName.RuntimeException - if connection fails.public PvaClientChannel createChannel(String channelName, String providerName)
channelName - The channelName.providerName - The provider.RuntimeException - if connection fails.public void setRequester(org.epics.pvdata.pv.Requester requester)
requester - The requester.public void clearRequester()
public String showCache()
public int cacheSize()
public static void setDebug(boolean value)
value - true or falsepublic static boolean getDebug()
Copyright © 2018 EPICS. All rights reserved.