java.lang.Object
com.aoindustries.noc.monitor.AlertLevelUtils
Maps between different implementations of alert level.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AlertLevelgetMaxAlertLevel(AlertLevel level, NodeImpl node) Gets the greatest alert level between a node and a given starting value.static AlertLevelgetMaxAlertLevel(AlertLevel level, Iterable<? extends NodeImpl> nodes) Gets the greatest alert level found in a collection of nodes and the given starting value.static AlertLevelgetMaxAlertLevel(NodeImpl node) Gets the alert level for a node.static AlertLevelgetMaxAlertLevel(NodeImpl... nodes) Gets the greatest alert level of any node.static AlertLevelgetMaxAlertLevel(NodeImpl node1, NodeImpl node2) Gets the greatest alert level of any node.static AlertLevelgetMaxAlertLevel(NodeImpl node1, NodeImpl node2, NodeImpl node3) Gets the greatest alert level of any node.static AlertLevelgetMaxAlertLevel(NodeImpl node1, NodeImpl node2, NodeImpl node3, NodeImpl node4) Gets the greatest alert level of any node.static AlertLevelgetMaxAlertLevel(Iterable<? extends NodeImpl> nodes) Gets the greatest alert level found in a collection of nodes.static AlertLevelgetMonitoringAlertLevel(AlertLevel aoservAlertLevel)
-
Method Details
-
getMonitoringAlertLevel
-
getMaxAlertLevel
Gets the greatest alert level found in a collection of nodes and the given starting value. -
getMaxAlertLevel
Gets the greatest alert level found in a collection of nodes. -
getMaxAlertLevel
Gets the greatest alert level between a node and a given starting value. If the node is null, alert level is unchanged. -
getMaxAlertLevel
Gets the alert level for a node. If the node is null, alert level is NONE. -
getMaxAlertLevel
Gets the greatest alert level of any node. If all nodes are null, alert level is NONE. -
getMaxAlertLevel
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
Gets the greatest alert level of any node. If all nodes are null, alert level is NONE.
-
