Package com.sun.appserv.util.cache

Examples of com.sun.appserv.util.cache.BaseCache.values()


     * Get the DF' expat list from the replica cache for all the surviving instances.
     */
    private void getDFExpatIdsFromReplica(ExpatListQueryResults results) {
        //iterate over df replicas
        BaseCache replicatedDialogFragmentsCache = getReplicatedDialogFragments();
        Iterator it = replicatedDialogFragmentsCache.values();
        long version = -1L;
        while (it.hasNext()) {
            ReplicationState state = (ReplicationState) it.next();
            String dfId = (String) state.getId();
            //use bekey for mapping
View Full Code Here


        if(replicatedFromInstanceName != null && replicatedFromInstanceName.equalsIgnoreCase(owningInstanceName)) {           
            return;          
        }       
        List idsToRemove = new ArrayList();
        BaseCache replicatedDialogFragmentsCache = getReplicatedDialogFragments();
        Iterator it = replicatedDialogFragmentsCache.values();
        /* todo remove after testing
        Iterator it = replicatedDialogFragments.values();
        */
        while(it.hasNext()) {
            ReplicationState nextState
View Full Code Here

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

        List<ReplicationState> sessionIds = new ArrayList();
        //using set to avoid dups
        HashSet timerIdsSet = new HashSet();
        //iterate over servlet timer replicas
        BaseCache replicatedServletTimersCache = getReplicatedServletTimers();
        Iterator it = replicatedServletTimersCache.values();
        while(it.hasNext()) {
            ReplicationState nextState
                = (ReplicationState)it.next();
            RollingUpgradeUtil.filterOwnershipOfReplicas(owningInstanceName, nextState, timerIdsSet);
        }
View Full Code Here

    HashSet<ExpatListElement> getSipSessionExpatIdsFromReplica(String requestingInstance) {
        //using set to avoid dups
        HashSet expatIds = new HashSet();
        //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

     * 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

            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

    }
   
    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

TOP
Copyright © 2018 www.massapi.com. 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.