Interface HwEntityDao

    • Method Detail

      • findRootByNodeId

        OnmsHwEntity findRootByNodeId​(java.lang.Integer nodeId)
        Find root by node id.
        Parameters:
        nodeId - the node id
        Returns:
        the OpenNMS hardware entity
      • findEntityByIndex

        OnmsHwEntity findEntityByIndex​(java.lang.Integer nodeId,
                                       java.lang.Integer entPhysicalIndex)
        Find entity by index.
        Parameters:
        nodeId - the node id
        entPhysicalIndex - the entity physical index
        Returns:
        the OpenNMS hardware entity
      • findEntityByName

        OnmsHwEntity findEntityByName​(java.lang.Integer nodeId,
                                      java.lang.String entPhysicalName)
        Find entity by name.
        Parameters:
        nodeId - the node id
        entPhysicalName - the entity physical name
        Returns:
        the OpenNMS hardware entity
      • getAttributeValue

        java.lang.String getAttributeValue​(java.lang.Integer nodeId,
                                           java.lang.Integer entPhysicalIndex,
                                           java.lang.String attributeName)
        Gets the attribute value.
        Parameters:
        nodeId - the node id
        entPhysicalIndex - the entity physical index
        attributeName - the name of the desired attribute
        Returns:
        the attribute value
      • getAttributeValue

        java.lang.String getAttributeValue​(java.lang.Integer nodeId,
                                           java.lang.String nameSource,
                                           java.lang.String attributeName)
        Gets the attribute value.
        Parameters:
        nodeId - the node id
        nameSource - either the value of entPhysicalName or a regular expression to be applied over the entPhysicalName (should start with '~')
        attributeName - the name of the desired attribute
        Returns:
        the attribute value