Package org.apache.geronimo.clustering

Examples of org.apache.geronimo.clustering.SessionManagerListener


        registerListenerForConnectorUpdates((ReferenceCollection) connectors);
        registerListenerForDeploymentUpdates((ReferenceCollection) idAccessors);
    }

    protected void registerListenerForMembershipUpdates(WADISessionManager sessionManager) {
        sessionManager.registerSessionManagerListener(new SessionManagerListener() {
            public void onJoin(Node joiningNode, Set<Node> newHostingNodes) {
                Set<URI> clonedLocations;
                synchronized (locations) {
                    clonedLocations = new HashSet<URI>(locations);
                }
View Full Code Here


    }
   
    public void testSessionManagerUnregistration() throws Exception {
        recordDoStart();
       
        SessionManagerListener managerListener = (SessionManagerListener) mock(SessionManagerListener.class);
        serviceSpace.addServiceSpaceListener(null);
        modify().args(is.NOT_NULL);

        serviceSpace.removeServiceSpaceListener(null);
        modify().args(is.NOT_NULL);
View Full Code Here

   
    protected abstract class SessionManagerListenerTestTemplate {
        public void executeTest(LifecycleState lifecycleState) throws Exception {
            recordDoStart();
           
            SessionManagerListener managerListener = (SessionManagerListener) mock(SessionManagerListener.class);
           
            serviceSpace.addServiceSpaceListener(null);
            modify().args(new AbstractExpression() {
                public void describeWith(ExpressionDescriber arg0) throws IOException {
                }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.clustering.SessionManagerListener

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.