Examples of checkSession()


Examples of org.apache.zookeeper.server.quorum.LearnerSessionTracker.checkSession()

                sessionsWithTimeouts, TICK_TIME, expirer.sid, true);

        // Unknown session
        long sessionId = 0xb100ded;
        try {
            tracker.checkSession(sessionId, null);
            Assert.fail("Unknown session should have failed");
        } catch (SessionExpiredException e) {
            // Get expected exception
        }
View Full Code Here

Examples of org.apache.zookeeper.server.quorum.LearnerSessionTracker.checkSession()

        }

        // Global session
        sessionsWithTimeouts.put(sessionId, CONNECTION_TIMEOUT);
        try {
            tracker.checkSession(sessionId, null);
        } catch (Exception e) {
            Assert.fail("Global session should not fail");
        }

        // Local session
View Full Code Here

Examples of org.apache.zookeeper.server.quorum.LearnerSessionTracker.checkSession()

        // Local session
        sessionId = 0xf005ba11;
        tracker.addSession(sessionId, CONNECTION_TIMEOUT);
        try {
            tracker.checkSession(sessionId, null);
        } catch (Exception e) {
            Assert.fail("Local session should not fail");
        }

        // During session upgrade
View Full Code Here

Examples of org.apache.zookeeper.server.quorum.LearnerSessionTracker.checkSession()

        }

        // During session upgrade
        sessionsWithTimeouts.put(sessionId, CONNECTION_TIMEOUT);
        try {
            tracker.checkSession(sessionId, null);
        } catch (Exception e) {
            Assert.fail("Session during upgrade should not fail");
        }

        // With local session off
View Full Code Here

Examples of org.apache.zookeeper.server.quorum.LearnerSessionTracker.checkSession()

                TICK_TIME, expirer.sid, false);

        // Should be noop
        sessionId = 0xdeadbeef;
        try {
            tracker.checkSession(sessionId, null);
        } catch (Exception e) {
            Assert.fail("Should not get any exception");
        }

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