public class JCADataSource extends DataSource
Type support can be configured by passing a custom JCATypeSupport
to the constructor.
Modifier | Constructor and Description |
---|---|
|
JCADataSource()
Creates a new data source using pure Java implementation and all the
defaults described in
JCADataSourceBuilder . |
|
JCADataSource(gov.aps.jca.Context jcaContext,
int monitorMask)
Deprecated.
|
|
JCADataSource(gov.aps.jca.Context jcaContext,
int monitorMask,
JCATypeSupport typeSupport)
Deprecated.
|
|
JCADataSource(gov.aps.jca.Context jcaContext,
int monitorMask,
JCATypeSupport typeSupport,
boolean dbePropertySupported,
boolean varArraySupported)
Deprecated.
|
protected |
JCADataSource(JCADataSourceBuilder builder) |
|
JCADataSource(String className,
int monitorMask)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the DataSource and the resources associated with it.
|
protected ChannelHandler |
createChannel(String channelName)
Creates a channel handler for the given name.
|
gov.aps.jca.Context |
getContext()
The context used by the data source.
|
int |
getMonitorMask()
The monitor mask used for this data source.
|
boolean |
isDbePropertySupported()
Whether the metadata monitor should be established.
|
boolean |
isHonorZeroPrecision()
True if zero precision should be honored, or disregarded.
|
boolean |
isRtypValueOnly()
True if should only ask value for RTYP fields.
|
boolean |
isVarArraySupported()
True whether the context can use variable arrays (all
array monitor request will have an element count of 0).
|
static boolean |
isVarArraySupported(gov.aps.jca.Context context)
Deprecated.
|
channelHandlerLookupName, channelHandlerRegisterName, connectRead, connectWrite, disconnectRead, disconnectWrite, getChannels, isWriteable, write
public JCADataSource()
JCADataSourceBuilder
.@Deprecated public JCADataSource(gov.aps.jca.Context jcaContext, int monitorMask)
JCADataSourceBuilder
jcaContext
- the context to be usedmonitorMask
- Monitor.VALUE, ...@Deprecated public JCADataSource(String className, int monitorMask)
JCADataSourceBuilder
className
- JCALibrary.CHANNEL_ACCESS_JAVA, JCALibrary.JNI_THREAD_SAFE, ...monitorMask
- Monitor.VALUE, ...@Deprecated public JCADataSource(gov.aps.jca.Context jcaContext, int monitorMask, JCATypeSupport typeSupport)
JCADataSourceBuilder
jcaContext
- the context to be usedmonitorMask
- Monitor.VALUE, ...typeSupport
- type support to be used@Deprecated public JCADataSource(gov.aps.jca.Context jcaContext, int monitorMask, JCATypeSupport typeSupport, boolean dbePropertySupported, boolean varArraySupported)
JCADataSourceBuilder
jcaContext
- the context to be usedmonitorMask
- Monitor.VALUE, ...typeSupport
- type support to be useddbePropertySupported
- whether metadata monitors should be usedvarArraySupported
- true if var array should be usedprotected JCADataSource(JCADataSourceBuilder builder)
public void close()
DataSource
close
in class DataSource
public gov.aps.jca.Context getContext()
public int getMonitorMask()
public boolean isDbePropertySupported()
protected ChannelHandler createChannel(String channelName)
DataSource
createChannel
in class DataSource
channelName
- the name for a new channelpublic boolean isVarArraySupported()
public boolean isRtypValueOnly()
public boolean isHonorZeroPrecision()
@Deprecated public static boolean isVarArraySupported(gov.aps.jca.Context context)
context
- a JCA ContextCopyright © 2010–2015. All rights reserved.