Package org.codehaus.wadi.servicespace

Examples of org.codehaus.wadi.servicespace.LifecycleState


        public ServiceSpaceListenerAdapter(SessionManagerListener listener) {
            this.listener = listener;
        }

        public void receive(ServiceSpaceLifecycleEvent event, Set<Peer> newHostingPeers) {
            LifecycleState state = event.getState();
            if (state == LifecycleState.STARTED) {
                Set<Node> newHostingNodes = mapToNodes(newHostingPeers);
                Node joiningNode = mapToNode(event.getHostingPeer());
                listener.onJoin(joiningNode, newHostingNodes);
            } else if (state == LifecycleState.STOPPED || state == LifecycleState.FAILED) {
View Full Code Here

TOP

Related Classes of org.codehaus.wadi.servicespace.LifecycleState

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.