Package com.sun.appserv.util.cache

Examples of com.sun.appserv.util.cache.BaseCache


        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("in " + this.getClass().getName() + ">>processExpiredSipSessionReplicas");
        }
        Collection<SipSessionExtraParams> result = new
                LinkedList<SipSessionExtraParams>();
        BaseCache replicatedSipSessionsCache = getReplicatedSipSessions();
        for(Iterator it = replicatedSipSessionsCache.keys(); it.hasNext();) {
            ReplicationState nextState = (ReplicationState)
                replicatedSipSessionsCache.get((String) it.next());
            if (nextState != null) {
                if(_logger.isLoggable(Level.FINE)) {
                    _logger.fine("in " + this.getClass().getName() +
                        ">>_findByCriteria_ExpiredSipSessions: nextState=" +
                        nextState);
View Full Code Here


        //code assumes that isExpired works for this type of ReplicationState       
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("in " + this.getClass().getName() + ">>processExpiredServletTimerReplicas");           
        }
        int expiredReplicas = 0;
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        for (Iterator it = replicatedServletTimersCache.keys(); it.hasNext();) {
            ReplicationState nextState = (ReplicationState)
                replicatedServletTimersCache.get((String) it.next());
            if (nextState != null) {
                if(_logger.isLoggable(Level.FINE)) {
                    _logger.fine("in " + this.getClass().getName() +
                        ">>processExpiredServletTimerReplicas: nextState=" +
                        nextState);           
View Full Code Here

        //code assumes that isExpired works for this type of ReplicationState
        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("in " + this.getClass().getName() + ">>processExpiredServletTimerReplicas");
        }
        int expiredReplicas = 0;
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        for (Iterator it = replicatedServletTimersCache.keys(); it.hasNext();) {
            ReplicationState nextState = (ReplicationState)
                    replicatedServletTimersCache.get((String) it.next());
            if (nextState != null) {
                if (_logger.isLoggable(Level.FINE)) {
                    _logger.fine("in " + this.getClass().getName() +
                            ">>_findByCriteria_ExpiredServletTimers: nextState=" +
                            nextState);
View Full Code Here

        List replicasToRemove = new ArrayList();
        ReplicationHealthChecker healthChecker = ReplicationHealthChecker.getInstance();
        String correctBuddyReplicaName
            = healthChecker.getReshapeReplicateToInstanceName(null, owningInstanceName, 0L);
        //iterate over http replicas
        BaseCache replicatedSipApplicationSessionsCache = getReplicatedSipApplicationSessions();
        Iterator it = replicatedSipApplicationSessionsCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            if(!RollingUpgradeUtil.filterOwnership(owningInstanceName, correctBuddyReplicaName, nextState, sessionIdsSet)) {
                //we remove this entry if it is not on the correct replica partner - i.e. it is a zombie
View Full Code Here

        List replicasToRemove = new ArrayList();
        ReplicationHealthChecker healthChecker = ReplicationHealthChecker.getInstance();
        String correctBuddyReplicaName
            = healthChecker.getReshapeReplicateToInstanceName(null, owningInstanceName, 0L);
        //iterate over http replicas
        BaseCache replicatedSipSessionsCache = getReplicatedSipSessions();
        Iterator it = replicatedSipSessionsCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            if(!RollingUpgradeUtil.filterOwnership(owningInstanceName, correctBuddyReplicaName, nextState, sessionIdsSet)) {
                //we remove this entry if it is not on the correct replica partner - i.e. it is a zombie
View Full Code Here

        List replicasToRemove = new ArrayList();
        ReplicationHealthChecker healthChecker = ReplicationHealthChecker.getInstance();
        String correctBuddyReplicaName
            = healthChecker.getReshapeReplicateToInstanceName(null, owningInstanceName, 0L);
        //iterate over http replicas
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        Iterator it = replicatedServletTimersCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            if(!RollingUpgradeUtil.filterOwnership(owningInstanceName, correctBuddyReplicaName, nextState, servletTimerIdsSet)) {
                //we remove this entry if it is not on the correct replica partner - i.e. it is a zombie
View Full Code Here

    List<ReplicationState> getSipApplicationSessionReplicas(String owningInstanceName) {
        List<ReplicationState> sessionIds = new ArrayList();
        //using set to avoid dups
        HashSet sessionIdsSet = new HashSet();
        //iterate over sip application session replicas
        BaseCache replicatedSipApplicationSessionsCache = getReplicatedSipApplicationSessions();
        Iterator it = replicatedSipApplicationSessionsCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            RollingUpgradeUtil.filterOwnershipOfReplicas(owningInstanceName, nextState, sessionIdsSet);
        }
View Full Code Here

   
    protected void putSessionInMainStoreCache(Session session) {
        if(session == null) {
            return;
        }
        BaseCache theSessions = this.getMainStoreCache();
        theSessions.put(session.getIdInternal(), session);
    }
View Full Code Here

        BaseCache theSessions = this.getMainStoreCache();
        theSessions.put(session.getIdInternal(), session);
    }
   
    protected Session getSessionFromMainStoreCache(String id) {   
        BaseCache theSessions = this.getMainStoreCache();
        return (Session)theSessions.get(id);
    }   
View Full Code Here

    /**
    * remove a session from the store cache
    * Hercules: added method
    */   
    public void removeSessionFromMainStoreCache(String id) {
        BaseCache theSessions = this.getMainStoreCache();   
        theSessions.remove(id);    
    }   
View Full Code Here

TOP

Related Classes of com.sun.appserv.util.cache.BaseCache

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.