org.opennms.web.pathOutage
Class PathOutageFactory

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

public class PathOutageFactory
extends java.lang.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 java.util.List getAllCriticalPaths()
           Retrieve all the critical paths from the database
static java.lang.String[] getCriticalPathData(java.lang.String criticalPathIp, java.lang.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 java.lang.String[] getLabelAndStatus(java.lang.String nodeID, java.sql.Connection conn)
          This method is responsible for determining the node label of a node, and the up/down status and status color
static java.util.List getNodesInPath(java.lang.String criticalPathIp, java.lang.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 java.util.List getAllCriticalPaths()
                                          throws java.sql.SQLException

Retrieve all the critical paths from the database

Throws:
java.sql.SQLException

getNodesInPath

public static java.util.List getNodesInPath(java.lang.String criticalPathIp,
                                            java.lang.String criticalPathServiceName)
                                     throws java.sql.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:
java.sql.SQLException

getLabelAndStatus

public static java.lang.String[] getLabelAndStatus(java.lang.String nodeID,
                                                   java.sql.Connection conn)
                                            throws java.sql.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:
java.sql.SQLException

getCriticalPathData

public static java.lang.String[] getCriticalPathData(java.lang.String criticalPathIp,
                                                     java.lang.String criticalPathServiceName)
                                              throws java.sql.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:
java.sql.SQLException


Copyright © 2007. All Rights Reserved.