|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.transport.adapters.ReverseConsumer
public class ReverseConsumer
ReverseConsumer
is an implementation consumer that is attached
to those consumers which also act as data sources. This consumers receive
data from those sources and forward it to the TINE channel.
Field Summary | |
---|---|
static java.lang.Class<?>[] |
SUPPORTED_CONSUMER_TYPES
Supporter consumer types |
Constructor Summary | |
---|---|
ReverseConsumer(ConnectionParameters param,
AcopTransport tran,
int size)
|
Method Summary | |
---|---|
DataConsumer |
getDataConsumer(java.lang.Class type)
Returns data consumer for requested data consumer type. |
DataConsumer |
getDefaultDataConsumer()
Returns the implementation of default consumer type supported by this data consumer. |
java.lang.String |
getName()
Returns name of this data consumer. |
java.lang.String[] |
getSupportedCharacteristics()
Resturns array with names of supported characteristics. |
java.lang.Class[] |
getSupportedConsumerTypes()
Returns array of supported data consumer types, which can be used as parameter and returnned with getDataCosnumer(Class)
method. |
void |
release()
Releases this consumer. |
void |
setCharacteristics(java.util.Map attributes)
Sets new dynamic value characteristics to this data consumer. |
void |
updateDataState(DataState state)
Push data state (quality) update change for dynamic value. |
void |
updateNonblocking(java.lang.Number value)
Notifys this consumer about new dynamic value update. |
void |
updateSynchronously(long timestamp,
java.lang.Number value)
Notifys this consumer about new dynamic value update. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class<?>[] SUPPORTED_CONSUMER_TYPES
Constructor Detail |
---|
public ReverseConsumer(ConnectionParameters param, AcopTransport tran, int size)
Method Detail |
---|
public DataConsumer getDataConsumer(java.lang.Class type)
DataConsumer
Returns data consumer for requested data consumer type. If this data
consumer does not support required data consumer, null
is
returned.
If this data cosnumer does not support specific data consumer type, then it means, that it is not desirable to cast data of that type to any by this consumer supported data consumer types.
getDataConsumer
in interface DataConsumer
type
- Class of specific data consumer (e.g. DoubleConsumer)
null
if
not supportedpublic DataConsumer getDefaultDataConsumer()
DataConsumer
getDefaultDataConsumer
in interface DataConsumer
public void updateDataState(DataState state)
DataConsumer
updateDataState
in interface DataConsumer
state
- new data state(quality) descriptorpublic void setCharacteristics(java.util.Map attributes)
DataConsumer
setCharacteristics
in interface DataConsumer
attributes
- the Map
with attripublic java.lang.String getName()
DataConsumer
getName
in interface DataConsumer
public java.lang.String[] getSupportedCharacteristics()
DataConsumer
null
is returned, than
consumer expect all existing characteristics from data source.
getSupportedCharacteristics
in interface DataConsumer
public java.lang.Class[] getSupportedConsumerTypes()
DataConsumer
getDataCosnumer(Class)
method.
getSupportedConsumerTypes
in interface DataConsumer
public void updateSynchronously(long timestamp, java.lang.Number value) throws CommonException
SynchronousNumberConsumer
updateSynchronously
in interface SynchronousNumberConsumer
timestamp
- the time of dynamic value eventvalue
- new value
CommonException
public void updateNonblocking(java.lang.Number value)
NonblockingNumberConsumer
updateNonblocking
in interface NonblockingNumberConsumer
value
- new valuepublic void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |