|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epics.pvmanager.jca.JCATypeAdapter
public abstract class JCATypeAdapter
Type adapter for JCA data source. Will match a channel based on the value type provided and the array flag. Will match the cache based on the type class.
| Constructor Summary | |
|---|---|
JCATypeAdapter(java.lang.Class<?> typeClass,
DBRType epicsValueType,
DBRType epicsMetaType,
java.lang.Boolean array)
Creates a new type adapter. |
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
createValue(DBR value,
DBR metadata,
boolean disconnected)
Given the value and the (optional) metadata, will create the new value. |
java.lang.Object |
getSubscriptionParameter(ValueCache cache,
Channel channel)
The parameters required to open a monitor for the channel. |
int |
match(ValueCache<?> cache,
Channel channel)
Determines whether the converter can take values from the channel described by the connection payload and transform them in a type required by the cache. |
boolean |
updateCache(ValueCache cache,
Channel channel,
JCAMessagePayload message)
Takes the information in the message and updates the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCATypeAdapter(java.lang.Class<?> typeClass,
DBRType epicsValueType,
DBRType epicsMetaType,
java.lang.Boolean array)
typeClass - the java type this adapter will createepicsValueType - the epics type used for the monitorepicsMetaType - the epics type for the get at connection time; null if no metadata is neededarray - true whether this will require an array type| Method Detail |
|---|
public int match(ValueCache<?> cache,
Channel channel)
DataSourceTypeAdapter
match in interface DataSourceTypeAdapter<Channel,JCAMessagePayload>cache - the cache where data will need to be writtenchannel - the connection information
public java.lang.Object getSubscriptionParameter(ValueCache cache,
Channel channel)
DataSourceTypeAdapterFor channels multiplexed on a single subscription, this method is never used.
getSubscriptionParameter in interface DataSourceTypeAdapter<Channel,JCAMessagePayload>cache - the cache where data will need to be writtenchannel - the connection information
public boolean updateCache(ValueCache cache,
Channel channel,
JCAMessagePayload message)
DataSourceTypeAdapter
updateCache in interface DataSourceTypeAdapter<Channel,JCAMessagePayload>cache - cache to be updatedchannel - the connection informationmessage - the payload of each message
public abstract java.lang.Object createValue(DBR value,
DBR metadata,
boolean disconnected)
value - the value taken from the monitormetadata - the value taken as metadatadisconnected - true if the value should report the channel is currently disconnected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||