Class MeasurementsHelper

    • Method Detail

      • getInterfaceDescriptor

        public static String getInterfaceDescriptor​(String snmpifname,
                                                    String snmpifdescr,
                                                    String snmpphysaddr)
        Returns the description of the interface (e.g. eth0-000000).
        Parameters:
        snmpifname -
        snmpifdescr -
        snmpphysaddr -
        Returns:
        the description of the interface (e.g. eth0-000000).
      • getNodeOrNodeSourceDescriptor

        public static String getNodeOrNodeSourceDescriptor​(String nodeId,
                                                           String foreignSource,
                                                           String foreignId)
        Returns the descriptor of the node or node source, depending on the input parameters (e.g. node[<nodeId>] or nodeSource[<foreignSource>:<foreignId>].
        Parameters:
        nodeId -
        foreignSource -
        foreignId -
        Returns:
        the descriptor of the node or node source, depending on the input parameters (e.g. node[<nodeId>] or nodeSource[<foreignSource>:<foreignId>].
      • isRunInOpennmsJvm

        public static boolean isRunInOpennmsJvm()
      • getSpringHelper

        public static SpringHelper getSpringHelper()
      • unmarshal

        public static QueryRequest unmarshal​(String query)
                                      throws net.sf.jasperreports.engine.JRException
        Throws:
        net.sf.jasperreports.engine.JRException
      • marshal

        public static String marshal​(QueryRequest queryRequest)
                              throws net.sf.jasperreports.engine.JRException
        Throws:
        net.sf.jasperreports.engine.JRException