|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tango.server.events.EventManager
public final class EventManager
Set of ZMQ low level utilities
Method Summary | |
---|---|
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(java.lang.String deviceName,
java.lang.String attributeName,
EventType eventType)
fire event without check |
fr.esrf.Tango.DevVarLongStringArray |
getConnectionParameters()
returns the connection parameters for specified event. |
fr.esrf.Tango.DevVarLongStringArray |
getConnectionParameters(java.lang.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 |
getConnectionParameters(java.lang.String deviceName,
AttributeImpl attribute,
EventType eventType)
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 |
getConnectionParameters(java.lang.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. |
static EventManager |
getInstance()
|
boolean |
hasSubscriber(java.lang.String deviceName)
|
void |
pushAttributeConfigEvent(java.lang.String deviceName,
java.lang.String attributeName)
|
void |
pushAttributeDataReadyEvent(java.lang.String deviceName,
java.lang.String attributeName,
int counter)
fire event with AttDataReady |
void |
pushAttributeEvent(java.lang.String deviceName,
java.lang.String attributeName)
Check if the event must be sent and fire it if must be done |
void |
pushAttributeEvent(java.lang.String deviceName,
java.lang.String attributeName,
fr.esrf.Tango.DevFailed devFailed)
Check if the event must be sent and fire it if must be done |
void |
pushAttributeEvent(java.lang.String deviceName,
java.lang.String attributeName,
EventType eventType)
fire event |
void |
pushInterfaceChangedEvent(java.lang.String deviceName,
fr.esrf.Tango.DevIntrChange deviceInterface)
|
void |
pushPipeEvent(java.lang.String deviceName,
java.lang.String pipeName,
fr.esrf.Tango.DevFailed devFailed)
|
void |
pushPipeEvent(java.lang.String deviceName,
java.lang.String pipeName,
PipeValue blob)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EventManager getInstance()
public boolean hasSubscriber(java.lang.String deviceName)
public void close()
public fr.esrf.Tango.DevVarLongStringArray getConnectionParameters()
public fr.esrf.Tango.DevVarLongStringArray getConnectionParameters(java.lang.String deviceName, PipeImpl pipe) throws fr.esrf.Tango.DevFailed
deviceName
- The specified event device namepipe
- The specified event pipe
fr.esrf.Tango.DevFailed
public fr.esrf.Tango.DevVarLongStringArray getConnectionParameters(java.lang.String deviceName, AttributeImpl attribute, EventType eventType) throws fr.esrf.Tango.DevFailed
deviceName
- The specified event device nameattribute
- The specified event attributeeventType
- The specified event type
fr.esrf.Tango.DevFailed
public fr.esrf.Tango.DevVarLongStringArray getConnectionParameters(java.lang.String deviceName) throws fr.esrf.Tango.DevFailed
deviceName
- The specified event device name
fr.esrf.Tango.DevFailed
public void pushAttributeEvent(java.lang.String deviceName, java.lang.String attributeName, fr.esrf.Tango.DevFailed devFailed) throws fr.esrf.Tango.DevFailed
attributeName
- specified event attributedevFailed
- the attribute failed error to be sent as event
fr.esrf.Tango.DevFailed
public void pushAttributeEvent(java.lang.String deviceName, java.lang.String attributeName) throws fr.esrf.Tango.DevFailed
attributeName
- specified event attribute
fr.esrf.Tango.DevFailed
public void pushAttributeEvent(java.lang.String deviceName, java.lang.String attributeName, EventType eventType) throws fr.esrf.Tango.DevFailed
deviceName
- Specified event deviceattributeName
- specified event attribute nameeventType
- specified event type.
fr.esrf.Tango.DevFailed
public void forceAttributePushEvent(java.lang.String deviceName, java.lang.String attributeName, EventType eventType) throws fr.esrf.Tango.DevFailed
deviceName
- Specified event deviceattributeName
- specified event attribute nameeventType
- specified event type.
fr.esrf.Tango.DevFailed
public void pushAttributeDataReadyEvent(java.lang.String deviceName, java.lang.String attributeName, int counter) throws fr.esrf.Tango.DevFailed
deviceName
- Specified event deviceattributeName
- specified event attribute namecounter
- a counter value
fr.esrf.Tango.DevFailed
public void pushAttributeConfigEvent(java.lang.String deviceName, java.lang.String attributeName) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public void pushInterfaceChangedEvent(java.lang.String deviceName, fr.esrf.Tango.DevIntrChange deviceInterface) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public void pushPipeEvent(java.lang.String deviceName, java.lang.String pipeName, PipeValue blob) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public void pushPipeEvent(java.lang.String deviceName, java.lang.String pipeName, fr.esrf.Tango.DevFailed devFailed) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public static void checkEventCriteria(AttributeImpl attribute, EventType eventType) throws fr.esrf.Tango.DevFailed
attribute
- the specified attributeeventType
- the specified event type
fr.esrf.Tango.DevFailed
- if event type is change or archive and no event criteria is set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |