|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.DataSource
org.epics.pvmanager.CompositeDataSource
public class CompositeDataSource
A data source that can dispatch a request to multiple different data sources.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.epics.pvmanager.DataSource |
---|
DataSource.ValueProcessor<P,V> |
Constructor Summary | |
---|---|
CompositeDataSource()
|
Method Summary | |
---|---|
void |
connect(DataRecipe recipe)
Connects to a set of channels based on the given recipe. |
void |
disconnect(DataRecipe recipe)
Disconnects the set of channels given by the recipe. |
java.lang.String |
getDefaultDataSource()
Returns which data source is used if no data source is specified in the channel name. |
java.lang.String |
getDelimiter()
Returns the delimeter that divides the data source name from the channel name. |
void |
putDataSource(java.lang.String name,
DataSource dataSource)
Adds/replaces the data source corresponding to the given name. |
void |
setDefaultDataSource(java.lang.String defaultDataSource)
Sets the data source to be used if the channel does not specify one explicitely. |
void |
setDelimiter(java.lang.String delimiter)
Changes the data source delimiter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeDataSource()
Method Detail |
---|
public java.lang.String getDelimiter()
public void setDelimiter(java.lang.String delimiter)
delimiter
- new data source delimiter; can't be nullpublic void putDataSource(java.lang.String name, DataSource dataSource)
name
- the name of the data sourcedataSource
- the data source to add/replacepublic java.lang.String getDefaultDataSource()
public void setDefaultDataSource(java.lang.String defaultDataSource)
defaultDataSource
- the default data sourcepublic void connect(DataRecipe recipe)
DataSource
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.
connect
in class DataSource
recipe
- the instructions for the data connectionpublic void disconnect(DataRecipe recipe)
DataSource
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.
disconnect
in class DataSource
recipe
- the instructions for the data connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |