Package com.sun.appserv.util.cache

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


    /**
     * Get the SipSession' expat list from the replica cache for all the surviving instances.
     */
    private void getSipSessionExpatIdsFromReplica(ExpatListQueryResults results) {
        //iterate over sip session replicas
        BaseCache replicatedSipSessionsCache = getReplicatedSipSessions();
        Iterator it = replicatedSipSessionsCache.values();
        long version = -1L;
        while (it.hasNext()) {
            ReplicationState state = (ReplicationState) it.next();
            String ssId = (String) state.getId();
            //use bekey for mapping instance ownership
View Full Code Here


    HashSet<ExpatListElement> getServletTimerExpatIdsFromReplica(
            String requestingInstance) {
        //using set to avoid dups
        HashSet expatIds = new HashSet();
        //iterate over servlet timer replicas
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        Iterator it = replicatedServletTimersCache.values();
        long version = -1L;
        while (it.hasNext()) {
            ReplicationState state = (ReplicationState) it.next();
            String stId = (String) state.getId();
            //use bekey for mapping instance ownership
View Full Code Here

    /**
     * Get the ServletTimer' expat list from the replica cache for all the surviving instances.
     */
    private void getServletTimerExpatIdsFromReplica(ExpatListQueryResults results) {
        //iterate over servlet timer replicas
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        Iterator it = replicatedServletTimersCache.values();
        long version = -1L;
        while(it.hasNext()) {
            ReplicationState state = (ReplicationState)it.next();
            String stId = (String)state.getId();
            //use bekey for mapping instance ownership
View Full Code Here

        purgeServletTimersForOwningInstance(owningInstanceName);
    }
   
    void purgeSipApplicationSessionsForOwningInstance(String owningInstanceName) {
        List idsToRemove = new ArrayList();
        BaseCache replicatedSipApplicationSessionsCache = getReplicatedSipApplicationSessions();
        Iterator it = replicatedSipApplicationSessionsCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            SipApplicationSessionExtraParams extraParams =
                SipApplicationSessionExtraParams.getDeserializedExtraParams(
View Full Code Here

    /**
     * Get the SAS' expat list from the replica cache for a given instance.
     */
    HashSet<ExpatListElement> getSASExpatIdsFromReplica(String requestingInstance) {
        HashSet expatIds = new HashSet();
        BaseCache replicatedSipApplicationSessionsCache = getReplicatedSipApplicationSessions();
        Iterator it = replicatedSipApplicationSessionsCache.values();
        long version = -1L;
        while (it.hasNext()) {
            ReplicationState state = (ReplicationState) it.next();
            String sasId = (String) state.getId();
            String rightfulOwner = SipApplicationSessionUtil.
View Full Code Here

    /**
     * Get the SAS' expat list from the replica cache for all the surviving instances.
     */
    private void getSASExpatIdsFromReplica(ExpatListQueryResults results) {
        //iterate over sip application session replicas
        BaseCache replicatedSipApplicationSessionsCache = getReplicatedSipApplicationSessions();
        Iterator it = replicatedSipApplicationSessionsCache.values();
        long version = -1L;
        while (it.hasNext()) {
            ReplicationState state = (ReplicationState) it.next();
            String sasId = (String) state.getId();
            if (sasId != null) {
View Full Code Here

    }   
*/

    void purgeSipSessionsForOwningInstance(String owningInstanceName) {
        List idsToRemove = new ArrayList();
        BaseCache replicatedSipSessionsCache = getReplicatedSipSessions();
        Iterator it = replicatedSipSessionsCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            SipSessionExtraParams extraParams =
                SipSessionExtraParams.getDeserializedExtraParams(
View Full Code Here

        }
    }
   
    void purgeServletTimersForOwningInstance(String owningInstanceName) {       
        List idsToRemove = new ArrayList();
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        Iterator it = replicatedServletTimersCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            ServletTimerExtraParams extraParams =
                ServletTimerExtraParams.getDeserializedExtraParams(
View Full Code Here

                  if(_logger.isLoggable(Level.FINE)) {
              _logger.fine("in " + this.getClass().getName() + ">>processExpiredSipApplicationSessionReplicas");
          }

          int expiredReplicas = 0;
          BaseCache replicatedSipAppSessionsCache = getReplicatedSipApplicationSessions();
          for(Iterator it = replicatedSipAppSessionsCache.keys(); it.hasNext();) {
              ReplicationState nextState = (ReplicationState)
                  replicatedSipAppSessionsCache.get((String) it.next());
              if (nextState != null) {
                  if(_logger.isLoggable(Level.FINE)) {
                      _logger.fine("in " + this.getClass().getName() +
                          ">>_findByCriteria_ExpiredSAS: 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() + ">>processExpiredSipSessionReplicas");           
        }
        int expiredReplicas = 0;
        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() +
                        ">>processExpiredSipSessionReplicas: nextState=" +
                        nextState);           
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.