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