pt.digitalis.dif.utils.monitor
Class MonitorUtil

java.lang.Object
  extended by pt.digitalis.dif.utils.monitor.MonitorUtil

public class MonitorUtil
extends Object

Serves as an abstraction to the monitoring agent in use. Presently New Relic.
All these calls will only be triggers when in developer or testing mode (DIFStartupConfiguration). *

Author:
Pedro Viegas pviegas@digitalis.pt
See Also:
"http://http://newrelic.com/"
Created on:
17 de Ago de 2012

Constructor Summary
MonitorUtil()
           
 
Method Summary
static void addParameter(String key, String value)
          Adds a parameter to the current process for the monitoring agent
static String getBrowserTimingFooter()
           
static String getBrowserTimingHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorUtil

public MonitorUtil()
Method Detail

addParameter

public static void addParameter(String key,
                                String value)
Adds a parameter to the current process for the monitoring agent

Parameters:
key - the parameter key name
value - the parameter value

getBrowserTimingFooter

public static String getBrowserTimingFooter()
Returns:
the JavaScript contribution for the page footer

getBrowserTimingHeader

public static String getBrowserTimingHeader()
Returns:
the JavaScript contribution for the page header


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.