public final class JCADataSourceConfiguration extends DataSourceConfiguration<JCADataSource>
JCADataSource
. This object is mutable and not
thread-safe.Constructor and Description |
---|
JCADataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
JCADataSourceConfiguration |
addContextProperty(String name,
String value)
Adds a new property that is passed directly to the JCALibrary when
creating the context.
|
JCADataSource |
create()
Creates a new JCADataSource with the current configuration.
|
JCADataSourceConfiguration |
dbePropertySupported(boolean dbePropertySupported)
Whether a separate monitor should be used for listening to metadata
changes.
|
JCADataSourceConfiguration |
honorZeroPrecision(boolean honorZeroPrecision)
If true, the formatter returned by the VType will show
no decimal digits (assumes it was configured);
if false, it will return all the digit (assumes it wasn't configured).
|
JCADataSourceConfiguration |
jcaContext(gov.aps.jca.Context jcaContext)
The jca context to use.
|
JCADataSourceConfiguration |
jcaContextClass(String className)
The class name for the implementation of JCA.
|
JCADataSourceConfiguration |
monitorMask(int monitorMask)
The mask used for the monitor notifications.
|
JCADataSourceConfiguration |
read(InputStream input)
Reads the configuration from the given stream and returns
an object with the new configuration.
|
JCADataSourceConfiguration |
rtypValueOnly(boolean rtypValueOnly)
If true, for fields that match ".*\.RTYP.*" only the value will be
read; alarm and time will be created at client side.
|
JCADataSourceConfiguration |
typeSupport(JCATypeSupport typeSupport)
Changes the way JCA DBR types are mapped to types supported in pvamanger.
|
JCADataSourceConfiguration |
varArraySupported(boolean varArraySupported)
If true, monitors will setup using "0" length, which will make
the server a variable length array in return (if supported) or a "0"
length array (if not supported).
|
public JCADataSourceConfiguration read(InputStream input)
DataSourceConfiguration
NOTE: whether this object is modified and returned, or a new object is returned, is currently unspecified.
read
in class DataSourceConfiguration<JCADataSource>
input
- the configuration file to be readpublic JCADataSourceConfiguration jcaContextClass(String className)
Default is JCALibrary.CHANNEL_ACCESS_JAVA
.
className
- the class name of the jca implementationpublic JCADataSourceConfiguration jcaContext(gov.aps.jca.Context jcaContext)
By default, will be automatically
created from the jcaContextClass(java.lang.String)
.
jcaContext
- the contextpublic JCADataSourceConfiguration monitorMask(int monitorMask)
Monitor.VALUE
, Monitor.ALARM
, ...
Default is Monitor.VALUE | Monitor.ALARM
.
monitorMask
- the monitor maskpublic JCADataSourceConfiguration typeSupport(JCATypeSupport typeSupport)
Default includes support for the VTypes (i.e. JCAVTypeAdapterSet
).
typeSupport
- the custom type supportpublic JCADataSourceConfiguration dbePropertySupported(boolean dbePropertySupported)
Default is false.
dbePropertySupported
- if true, metadata changes will trigger notificationpublic JCADataSourceConfiguration varArraySupported(boolean varArraySupported)
By default it tries to auto-detected whether the client library implements the proper checks.
varArraySupported
- true will enablepublic JCADataSourceConfiguration rtypValueOnly(boolean rtypValueOnly)
Default is false.
rtypValueOnly
- true will enablepublic JCADataSourceConfiguration honorZeroPrecision(boolean honorZeroPrecision)
Default is true.
honorZeroPrecision
- whether the formatter should treat 0 precision as meaningfulpublic JCADataSourceConfiguration addContextProperty(String name, String value)
name
- the name of the propertyvalue
- the value of the propertypublic JCADataSource create()
create
in class DataSourceConfiguration<JCADataSource>
Copyright © 2015. All rights reserved.