Home » geronimo-2.2-source-release » org.apache.geronimo.management.geronimo.stats » [javadoc | source]

    1   /**
    2    *  Licensed to the Apache Software Foundation (ASF) under one or more
    3    *  contributor license agreements.  See the NOTICE file distributed with
    4    *  this work for additional information regarding copyright ownership.
    5    *  The ASF licenses this file to You under the Apache License, Version 2.0
    6    *  (the "License"); you may not use this file except in compliance with
    7    *  the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    *  Unless required by applicable law or agreed to in writing, software
   12    *  distributed under the License is distributed on an "AS IS" BASIS,
   13    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    *  See the License for the specific language governing permissions and
   15    *  limitations under the License.
   16    */
   17   
   18   package org.apache.geronimo.management.geronimo.stats;
   19   
   20   import javax.management.j2ee.statistics.CountStatistic;
   21   import javax.management.j2ee.statistics.Stats;
   22   import javax.management.j2ee.statistics.TimeStatistic;
   23   
   24   /**
   25    * @version $Rev: 503417 $ $Date: 2007-02-04 06:48:10 -0800 (Sun, 04 Feb 2007) $
   26    * 
   27    */
   28   public interface WebModuleStats extends Stats {
   29       // -----------------------
   30       // static data
   31       // -----------------------
   32   
   33       /**
   34        * @return The cumulative processing times of requests by all servlets in
   35        *         this Context
   36        */
   37       public CountStatistic getProcessingTime();
   38   
   39       /**
   40        * @return The time this context was started.
   41        */
   42       // public CountStatistic getStartTime();
   43       
   44       /**
   45        * @return The time (in milliseconds) it took to start this context.
   46        */
   47       public CountStatistic getStartupTime();
   48   
   49       /**
   50        * Scan the TLD contents of all tag library descriptor files (including
   51        * those inside the jars that are 'accesible' to this webapp) and register
   52        * any application event listeners found there.
   53        * 
   54        * @return
   55        */
   56       public CountStatistic getTldScanTime();
   57   
   58       // -----------------------
   59       // Transient data
   60       // -----------------------
   61   
   62       /**
   63        * Gets the time (in seconds) that an expired session had been alive.
   64        * (count, max, total)
   65        * 
   66        * @return Time (count, max, total) that an expired session had been alive.
   67        */
   68       public TimeStatistic getSessionAliveTime();
   69   
   70       /**
   71        * Returns the total number of sessions created by this manager
   72        * 
   73        * @return Total number of sessions created by this manager
   74        */
   75       public CountStatistic getSessionCount();
   76   
   77       /**
   78        * Gets the number of currently active sessions.
   79        * 
   80        * @return Number of currently active sessions
   81        */
   82       public CountStatistic getActiveSessionCount();
   83   
   84       /**
   85        * Gets the number of sessions that have expired.
   86        * 
   87        * @return Number of sessions that have expired
   88        */
   89       public CountStatistic getExpiredSessionCount();
   90   
   91       /**
   92        * Gets the number of sessions that were not created because the maximum
   93        * number of active sessions was reached.
   94        * 
   95        * @return Number of rejected sessions
   96        */
   97       public CountStatistic getRejectedSessionCount();
   98   
   99   }

Home » geronimo-2.2-source-release » org.apache.geronimo.management.geronimo.stats » [javadoc | source]