|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.DataRecipe
public class DataRecipe
Represents all the information necessary to connect to a DataSource
.
It represents the contact between PVManager and the DataSource
.
Constructor Summary | |
---|---|
DataRecipe()
Creates an empty data recipe. |
|
DataRecipe(ExceptionHandler exceptionHandler)
|
Method Summary | |
---|---|
java.util.Collection<ChannelRecipe> |
getChannelRecipes()
|
java.util.Map<Collector<?>,java.util.Map<java.lang.String,ValueCache>> |
getChannelsPerCollectors()
Returns all channels that need to be connected, organized by the collector that needs them. |
java.util.Map<java.lang.String,ValueCache<java.lang.Boolean>> |
getConnectionCaches()
|
Collector<java.lang.Boolean> |
getConnectionCollector()
|
ExceptionHandler |
getExceptionHandler()
Returns the exception handler to be used for this PV. |
DataRecipe |
includeCollector(Collector<?> collector,
java.util.Map<java.lang.String,ValueCache> caches)
Creates a new recipe by adding the new collector and the new caches. |
DataRecipe |
includeRecipe(DataRecipe dataRecipe)
Creates a new recipe by adding the given recipe to this one. |
DataRecipe |
withExceptionHandler(ExceptionHandler handler)
Creates a new data recipe with the given handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRecipe()
public DataRecipe(ExceptionHandler exceptionHandler)
Method Detail |
---|
public DataRecipe includeCollector(Collector<?> collector, java.util.Map<java.lang.String,ValueCache> caches)
Note: this method should be only used for testing as it does not scale.
collector
- the new collectorcaches
- the caches that the collector depends on
public DataRecipe includeRecipe(DataRecipe dataRecipe)
Note: this method should be only used for testing as it does not scale.
dataRecipe
- the recipe to include
public java.util.Map<Collector<?>,java.util.Map<java.lang.String,ValueCache>> getChannelsPerCollectors()
Every time there is a new value, the data source will need to lock the collector, put the values in the value cache relative for each channel, and notify the collector.
public ExceptionHandler getExceptionHandler()
public DataRecipe withExceptionHandler(ExceptionHandler handler)
handler
- a new exception handler
public Collector<java.lang.Boolean> getConnectionCollector()
public java.util.Map<java.lang.String,ValueCache<java.lang.Boolean>> getConnectionCaches()
public java.util.Collection<ChannelRecipe> getChannelRecipes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |