|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.pathOutage.PathOutageFactory
public class PathOutageFactory
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.
| Field Summary | |
|---|---|
static String |
NO_CRITICAL_PATH
Constant NO_CRITICAL_PATH="Not Configured" |
| Constructor Summary | |
|---|---|
PathOutageFactory()
|
|
| Method Summary | |
|---|---|
static List<String[]> |
getAllCriticalPaths()
Retrieve all the critical paths from the database |
static String |
getCriticalPath(int nodeID)
Retrieve critical path by nodeid 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 |
| Field Detail |
|---|
public static final String NO_CRITICAL_PATH
NO_CRITICAL_PATH="Not Configured"
| Constructor Detail |
|---|
public PathOutageFactory()
| Method Detail |
|---|
public static List<String[]> getAllCriticalPaths()
throws SQLException
Retrieve all the critical paths from the database
List object.
SQLException - if any.
public static String getCriticalPath(int nodeID)
throws SQLException
Retrieve critical path by nodeid from the database
nodeID - a int.
String object.
SQLException - if any.
public static List<String> getNodesInPath(String criticalPathIp,
String criticalPathServiceName)
throws SQLException
Retrieve all the nodes in a critical path from the database
criticalPathIp - IP address of the critical pathcriticalPathServiceName - service name for the critical path
List object.
SQLException - if any.
public static String[] getLabelAndStatus(String nodeIDStr,
Connection conn)
throws SQLException
nodeIDStr - a String object.conn - a Connection object.
String objects.
SQLException - if any.
public static String[] getCriticalPathData(String criticalPathIp,
String criticalPathServiceName)
throws SQLException
criticalPathIp - a String object.criticalPathServiceName - a String object.
String objects.
SQLException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||