org.tango.server.events
Enum EventType

java.lang.Object
  extended by java.lang.Enum<EventType>
      extended by org.tango.server.events.EventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EventType>

public enum EventType
extends java.lang.Enum<EventType>


Enum Constant Summary
ARCHIVE_EVENT
          Archived event.
ATT_CONF_EVENT
          Attribute configuration event.
CHANGE_EVENT
          Change event.
DATA_READY_EVENT
          Data ready event.
PERIODIC_EVENT
          Periodic event.
USER_EVENT
          User event.
 
Method Summary
static EventType getEvent(java.lang.String string)
          Get an EventType from a String
 java.lang.String getString()
           
 int getValue()
           
static EventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHANGE_EVENT

public static final EventType CHANGE_EVENT
Change event. Use the attribute properties abs_change and/or rel_change


PERIODIC_EVENT

public static final EventType PERIODIC_EVENT
Periodic event. Send an event at the period specified by the attribute property event_period


ARCHIVE_EVENT

public static final EventType ARCHIVE_EVENT
Archived event. Send a periodic event at period configured in property archive_period. Or/and change event with values from archive_rel_change and/or archive_abs_change


USER_EVENT

public static final EventType USER_EVENT
User event.


ATT_CONF_EVENT

public static final EventType ATT_CONF_EVENT
Attribute configuration event. Send an event if an attribute's properties change.


DATA_READY_EVENT

public static final EventType DATA_READY_EVENT
Data ready event.

Method Detail

values

public static EventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EventType c : EventType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EventType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getEvent

public static EventType getEvent(java.lang.String string)
                          throws fr.esrf.Tango.DevFailed
Get an EventType from a String

Parameters:
string - the event type as a String
Returns:
the EventType
Throws:
fr.esrf.Tango.DevFailed - if event type does not exist

getString

public java.lang.String getString()
Returns:
EventType as a String

getValue

public int getValue()
Returns:
EventType as an int


Copyright © 2012-2014. All Rights Reserved.