org.deegree.services.controller
Class FrontControllerStats

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

public class FrontControllerStats
extends Object

Keeps track of request and runtime statistics for the OGCFrontController.

Version:
$Revision: 31463 $, $Date: 2011-08-08 17:29:10 +0200 (Mon, 08 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

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 Envelope getCombinedGetMapEnvelope()
           
static long getDispatchedRequests()
          Returns the number of requests that the OGCFrontController dispatched to service controllers.
static TreeSet<ComparablePair<Long,String>> getKVPRequests()
           
static long getMaximumResponseTime()
          Returns the maximum response time of all finished requests.
static long getStartingTime()
           
static void incomingKVP(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(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 TreeSet<ComparablePair<Long,String>> getKVPRequests()
Returns:
the incoming KVP requests

getStartingTime

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

getCombinedGetMapEnvelope

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


Copyright © 2011. All Rights Reserved.