Package org.epics.gpclient
Class GPClientInstance
- java.lang.Object
-
- org.epics.gpclient.GPClientInstance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the gpclient instance.DataSource
getDefaultDataSource()
The defaultDataSource
used by this client instance.PVReaderConfiguration<org.epics.vtype.VType>
read(String channelName)
Reads the channel with the given name, asking forVType
values.<R> PVReaderConfiguration<R>
read(Expression<R,?> expression)
Create a reader for the given expression.PVConfiguration<org.epics.vtype.VType,Object>
readAndWrite(String channelName)
Reads and writes the channel with the given name, asking forVType
values.<R,W>
PVConfiguration<R,W>readAndWrite(Expression<R,W> expression)
Reads and writes the given expression.Future<org.epics.vtype.VType>
readOnce(String channelName)
Reads the value of the given expression, asking forVType
values.<R> Future<R>
readOnce(Expression<R,?> expression)
Reads the value of the given expression.<W> PVWriterConfiguration<W>
write(Expression<?,W> expression)
Creates a writer for the given expression.
-
-
-
Method Detail
-
readOnce
public Future<org.epics.vtype.VType> readOnce(String channelName)
Reads the value of the given expression, asking forVType
values.- Parameters:
channelName
- the name of the channel- Returns:
- the future value
-
readOnce
public <R> Future<R> readOnce(Expression<R,?> expression)
Reads the value of the given expression.- Type Parameters:
R
- the read type- Parameters:
expression
- the expression to read- Returns:
- the future value
-
read
public PVReaderConfiguration<org.epics.vtype.VType> read(String channelName)
Reads the channel with the given name, asking forVType
values.- Parameters:
channelName
- the name of the channel- Returns:
- the configuration options
-
read
public <R> PVReaderConfiguration<R> read(Expression<R,?> expression)
Create a reader for the given expression.- Type Parameters:
R
- the read type- Parameters:
expression
- the expression to read- Returns:
- the configuration options
-
write
public <W> PVWriterConfiguration<W> write(Expression<?,W> expression)
Creates a writer for the given expression.- Type Parameters:
W
- the write type- Parameters:
expression
- the expression to be written to- Returns:
- the configurations options
-
readAndWrite
public PVConfiguration<org.epics.vtype.VType,Object> readAndWrite(String channelName)
Reads and writes the channel with the given name, asking forVType
values.- Parameters:
channelName
- the name of the channel- Returns:
- the configuration options
-
readAndWrite
public <R,W> PVConfiguration<R,W> readAndWrite(Expression<R,W> expression)
Reads and writes the given expression.- Type Parameters:
R
- the read typeW
- the write type- Parameters:
expression
- the expression to read and write- Returns:
- the configuration options
-
getDefaultDataSource
public DataSource getDefaultDataSource()
The defaultDataSource
used by this client instance.- Returns:
- the default data source; never null
-
close
public void close()
Closes the gpclient instance.
-
-