public final class EventManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IDL_LATEST |
static String |
IDL_REGEX |
static int |
MINIMUM_IDL_VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
bindEndpoints(org.zeromq.ZMQ.Socket socket,
Iterable<String> ipAddresses,
Map<String,org.zeromq.ZMQ.Socket> heartbeatEndpoints,
org.tango.server.events.EventManager.SocketType socketType)
Binds given socket types to the list of addresses
|
static void |
checkEventCriteria(AttributeImpl attribute,
EventType eventType)
Check if event criteria are set for change and archive events
|
void |
close()
Close all zmq resources
|
void |
forceAttributePushEvent(String deviceName,
String attributeName,
EventType eventType)
fire event without check
|
fr.esrf.Tango.DevVarLongStringArray |
getInfo()
returns the connection parameters for specified event.
|
static EventManager |
getInstance() |
boolean |
hasSubscriber(String deviceName) |
void |
pushAttributeConfigEvent(String deviceName,
String attributeName) |
void |
pushAttributeDataReadyEvent(String deviceName,
String attributeName,
int counter)
fire event with AttDataReady
|
void |
pushAttributeEvent(String deviceName,
String attributeName)
Check if the event must be sent and fire it if must be done
|
void |
pushAttributeEvent(String deviceName,
String attributeName,
fr.esrf.Tango.DevFailed devFailed)
Check if the event must be sent and fire it if must be done
|
void |
pushAttributeEvent(String deviceName,
String attributeName,
EventType eventType)
fire event
|
void |
pushInterfaceChangedEvent(String deviceName,
fr.esrf.Tango.DevIntrChange deviceInterface) |
void |
pushPipeEvent(String deviceName,
String pipeName,
fr.esrf.Tango.DevFailed devFailed) |
void |
pushPipeEvent(String deviceName,
String pipeName,
PipeValue blob) |
fr.esrf.Tango.DevVarLongStringArray |
subcribe(String deviceName)
Initialize ZMQ event system if not already done,
subscribe to the interface change event end
returns the connection parameters.
|
fr.esrf.Tango.DevVarLongStringArray |
subcribe(String deviceName,
AttributeImpl attribute,
EventType eventType,
int idlVersion)
Initialize ZMQ event system if not already done,
subscribe to the specified event end
returns the connection parameters for specified event.
|
fr.esrf.Tango.DevVarLongStringArray |
subcribe(String deviceName,
PipeImpl pipe)
Initialize ZMQ event system if not already done,
subscribe to the specified event end
returns the connection parameters for specified event.
|
public static final int MINIMUM_IDL_VERSION
public static final String IDL_REGEX
public static final String IDL_LATEST
public static EventManager getInstance()
public static void checkEventCriteria(AttributeImpl attribute, EventType eventType) throws fr.esrf.Tango.DevFailed
attribute - the specified attributeeventType - the specified event typefr.esrf.Tango.DevFailed - if event type is change or archive and no event criteria is set.public void bindEndpoints(org.zeromq.ZMQ.Socket socket,
Iterable<String> ipAddresses,
Map<String,org.zeromq.ZMQ.Socket> heartbeatEndpoints,
org.tango.server.events.EventManager.SocketType socketType)
socket - ipAddresses - heartbeatEndpoints - socketType - public boolean hasSubscriber(String deviceName)
public void close()
public fr.esrf.Tango.DevVarLongStringArray getInfo()
public fr.esrf.Tango.DevVarLongStringArray subcribe(String deviceName, PipeImpl pipe) throws fr.esrf.Tango.DevFailed
deviceName - The specified event device namepipe - The specified event pipefr.esrf.Tango.DevFailedpublic fr.esrf.Tango.DevVarLongStringArray subcribe(String deviceName, AttributeImpl attribute, EventType eventType, int idlVersion) throws fr.esrf.Tango.DevFailed
deviceName - The specified event device nameattribute - The specified event attributeeventType - The specified event typefr.esrf.Tango.DevFailedpublic fr.esrf.Tango.DevVarLongStringArray subcribe(String deviceName) throws fr.esrf.Tango.DevFailed
deviceName - The specified event device namefr.esrf.Tango.DevFailedpublic void pushAttributeEvent(String deviceName, String attributeName, fr.esrf.Tango.DevFailed devFailed) throws fr.esrf.Tango.DevFailed
attributeName - specified event attributedevFailed - the attribute failed error to be sent as eventfr.esrf.Tango.DevFailedfr.esrf.Tango.DevFailedpublic void pushAttributeEvent(String deviceName, String attributeName) throws fr.esrf.Tango.DevFailed
attributeName - specified event attributefr.esrf.Tango.DevFailedpublic void pushAttributeEvent(String deviceName, String attributeName, EventType eventType) throws fr.esrf.Tango.DevFailed
deviceName - Specified event deviceattributeName - specified event attribute nameeventType - specified event type.fr.esrf.Tango.DevFailedpublic void forceAttributePushEvent(String deviceName, String attributeName, EventType eventType) throws fr.esrf.Tango.DevFailed
deviceName - Specified event deviceattributeName - specified event attribute nameeventType - specified event type.fr.esrf.Tango.DevFailedpublic void pushAttributeDataReadyEvent(String deviceName, String attributeName, int counter) throws fr.esrf.Tango.DevFailed
deviceName - Specified event deviceattributeName - specified event attribute namecounter - a counter valuefr.esrf.Tango.DevFailedpublic void pushAttributeConfigEvent(String deviceName, String attributeName) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic void pushInterfaceChangedEvent(String deviceName, fr.esrf.Tango.DevIntrChange deviceInterface) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic void pushPipeEvent(String deviceName, String pipeName, PipeValue blob) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedCopyright © 2012–2017 Tango Controls. All rights reserved.