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

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


        }
        if (id == null) {
            throw new IOException("load of SipApplicationSession failed. The id is null.");
        }
        try {
            ExpatListElement expat = this.getExpatListElementFor(id);
            if (expat != null && expat.isFromActive()) {
                /**
                 * Irrespective of the backing store implementation, if the session
                 * is activated in the remote instance, then we should load it from there.
                 */
                return loadFromRemoteActiveCache(id, expat);
View Full Code Here


        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)this.getSipSessionManager();
        if(mgr.isExpectingExpatIdsMap()) {
            return findSessionViaBroadcast(id, version);
        } else {
            ExpatListElement expat = this.getExpatListElementFor(id);
            if(expat == null) {
                return null;
            } else {
                if(expat.getInstanceName() == null) {
                    return findSessionViaBroadcast(id, version);
                } else {
                    if(_logger.isLoggable(Level.FINE)) {
                        _logger.fine("doing unicast load id = " + id
                            + " version = " + version
                            + "to instance: " + expat.getInstanceName());
                    }
                    return findSessionViaUnicast(id, version, expat.getInstanceName());
                }
            }
        }
    }
View Full Code Here

    public ServletTimerImpl load(String id, String version,
                                 boolean loadDependencies)
            throws IOException, RemoteLockException {
        try {
            ExpatListElement expat = this.getExpatListElementFor(id);
            if (expat != null && expat.isFromActive()) {
                /**
                 * Irrespective of the backing store implementation, if the session
                 * is activated in the remote instance, then we should load it from there.
                 */
                return loadFromRemoteActiveCache(id, expat, loadDependencies);
View Full Code Here

    }

    private ReplicationState findServletTimerViaBroadcastOrUnicast(String id, String version)
        throws BackingStoreException {
        try {
            ExpatListElement expat = this.getExpatListElementFor(id);
            if(expat == null || expat.getInstanceName() == null) {
                return findServletTimerViaBroadcast(id, version);
            } else {
                if(_logger.isLoggable(Level.FINE)) {
                    _logger.fine("doing unicast load id = " + id
                        + " version = " + version
                        + "to instance: " + expat.getInstanceName());
                }
                return findServletTimerViaUnicast(id, version, expat.getInstanceName());
            }
        } finally {
            removeExpatListElementFor(id);
        }
    }
View Full Code Here

                        // no luck, now check lbEnabledList.
                        trustCachedState = !ReplicationHealthChecker.getInstance().
                                getLbEnabledList().contains(replicatingSource);
                    }
                } else {
                    ExpatListElement expat = getExpatListElementFor(id);
                    trustCachedState = (expat == null ||
                            ReplicationUtil.getInstanceName().equals(expat.getInstanceName()));
                }
            } else {
                trustCachedState = (ReplicationUtil.parseLong(version) == localCachedState.getVersion());
            }
        }
View Full Code Here

    public SipSessionDialogImpl load(String id, String version,
                                     boolean loadDependencies)
        throws IOException, RemoteLockException {
        try {
            ExpatListElement expat = this.getExpatListElementFor(id);
            if (expat != null && expat.isFromActive()) {
                /**
                 * Irrespective of the backing store implementation, if the session
                 * is activated in the remote instance, then we should load it from there.
                 */
                return loadFromRemoteActiveCache(id, expat, loadDependencies);
View Full Code Here

    }

    private ReplicationState findSessionViaBroadcastOrUnicast(String id, String version)
        throws BackingStoreException {
        try {
            ExpatListElement expat = this.getExpatListElementFor(id);
            if(expat == null || expat.getInstanceName() == null) {
                return findSessionViaBroadcast(id, version);
            } else {
                if(_logger.isLoggable(Level.FINE)) {
                    _logger.fine("doing unicast load id = " + id + " version = " + version + "to instance: " + expat.getInstanceName());
                }
                return findSessionViaUnicast(id, version, expat.getInstanceName());
            }
        } finally {
            removeExpatListElementFor(id);
        }
    }
View Full Code Here

TOP

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

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.