org.deegree.services.controller
Class FrontControllerStats

java.lang.Object
  extended by org.deegree.services.controller.FrontControllerStats

public class FrontControllerStats
extends java.lang.Object

Keeps track of request and runtime statistics for the OGCFrontController.

Version:
$Revision: 28027 $, $Date: 2010-11-11 16:39:00 +0100 (Do, 11. Nov 2010) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

Constructor Summary
FrontControllerStats()
           
 
Method Summary
static long getActiveRequests()
          Returns the number of currently active requests, i.e. requests that the OGCFrontController dispatched to service controllers, but that didn't return yet.
static long getAverageResponseTime()
          Returns the average response time for all finished requests.
static org.deegree.geometry.Envelope getCombinedGetMapEnvelope()
           
static long getDispatchedRequests()
          Returns the number of requests that the OGCFrontController dispatched to service controllers.
static java.util.TreeSet<org.deegree.commons.utils.ComparablePair<java.lang.Long,java.lang.String>> getKVPRequests()
           
static long getMaximumResponseTime()
          Returns the maximum response time of all finished requests.
static long getStartingTime()
           
static void incomingKVP(java.lang.String request, long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrontControllerStats

public FrontControllerStats()
Method Detail

incomingKVP

public static void incomingKVP(java.lang.String request,
                               long timestamp)
Parameters:
request - the query string
timestamp -

getDispatchedRequests

public static long getDispatchedRequests()
Returns the number of requests that the OGCFrontController dispatched to service controllers.

Returns:
number of dispatched requests

getActiveRequests

public static long getActiveRequests()
Returns the number of currently active requests, i.e. requests that the OGCFrontController dispatched to service controllers, but that didn't return yet.

Returns:
number of active requests

getAverageResponseTime

public static long getAverageResponseTime()
Returns the average response time for all finished requests.

Returns:
the average response time

getMaximumResponseTime

public static long getMaximumResponseTime()
Returns the maximum response time of all finished requests.

Returns:
the maximum response time

getKVPRequests

public static java.util.TreeSet<org.deegree.commons.utils.ComparablePair<java.lang.Long,java.lang.String>> getKVPRequests()
Returns:
the incoming KVP requests

getStartingTime

public static long getStartingTime()
Returns:
the time of the first request

getCombinedGetMapEnvelope

public static org.deegree.geometry.Envelope getCombinedGetMapEnvelope()
Returns:
an envelope of all the logged GetMap requests


Copyright © 2011. All Rights Reserved.