Interface IpInterfaceDao

    • Method Detail

      • findByNodeIdAndIpAddress

        OnmsIpInterface findByNodeIdAndIpAddress​(java.lang.Integer nodeId,
                                                 java.lang.String ipAddress)

        findByNodeIdAndIpAddress

        Parameters:
        nodeId - a Integer object.
        ipAddress - a String object.
        Returns:
        a OnmsIpInterface object.
      • findByForeignKeyAndIpAddress

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

        findByForeignKeyAndIpAddress

        Parameters:
        foreignSource - a String object.
        foreignId - a String object.
        ipAddress - a String object.
        Returns:
        a OnmsIpInterface object.
      • findByIpAddress

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

        findByIpAddress

        Parameters:
        ipAddress - a String object.
        Returns:
        a Collection object.
      • findByNodeId

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

        findByNodeId

        Parameters:
        nodeId - a Integer object.
        Returns:
        a Collection object.
      • findByServiceType

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

        findByServiceType

        Parameters:
        svcName - a String object.
        Returns:
        a Collection object.
      • findHierarchyByServiceType

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

        findHierarchyByServiceType

        Parameters:
        svcName - a String object.
        Returns:
        a Collection object.
      • getInterfacesForNodes

        java.util.Map<java.net.InetAddress,​java.lang.Integer> getInterfacesForNodes()
        Returns a map of all IP to node ID mappings in the database.
        Returns:
        a Map object.
      • findPrimaryInterfaceByNodeId

        OnmsIpInterface findPrimaryInterfaceByNodeId​(java.lang.Integer nodeId)
      • findInterfacesWithMetadata

        java.util.List<OnmsIpInterface> findInterfacesWithMetadata​(java.lang.String context,
                                                                   java.lang.String key,
                                                                   java.lang.String value)