Class IpInterfaceDaoHibernate

    • Constructor Detail

      • IpInterfaceDaoHibernate

        public IpInterfaceDaoHibernate()

        Constructor for IpInterfaceDaoHibernate.

    • Method Detail

      • findByIpAddress

        public java.util.List<OnmsIpInterface> findByIpAddress​(java.lang.String ipAddress)

        findByIpAddress

        Specified by:
        findByIpAddress in interface IpInterfaceDao
        Parameters:
        ipAddress - a String object.
        Returns:
        a Collection object.
      • findByNodeId

        public java.util.List<OnmsIpInterface> findByNodeId​(java.lang.Integer nodeId)

        findByNodeId

        Specified by:
        findByNodeId in interface IpInterfaceDao
        Parameters:
        nodeId - a Integer object.
        Returns:
        a Collection object.
      • findByForeignKeyAndIpAddress

        public OnmsIpInterface findByForeignKeyAndIpAddress​(java.lang.String foreignSource,
                                                            java.lang.String foreignId,
                                                            java.lang.String ipAddress)

        findByForeignKeyAndIpAddress

        Specified by:
        findByForeignKeyAndIpAddress in interface IpInterfaceDao
        Parameters:
        foreignSource - a String object.
        foreignId - a String object.
        ipAddress - a String object.
        Returns:
        a OnmsIpInterface object.
      • findByServiceType

        public java.util.List<OnmsIpInterface> findByServiceType​(java.lang.String svcName)

        findByServiceType

        Specified by:
        findByServiceType in interface IpInterfaceDao
        Parameters:
        svcName - a String object.
        Returns:
        a Collection object.
      • findHierarchyByServiceType

        public java.util.List<OnmsIpInterface> findHierarchyByServiceType​(java.lang.String svcName)

        findHierarchyByServiceType

        Specified by:
        findHierarchyByServiceType in interface IpInterfaceDao
        Parameters:
        svcName - a String object.
        Returns:
        a Collection object.
      • getInterfacesForNodes

        public java.util.Map<java.net.InetAddress,​java.lang.Integer> getInterfacesForNodes()
        TODO: This function should filter out deleted interfaces
        Specified by:
        getInterfacesForNodes in interface IpInterfaceDao
        Returns:
        a Map object.
      • addressExistsWithForeignSource

        public boolean addressExistsWithForeignSource​(java.lang.String ipAddress,
                                                      java.lang.String foreignSource)

        addressExistsWithForeignSource

        Parameters:
        ipAddress - a String object.
        foreignSource - a String object.
        Returns:
        a boolean.