org.epics.pvmanager.jca
Class JCADataSource

java.lang.Object
  extended by org.epics.pvmanager.DataSource
      extended by org.epics.pvmanager.jca.JCADataSource

public class JCADataSource
extends DataSource

A data source that uses jca.

Author:
carcassi

Nested Class Summary
 
Nested classes/interfaces inherited from class org.epics.pvmanager.DataSource
DataSource.ValueProcessor<P,V>
 
Constructor Summary
JCADataSource()
          Creates a new data source using pure Java implementation
JCADataSource(java.lang.String className, int monitorMask)
          Creates a new data source using the className to create the context.
JCADataSource(java.lang.String className, int monitorMask, boolean destroyContextWhenDone)
          Creates a new data source using the className to create the context, and specifying whether the context should be destroy when the last connection is closed.
 
Method Summary
 void connect(DataRecipe dataRecipe)
          Connects to a set of channels based on the given recipe.
 void disconnect(DataRecipe recipe)
          Disconnects the set of channels given by the recipe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCADataSource

public JCADataSource()
Creates a new data source using pure Java implementation


JCADataSource

public JCADataSource(java.lang.String className,
                     int monitorMask)
Creates a new data source using the className to create the context.

Parameters:
className - JCALibrary.CHANNEL_ACCESS_JAVA, JCALibrary.JNI_THREAD_SAFE, ...
monitorMask - Monitor.VALUE, ...

JCADataSource

public JCADataSource(java.lang.String className,
                     int monitorMask,
                     boolean destroyContextWhenDone)
Creates a new data source using the className to create the context, and specifying whether the context should be destroy when the last connection is closed.

Parameters:
className - JCALibrary.CHANNEL_ACCESS_JAVA, JCALibrary.JNI_THREAD_SAFE, ...
monitorMask - Monitor.VALUE, ...
Method Detail

connect

public void connect(DataRecipe dataRecipe)
Description copied from class: DataSource
Connects to a set of channels based on the given recipe.

The data source must update the value caches relative to each channel. Before updating any cache, it must lock the collector relative to that cache and after any update it must notify the collector.

Specified by:
connect in class DataSource
Parameters:
dataRecipe - the instructions for the data connection

disconnect

public void disconnect(DataRecipe recipe)
Description copied from class: DataSource
Disconnects the set of channels given by the recipe.

The disconnect call is guaranteed to be given the same object, so that the recipe itself can be used as a key in a map to retrieve the list of resources needed to be closed.

Specified by:
disconnect in class DataSource
Parameters:
recipe - the instructions for the data connection


Copyright © 2011. All Rights Reserved.