Package org.onosproject.alarm
Class AlarmId
- java.lang.Object
-
- org.onlab.util.Identifier<java.lang.String>
-
- org.onosproject.alarm.AlarmId
-
@Beta public final class AlarmId extends Identifier<java.lang.String>
Alarm identifier suitable as an external key.This class is immutable.
-
-
Field Summary
-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlarmId
alarmId(java.lang.String globallyUniqueIdentifier)
Creates an alarm identifier from the specified globally unique identifier.static AlarmId
alarmId(DeviceId id, java.lang.String uniqueIdentifier)
Creates an alarm identifier from the specified device id and unique identifier provided representation.-
Methods inherited from class org.onlab.util.Identifier
equals, hashCode, id, toString
-
-
-
-
Method Detail
-
alarmId
public static AlarmId alarmId(DeviceId id, java.lang.String uniqueIdentifier)
Creates an alarm identifier from the specified device id and unique identifier provided representation.- Parameters:
id
- device iduniqueIdentifier
- per device unique identifier of the alarm- Returns:
- alarm identifier
-
alarmId
public static AlarmId alarmId(java.lang.String globallyUniqueIdentifier)
Creates an alarm identifier from the specified globally unique identifier.- Parameters:
globallyUniqueIdentifier
- the globally unique identifier of the Alarm, device Id + local unique identifier on the device- Returns:
- alarm identifier
-
-