Package com.sun.enterprise.ee.web.sessmgmt

Examples of com.sun.enterprise.ee.web.sessmgmt.WebModuleStatistics


     *
     * @return stat for time taken to persist HTTP Session State to back-end
     * store
     */   
    public AverageRangeStatistic getSessionPersistTime() {
        WebModuleStatistics stats = null;
        stats = getWebModuleStatistics();
        if(stats != null) {
            return stats.getValveSaveStat();
        } else {
            return WebModuleStatistics.createDefaultStat(WebModuleStatistics.SESSION_PERSIST_TIME, "millisecond", "Low/High/Average Session Persist Time");
            //return new MutableAverageRangeStatisticImpl(new BoundedRangeStatisticImpl("session_persist_time", "millisecond", 0L, 0L, 0L));
        }       
    }   
View Full Code Here


     *
     * @return Lowest time taken to persist HTTP Session State to back-end
     * store
     */
    public CountStatistic getSessionPersistTimeLow() {
        WebModuleStatistics stats = null;
        stats = getWebModuleStatistics();
        if(stats != null) {
            sessionPersistTimeLow.setCount(stats.getValveSaveLow());
        } else {
            sessionPersistTimeLow.setCount(-1);
        }
        return (CountStatistic) sessionPersistTimeLow.unmodifiableView();       
    }
View Full Code Here

            //locking and unlocking occurs in the superclass invoke now, not here
            //this.unlockSession(request);
            if (isMonitoringEnabled) {           
                long endTime = System.currentTimeMillis();
                long elapsedTime = (endTime - startTime);           
                WebModuleStatistics stats = this.getWebModuleStatistics();
                if(stats != null) {
                    stats.processPipeline(elapsedTime);
                }
            }
        }

    }        
View Full Code Here

   
    /**
     * get the WebModuleStatistics
     */    
    WebModuleStatistics getWebModuleStatistics() {
        WebModuleStatistics stats = null;
        Context ctx = (Context) this.getContainer();
        Manager mgr = ctx.getManager();
        if( !(mgr instanceof StandardManager) ) {
            PersistentManagerBase haMgr = (PersistentManagerBase) mgr;
            stats = (WebModuleStatistics)haMgr.getWebModuleStatistics();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.web.sessmgmt.WebModuleStatistics

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.