public class JCADataSource extends DataSource
Type support can be configured by passing a custom JCATypeSupport
to the constructor.
Constructor and Description |
---|
JCADataSource()
Creates a new data source using pure Java implementation
|
JCADataSource(gov.aps.jca.Context jcaContext,
int monitorMask)
Creates a new data source using the given context.
|
JCADataSource(gov.aps.jca.Context jcaContext,
int monitorMask,
JCATypeSupport typeSupport)
Creates a new data source using the given context.
|
JCADataSource(gov.aps.jca.Context jcaContext,
int monitorMask,
JCATypeSupport typeSupport,
boolean dbePropertySupported,
boolean varArraySupported)
Creates a new data source using the given context.
|
JCADataSource(String className,
int monitorMask)
Creates a new data source using the className to create the context.
|
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 |
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)
Determines whether the context supports variable arrays
or not.
|
concludeWrite, connect, disconnect, getChannels, isWriteable, prepareWrite, write
public JCADataSource()
public JCADataSource(gov.aps.jca.Context jcaContext, int monitorMask)
jcaContext
- the context to be usedmonitorMask
- Monitor.VALUE, ...public JCADataSource(String className, int monitorMask)
className
- JCALibrary.CHANNEL_ACCESS_JAVA, JCALibrary.JNI_THREAD_SAFE, ...monitorMask
- Monitor.VALUE, ...public JCADataSource(gov.aps.jca.Context jcaContext, int monitorMask, JCATypeSupport typeSupport)
jcaContext
- the context to be usedmonitorMask
- Monitor.VALUE, ...typeSupport
- type support to be usedpublic JCADataSource(gov.aps.jca.Context jcaContext, int monitorMask, JCATypeSupport typeSupport, boolean dbePropertySupported, boolean varArraySupported)
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 usedpublic 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 static boolean isVarArraySupported(gov.aps.jca.Context context)
context
- a JCA ContextCopyright © 2012. All Rights Reserved.