public final class ImmutableAlarm extends Object implements org.opennms.integration.api.v1.model.Alarm
Alarm that enforces deep immutability.| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAlarm.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<String,String> |
getAttributes() |
String |
getDescription() |
Date |
getFirstEventTime() |
Integer |
getId() |
org.opennms.integration.api.v1.model.DatabaseEvent |
getLastEvent() |
Date |
getLastEventTime() |
String |
getLogMessage() |
String |
getManagedObjectInstance() |
String |
getManagedObjectType() |
org.opennms.integration.api.v1.model.Node |
getNode() |
String |
getReductionKey() |
List<org.opennms.integration.api.v1.model.Alarm> |
getRelatedAlarms() |
org.opennms.integration.api.v1.model.Severity |
getSeverity() |
org.opennms.integration.api.v1.config.events.AlarmType |
getType() |
int |
hashCode() |
static org.opennms.integration.api.v1.model.Alarm |
immutableCopy(org.opennms.integration.api.v1.model.Alarm alarm) |
boolean |
isSituation() |
static ImmutableAlarm.Builder |
newBuilder() |
static ImmutableAlarm.Builder |
newBuilderFrom(org.opennms.integration.api.v1.model.Alarm fromAlarm) |
String |
toString() |
public static ImmutableAlarm.Builder newBuilder()
public static ImmutableAlarm.Builder newBuilderFrom(org.opennms.integration.api.v1.model.Alarm fromAlarm)
public static org.opennms.integration.api.v1.model.Alarm immutableCopy(org.opennms.integration.api.v1.model.Alarm alarm)
public String getReductionKey()
getReductionKey in interface org.opennms.integration.api.v1.model.Alarmpublic Integer getId()
getId in interface org.opennms.integration.api.v1.model.Alarmpublic org.opennms.integration.api.v1.model.Node getNode()
getNode in interface org.opennms.integration.api.v1.model.Alarmpublic org.opennms.integration.api.v1.config.events.AlarmType getType()
getType in interface org.opennms.integration.api.v1.model.Alarmpublic String getManagedObjectInstance()
getManagedObjectInstance in interface org.opennms.integration.api.v1.model.Alarmpublic String getManagedObjectType()
getManagedObjectType in interface org.opennms.integration.api.v1.model.Alarmpublic Map<String,String> getAttributes()
getAttributes in interface org.opennms.integration.api.v1.model.Alarmpublic org.opennms.integration.api.v1.model.Severity getSeverity()
getSeverity in interface org.opennms.integration.api.v1.model.Alarmpublic boolean isSituation()
isSituation in interface org.opennms.integration.api.v1.model.Alarmpublic List<org.opennms.integration.api.v1.model.Alarm> getRelatedAlarms()
getRelatedAlarms in interface org.opennms.integration.api.v1.model.Alarmpublic String getLogMessage()
getLogMessage in interface org.opennms.integration.api.v1.model.Alarmpublic String getDescription()
getDescription in interface org.opennms.integration.api.v1.model.Alarmpublic Date getLastEventTime()
getLastEventTime in interface org.opennms.integration.api.v1.model.Alarmpublic Date getFirstEventTime()
getFirstEventTime in interface org.opennms.integration.api.v1.model.Alarmpublic org.opennms.integration.api.v1.model.DatabaseEvent getLastEvent()
getLastEvent in interface org.opennms.integration.api.v1.model.AlarmCopyright © 2019. All rights reserved.