public class PathOutageManagerDaoImpl extends Object implements PathOutageManager
NO_CRITICAL_PATH
Constructor and Description |
---|
PathOutageManagerDaoImpl() |
Modifier and Type | Method and Description |
---|---|
List<String[]> |
getAllCriticalPaths()
Retrieve all the critical paths
from the database
|
Set<Integer> |
getAllNodesDependentOnAnyServiceOnInterface(String criticalPathip)
This method is used when you are scheduling an outage for an interface so that you can have
the choice of also extending the outage to all nodes that are dependent on that interface for
connectivity.
|
Set<Integer> |
getAllNodesDependentOnAnyServiceOnNode(int nodeId)
This method is used when you are scheduling an outage for an entire node so that you can have
the choice of also extending the outage to all nodes that are dependent on that node for
connectivity.
|
CriticalPath |
getCriticalPath(int nodeId) |
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 PathOutageManager |
getInstance() |
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
|
Set<Integer> |
getNodesInPath(String criticalPathIp,
String criticalPathServiceName)
Retrieve all the nodes in a critical path
from the database
|
String |
getPrettyCriticalPath(int nodeID)
Retrieve critical path by nodeid
from the database
|
public static PathOutageManager getInstance()
public List<String[]> getAllCriticalPaths() throws SQLException
Retrieve all the critical paths from the database
getAllCriticalPaths
in interface PathOutageManager
List
object.SQLException
- if any.public String getPrettyCriticalPath(int nodeID)
Retrieve critical path by nodeid from the database
getPrettyCriticalPath
in interface PathOutageManager
nodeID
- a int.String
object.SQLException
- if any.public CriticalPath getCriticalPath(int nodeId)
getCriticalPath
in interface PathOutageManager
public Set<Integer> getNodesInPath(String criticalPathIp, String criticalPathServiceName)
Retrieve all the nodes in a critical path from the database
getNodesInPath
in interface PathOutageManager
criticalPathIp
- IP address of the critical pathcriticalPathServiceName
- service name for the critical pathList
object.SQLException
- if any.public String[] getLabelAndStatus(String nodeIDStr, Connection conn)
getLabelAndStatus
in interface PathOutageManager
nodeIDStr
- a String
object.conn
- a Connection
object.String
objects.SQLException
- if any.public String[] getCriticalPathData(String criticalPathIp, String criticalPathServiceName)
getCriticalPathData
in interface PathOutageManager
criticalPathIp
- a String
object.criticalPathServiceName
- a String
object.String
objects.SQLException
- if any.public Set<Integer> getAllNodesDependentOnAnyServiceOnInterface(String criticalPathip)
PathOutageManager
getAllNodesDependentOnAnyServiceOnInterface
in interface PathOutageManager
criticalPathip
- IP address of the interface whose outages would affect other nodespublic Set<Integer> getAllNodesDependentOnAnyServiceOnNode(int nodeId)
PathOutageManager
getAllNodesDependentOnAnyServiceOnNode
in interface PathOutageManager
nodeId
- ID of the node whose outages would affect other nodesCopyright © 2017. All rights reserved.