Examples of ExpatListElement


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

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

        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

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

    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

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

    }

    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

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

                        // 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

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

    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

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

    }

    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
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.