Package org.apache.karaf.cellar.dosgi

Examples of org.apache.karaf.cellar.dosgi.EndpointDescription


            Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
            Map<String, EndpointDescription> remoteEndpoints = clusterManager.getMap(Constants.REMOTE_ENDPOINTS);
            if (remoteEndpoints != null && !remoteEndpoints.isEmpty()) {
                System.out.println(String.format(LIST_FORMAT, "Service Class", "Provider Node"));
                for (Map.Entry<String, EndpointDescription> entry : remoteEndpoints.entrySet()) {
                    EndpointDescription endpointDescription = entry.getValue();
                    String serviceClass = endpointDescription.getServiceClass();
                    Set<Node> nodes = endpointDescription.getNodes();
                    for (Node node : nodes) {
                        System.out.println(String.format(LIST_FORMAT, serviceClass, node.getId()));
                        serviceClass = "";
                    }
                }
View Full Code Here


            Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
            Map<String, EndpointDescription> remoteEndpoints = clusterManager.getMap(Constants.REMOTE_ENDPOINTS);
            if (remoteEndpoints != null && !remoteEndpoints.isEmpty()) {
                System.out.println(String.format(LIST_FORMAT, "Service Class", "Provider Node"));
                for (Map.Entry<String, EndpointDescription> entry : remoteEndpoints.entrySet()) {
                    EndpointDescription endpointDescription = entry.getValue();
                    String serviceClass = endpointDescription.getServiceClass();
                    Set<Node> nodes = endpointDescription.getNodes();
                    for (Node node : nodes) {
                        System.out.println(String.format(LIST_FORMAT, serviceClass, node.getId()));
                        serviceClass = "";
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.karaf.cellar.dosgi.EndpointDescription

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.