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, getScheduleIdprivate 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 EventTypepublic int getSystemEventTypeId()
public boolean isSystemMessage()
EventTypeisSystemMessage in class EventTypepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getDuplicateHandling()
EventTypegetDuplicateHandling in class EventTypepublic int getReferenceId1()
getReferenceId1 in class EventTypepublic int getReferenceId2()
getReferenceId2 in class EventTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize in interface com.serotonin.json.JsonSerializablejsonSerialize in class EventTypepublic void jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json)
throws com.serotonin.json.JsonException
jsonDeserialize in interface com.serotonin.json.JsonSerializablejsonDeserialize in class EventTypecom.serotonin.json.JsonException