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

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


     * module associated with this EEWebModuleStatsImpl.
     *.
     * @return Number of currently active (or potentially active) sessions
     */
    public CountStatistic getActiveSessionsCurrent() {
        ReplicationManagerBase sessMgr = this.getSessionManager();
        if (sessMgr == null) {
            //activeSessionsCurrent.setCount(0);
            return super.getActiveSessionsCurrent();
        } else {
            activeSessionsCurrent.setCount(this.getNumberActiveSessions());
View Full Code Here


     * associated with this EEWebModuleStatsImpl.
     *
     * @return Current number of sessions cached in memory
     */
    public CountStatistic getCachedSessionsCurrent() {
        ReplicationManagerBase sessMgr = this.getSessionManager();
        if (sessMgr == null) {
            cachedSessionsCurrent.setCount(-1);
        } else {
            long cachedSessionsSize = sessMgr.getSessionsCacheSize();
            cachedSessionsCurrent.setCount(cachedSessionsSize);
        }
        return (CountStatistic) cachedSessionsCurrent.unmodifiableView();
    }
View Full Code Here

        passivatedSessionsCurrent.setCount(this.getNumberPassivatedSessions());
        return (CountStatistic) passivatedSessionsCurrent.unmodifiableView();       
    }
   
    private long getNumberCachedSessions() {
        ReplicationManagerBase sessMgr = this.getSessionManager();
        if (sessMgr == null) {
            return -1;
        } else {
            return sessMgr.getSessionsCacheSize();
        }       
    }   
View Full Code Here

            return sessMgr.getSessionsCacheSize();
        }       
    }   
   
    private long getNumberStoredSessions() {
        ReplicationManagerBase sessMgr = this.getSessionManager();
        if (sessMgr == null) {
            return -1;
        } else {
            HAStoreBase store = (HAStoreBase) sessMgr.getStore();
            int numStoredSessions = -1;
            try {
                numStoredSessions = store.getSize();
            } catch (Exception ex) {
                //deliberate no-op
View Full Code Here

TOP

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

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.