Class AlertLevelUtils

java.lang.Object
com.aoindustries.noc.monitor.AlertLevelUtils

public final class AlertLevelUtils extends Object
Maps between different implementations of alert level.
Author:
AO Industries, Inc.
  • Method Details

    • getMonitoringAlertLevel

      public static AlertLevel getMonitoringAlertLevel(AlertLevel aoservAlertLevel)
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(AlertLevel level, Iterable<? extends NodeImpl> nodes)
      Gets the greatest alert level found in a collection of nodes and the given starting value.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(Iterable<? extends NodeImpl> nodes)
      Gets the greatest alert level found in a collection of nodes.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(AlertLevel level, NodeImpl node)
      Gets the greatest alert level between a node and a given starting value. If the node is null, alert level is unchanged.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(NodeImpl node)
      Gets the alert level for a node. If the node is null, alert level is NONE.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(NodeImpl node1, NodeImpl node2)
      Gets the greatest alert level of any node. If all nodes are null, alert level is NONE.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(NodeImpl node1, NodeImpl node2, NodeImpl node3)
      Gets the greatest alert level of any node. If all nodes are null, alert level is NONE.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(NodeImpl node1, NodeImpl node2, NodeImpl node3, NodeImpl node4)
      Gets the greatest alert level of any node. If all nodes are null, alert level is NONE.
    • getMaxAlertLevel

      public static AlertLevel getMaxAlertLevel(NodeImpl... nodes)
      Gets the greatest alert level of any node. If all nodes are null, alert level is NONE.