org.tango.server.events
Class ArchiveEventTrigger

java.lang.Object
  extended by org.tango.server.events.ArchiveEventTrigger
All Implemented Interfaces:
IEventTrigger

public class ArchiveEventTrigger
extends java.lang.Object
implements IEventTrigger

manage trigger for EventType.ARCHIVE_EVENT

Author:
ABEILLE

Constructor Summary
ArchiveEventTrigger(long period, java.lang.String absolute, java.lang.String relative, AttributeImpl attribute)
          Ctr
 
Method Summary
static void checkEventCriteria(AttributeImpl attribute)
          Check if event criteria are set for specified attribute
 boolean doCheck()
           
 boolean isSendEvent()
           
 void setError(fr.esrf.Tango.DevFailed error)
          Notify the trigger of the last error occured
 void updateProperties()
          Update event properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveEventTrigger

public ArchiveEventTrigger(long period,
                           java.lang.String absolute,
                           java.lang.String relative,
                           AttributeImpl attribute)
Ctr

Parameters:
period - The archive period
absolute - The archive absolute change delta
relative - The archive relative change delta
attribute - The attribute that send events
Method Detail

isSendEvent

public boolean isSendEvent()
                    throws fr.esrf.Tango.DevFailed
Specified by:
isSendEvent in interface IEventTrigger
Returns:
true if an event must be send
Throws:
fr.esrf.Tango.DevFailed

setError

public void setError(fr.esrf.Tango.DevFailed error)
Description copied from interface: IEventTrigger
Notify the trigger of the last error occured

Specified by:
setError in interface IEventTrigger

checkEventCriteria

public static void checkEventCriteria(AttributeImpl attribute)
                               throws fr.esrf.Tango.DevFailed
Check if event criteria are set for specified attribute

Parameters:
attribute - the specified attribute
Throws:
fr.esrf.Tango.DevFailed - if no event criteria is set for specified attribute.

updateProperties

public void updateProperties()
                      throws fr.esrf.Tango.DevFailed
Description copied from interface: IEventTrigger
Update event properties

Specified by:
updateProperties in interface IEventTrigger
Throws:
fr.esrf.Tango.DevFailed

doCheck

public boolean doCheck()
Specified by:
doCheck in interface IEventTrigger
Returns:
true if do the event fire check


Copyright © 2012-2016. All Rights Reserved.