public class SystemEventType extends EventType
EventType.DuplicateHandling, EventType.EventSources
Modifier and Type | Field and Description |
---|---|
private int |
duplicateHandling |
private int |
refId2 |
private static java.lang.String |
SYSTEM_SETTINGS_PREFIX |
private int |
systemEventTypeId |
private static java.util.List<EventTypeVO> |
systemEventTypes |
static ExportCodes |
TYPE_CODES |
static int |
TYPE_COMPOUND_DETECTOR_FAILURE |
static int |
TYPE_EMAIL_SEND_FAILURE |
static int |
TYPE_MAX_ALARM_LEVEL_CHANGED |
static int |
TYPE_POINT_LINK_FAILURE |
static int |
TYPE_PROCESS_FAILURE |
static int |
TYPE_SET_POINT_HANDLER_FAILURE |
static int |
TYPE_SYSTEM_SHUTDOWN |
static int |
TYPE_SYSTEM_STARTUP |
static int |
TYPE_USER_LOGIN |
SOURCE_CODES
Constructor and Description |
---|
SystemEventType() |
SystemEventType(int systemEventTypeId) |
SystemEventType(int systemEventTypeId,
int refId2) |
SystemEventType(int systemEventTypeId,
int refId2,
int duplicateHandling) |
Modifier and Type | Method and Description |
---|---|
private static void |
addEventTypeVO(int type,
java.lang.String key,
int defaultAlarmLevel) |
boolean |
equals(java.lang.Object obj) |
int |
getDuplicateHandling()
Determines whether an event type that, once raised, will always first be deactivated or whether overriding events
can be raised.
|
int |
getEventSourceId() |
static EventTypeVO |
getEventType(int type) |
int |
getReferenceId1() |
int |
getReferenceId2() |
int |
getSystemEventTypeId() |
static java.util.List<EventTypeVO> |
getSystemEventTypes() |
int |
hashCode() |
boolean |
isSystemMessage()
Convenience method that keeps us from having to cast.
|
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
static void |
raiseEvent(SystemEventType type,
long time,
boolean rtn,
com.serotonin.web.i18n.LocalizableMessage message) |
static void |
returnToNormal(SystemEventType type,
long time) |
static void |
setEventTypeAlarmLevel(int type,
int alarmLevel) |
java.lang.String |
toString() |
excludeUser, getCompoundEventDetectorId, getCompoundEventDetectorId, getDataPointId, getDataPointId, getDataSource, getDataSourceId, getInt, getMaintenanceEventId, getPointEventDetectorId, getPointEventDetectorId, getPublisher, getPublisherId, getScheduledEventId, getScheduleId
private static final java.lang.String SYSTEM_SETTINGS_PREFIX
public static final int TYPE_SYSTEM_STARTUP
public static final int TYPE_SYSTEM_SHUTDOWN
public static final int TYPE_MAX_ALARM_LEVEL_CHANGED
public static final int TYPE_USER_LOGIN
public static final int TYPE_COMPOUND_DETECTOR_FAILURE
public static final int TYPE_SET_POINT_HANDLER_FAILURE
public static final int TYPE_EMAIL_SEND_FAILURE
public static final int TYPE_POINT_LINK_FAILURE
public static final int TYPE_PROCESS_FAILURE
public static final ExportCodes TYPE_CODES
private static java.util.List<EventTypeVO> systemEventTypes
private int systemEventTypeId
private int refId2
private int duplicateHandling
public SystemEventType()
public SystemEventType(int systemEventTypeId)
public SystemEventType(int systemEventTypeId, int refId2)
public SystemEventType(int systemEventTypeId, int refId2, int duplicateHandling)
public static java.util.List<EventTypeVO> getSystemEventTypes()
private static void addEventTypeVO(int type, java.lang.String key, int defaultAlarmLevel)
public static EventTypeVO getEventType(int type)
public static void setEventTypeAlarmLevel(int type, int alarmLevel)
public static void raiseEvent(SystemEventType type, long time, boolean rtn, com.serotonin.web.i18n.LocalizableMessage message)
public static void returnToNormal(SystemEventType type, long time)
public int getEventSourceId()
getEventSourceId
in class EventType
public int getSystemEventTypeId()
public boolean isSystemMessage()
EventType
isSystemMessage
in class EventType
public java.lang.String toString()
toString
in class java.lang.Object
public int getDuplicateHandling()
EventType
getDuplicateHandling
in class EventType
public int getReferenceId1()
getReferenceId1
in class EventType
public int getReferenceId2()
getReferenceId2
in class EventType
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
jsonSerialize
in class EventType
public void jsonDeserialize(com.serotonin.json.JsonReader reader, com.serotonin.json.JsonObject json) throws com.serotonin.json.JsonException
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
jsonDeserialize
in class EventType
com.serotonin.json.JsonException