Examples of IncomingDistributableSessionData


Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                        if (initialLoad && session.isOutdated() == false) {
                            // some one else loaded this
                            return session;
                        }

                        IncomingDistributableSessionData data = this.distributedCacheManager.getSessionData(realId, initialLoad);
                        if (data != null) {
                            session.update(data);
                        } else {
                            // Clunky; we set the session variable to null to indicate
                            // no data so move on
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

            try {
                this.ownershipLock.lockInterruptibly();

                try {
                    if (support.acquireSessionOwnership(this.realId, needNewLock()) == SessionOwnershipSupport.LockResult.ACQUIRED_FROM_CLUSTER) {
                        IncomingDistributableSessionData data = this.distributedCacheManager.getSessionData(this.realId, false);
                        if (data != null) {
                            // We may be out of date re: the distributed cache
                            update(data);
                        }
                    }
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                String owner = entry.getValue();

                long ts = -1;
                DistributableSessionMetadata md = null;
                try {
                    IncomingDistributableSessionData sessionData = this.distributedCacheManager.getSessionData(realId, owner, false);
                    if (sessionData == null) {
                        log.debugf("Metadata unavailable for unloaded session %s", realId);
                        continue;
                    }
                    ts = sessionData.getTimestamp();
                    md = sessionData.getMetadata();
                } catch (Exception e) {
                    // most likely a lock conflict if the session is being updated remotely;
                    // ignore it and use default values for timestamp and maxInactive
                    log.debug("Problem reading metadata for session " + realId + " -- " + e.toString(), e);
                }
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                        if (initialLoad && session.isOutdated() == false) {
                            // some one else loaded this
                            return session;
                        }

                        IncomingDistributableSessionData data = this.distributedCacheManager.getSessionData(realId, initialLoad);
                        if (data != null) {
                            session.update(data);
                        } else {
                            // Clunky; we set the session variable to null to indicate
                            // no data so move on
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                String owner = entry.getValue();

                long ts = -1;
                DistributableSessionMetadata md = null;
                try {
                    IncomingDistributableSessionData sessionData = this.distributedCacheManager.getSessionData(realId, owner, false);
                    if (sessionData == null) {
                        log.debug("Metadata unavailable for unloaded session " + realId);
                        continue;
                    }
                    ts = sessionData.getTimestamp();
                    md = sessionData.getMetadata();
                } catch (Exception e) {
                    // most likely a lock conflict if the session is being updated remotely;
                    // ignore it and use default values for timstamp and maxInactive
                    log.debug("Problem reading metadata for session " + realId + " -- " + e.toString(), e);
                }
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                        if (initialLoad && session.isOutdated() == false) {
                            // some one else loaded this
                            return session;
                        }

                        IncomingDistributableSessionData data = this.distributedCacheManager.getSessionData(realId, initialLoad);
                        if (data != null) {
                            session.update(data);
                        } else {
                            // Clunky; we set the session variable to null to indicate
                            // no data so move on
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                String owner = entry.getValue();

                long ts = -1;
                DistributableSessionMetadata md = null;
                try {
                    IncomingDistributableSessionData sessionData = this.distributedCacheManager.getSessionData(realId, owner, false);
                    if (sessionData == null) {
                        log.debug("Metadata unavailable for unloaded session " + realId);
                        continue;
                    }
                    ts = sessionData.getTimestamp();
                    md = sessionData.getMetadata();
                } catch (Exception e) {
                    // most likely a lock conflict if the session is being updated remotely;
                    // ignore it and use default values for timstamp and maxInactive
                    log.debug("Problem reading metadata for session " + realId + " -- " + e.toString(), e);
                }
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                        if (initialLoad && session.isOutdated() == false) {
                            // some one else loaded this
                            return session;
                        }

                        IncomingDistributableSessionData data = this.distributedCacheManager.getSessionData(realId, initialLoad);
                        if (data != null) {
                            session.update(data);
                        } else {
                            // Clunky; we set the session variable to null to indicate
                            // no data so move on
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                String owner = entry.getValue();

                long ts = -1;
                DistributableSessionMetadata md = null;
                try {
                    IncomingDistributableSessionData sessionData = this.distributedCacheManager.getSessionData(realId, owner, false);
                    if (sessionData == null) {
                        log.debugf("Metadata unavailable for unloaded session %s", realId);
                        continue;
                    }
                    ts = sessionData.getTimestamp();
                    md = sessionData.getMetadata();
                } catch (Exception e) {
                    // most likely a lock conflict if the session is being updated remotely;
                    // ignore it and use default values for timestamp and maxInactive
                    log.debug("Problem reading metadata for session " + realId + " -- " + e.toString(), e);
                }
View Full Code Here

Examples of org.jboss.as.clustering.web.IncomingDistributableSessionData

                        if (initialLoad && session.isOutdated() == false) {
                            // some one else loaded this
                            return session;
                        }

                        IncomingDistributableSessionData data = this.distributedCacheManager.getSessionData(realId, initialLoad);
                        if (data != null) {
                            session.update(data);
                        } else {
                            // Clunky; we set the session variable to null to indicate
                            // no data so move on
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.