org.opennms.web.pathOutage
Class PathOutageFactory

java.lang.Object
  extended by org.opennms.web.pathOutage.PathOutageFactory

public class PathOutageFactory
extends Object

The source for all path outage business objects (nodes, critical path IPs, critical path service names). Encapsulates all lookup functionality for these business objects in one place.

Author:
OpenNMS

Constructor Summary
PathOutageFactory()
           
 
Method Summary
static List<String[]> getAllCriticalPaths()
           Retrieve all the critical paths from the database
static String[] getCriticalPathData(String criticalPathIp, String criticalPathServiceName)
          This method is responsible for determining the data related to the critical path: node label, nodeId, the number of nodes dependent on this path, and the managed state of the path
static String[] getLabelAndStatus(String nodeIDStr, Connection conn)
          This method is responsible for determining the node label of a node, and the up/down status and status color
static List<String> getNodesInPath(String criticalPathIp, String criticalPathServiceName)
           Retrieve all the nodes in a critical path from the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathOutageFactory

public PathOutageFactory()
Method Detail

getAllCriticalPaths

public static List<String[]> getAllCriticalPaths()
                                          throws SQLException

Retrieve all the critical paths from the database

Throws:
SQLException

getNodesInPath

public static List<String> getNodesInPath(String criticalPathIp,
                                          String criticalPathServiceName)
                                   throws SQLException

Retrieve all the nodes in a critical path from the database

Parameters:
criticalPathIp - IP address of the critical path
criticalPathServiceName - service name for the critical path
Throws:
SQLException

getLabelAndStatus

public static String[] getLabelAndStatus(String nodeIDStr,
                                         Connection conn)
                                  throws SQLException
This method is responsible for determining the node label of a node, and the up/down status and status color

Parameters:
String - nodeID the nodeID of the node being checked
Throws:
SQLException

getCriticalPathData

public static String[] getCriticalPathData(String criticalPathIp,
                                           String criticalPathServiceName)
                                    throws SQLException
This method is responsible for determining the data related to the critical path: node label, nodeId, the number of nodes dependent on this path, and the managed state of the path

Parameters:
String - criticalPathIp the criticalPathIp of the node being checked
String - criticalPathServiceName the criticalPathServiceName of the node being checked
Throws:
SQLException


Copyright © 2009. All Rights Reserved.