Package com.adahas.tools.jmxeval.response

Examples of com.adahas.tools.jmxeval.response.PerfDataResult


      // process the evals
      jmxEval.process(context);

      // set elapsed time in seconds
      final double elapsedTime = (System.currentTimeMillis() - startTime) / 1000;
      context.getResponse().addPerfData(new PerfDataResult(
          "time", String.valueOf(elapsedTime), "s", null, null, null, null));
     
      // print response
      outputWriter.println(context.getResponse());
     
View Full Code Here


  @Override
  public void process(final Context context) throws EvalException {
    final Object value = context.getVar(var);
   
    // set performance data
    context.getResponse().addPerfData(new PerfDataResult(
        label, value, unit, warning, critical, min, max));
   
    // process child elements
    super.process(context);
  }
View Full Code Here

TOP

Related Classes of com.adahas.tools.jmxeval.response.PerfDataResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.