Interface EventUtil

    • Method Detail

      • getHardwareFieldValue

        String getHardwareFieldValue​(String parm,
                                     long nodeId)
      • getIfAlias

        String getIfAlias​(long nodeId,
                          String ipAddr)
                   throws SQLException
        Retrieve ifAlias from the snmpinterface table of the database given a particular nodeId and ipAddr.
        Parameters:
        nodeId - Node identifier
        ipAddr - Interface IP address
        Returns:
        ifAlias Retreived ifAlias
        Throws:
        SQLException - if database error encountered
      • getAssetFieldValue

        String getAssetFieldValue​(String parm,
                                  long nodeId)
        Helper method.
        Parameters:
        parm -
        nodeId -
        Returns:
        The value of an asset field based on the nodeid of the event
      • getForeignId

        String getForeignId​(long nodeId)
                     throws SQLException
        Retrieve foreign id from the node table of the database given a particular nodeId.
        Parameters:
        nodeId - Node identifier
        Returns:
        foreignId Retrieved foreign id
        Throws:
        SQLException - if database error encountered
      • getForeignSource

        String getForeignSource​(long nodeId)
                         throws SQLException
        Retrieve foreign source from the node table of the database given a particular nodeId.
        Parameters:
        nodeId - Node identifier
        Returns:
        foreignSource Retrieved foreign source
        Throws:
        SQLException - if database error encountered
      • getNodeLabel

        String getNodeLabel​(long nodeId)
                     throws SQLException
        Retrieve nodeLabel from the node table of the database given a particular nodeId.
        Parameters:
        nodeId - Node identifier
        Returns:
        nodeLabel Retreived nodeLabel
        Throws:
        SQLException - if database error encountered
      • getNodeLocation

        String getNodeLocation​(long nodeId)
                        throws SQLException
        Retrieve nodeLocation from the node table of the database given a particular nodeId.
        Parameters:
        nodeId - Node identifier
        Returns:
        nodeLocation Retrieved nodeLocation
        Throws:
        SQLException - if database error encountered
      • decodeSnmpV2TcDateAndTime

        Date decodeSnmpV2TcDateAndTime​(BigInteger octetStringValue)