Class PathOutageManagerDaoImpl

  • All Implemented Interfaces:
    PathOutageManager

    public class PathOutageManagerDaoImpl
    extends Object
    implements PathOutageManager
    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.
    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    OpenNMS
    • Constructor Detail

      • PathOutageManagerDaoImpl

        public PathOutageManagerDaoImpl()
    • Method Detail

      • getNodesInPath

        public Set<Integer> getNodesInPath​(String criticalPathIp,
                                           String criticalPathServiceName)

        Retrieve all the nodes in a critical path from the database

        Specified by:
        getNodesInPath in interface PathOutageManager
        Parameters:
        criticalPathIp - IP address of the critical path
        criticalPathServiceName - service name for the critical path
        Returns:
        a List object.
        Throws:
        SQLException - if any.
      • getCriticalPathData

        public 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
        Specified by:
        getCriticalPathData in interface PathOutageManager
        Parameters:
        criticalPathIp - a String object.
        criticalPathServiceName - a String object.
        Returns:
        an array of String objects.
        Throws:
        SQLException - if any.
      • getAllNodesDependentOnAnyServiceOnInterface

        public Set<Integer> getAllNodesDependentOnAnyServiceOnInterface​(String criticalPathip)
        Description copied from interface: PathOutageManager
        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.
        Specified by:
        getAllNodesDependentOnAnyServiceOnInterface in interface PathOutageManager
        Parameters:
        criticalPathip - IP address of the interface whose outages would affect other nodes
        Returns:
        List of node IDs that would be impacted by an outage on the specified interface
      • getAllNodesDependentOnAnyServiceOnNode

        public Set<Integer> getAllNodesDependentOnAnyServiceOnNode​(int nodeId)
        Description copied from interface: PathOutageManager
        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.
        Specified by:
        getAllNodesDependentOnAnyServiceOnNode in interface PathOutageManager
        Parameters:
        nodeId - ID of the node whose outages would affect other nodes
        Returns:
        List of node IDs that would be impacted by an outage on the specified node