Package org.apache.geronimo.farm.service

Examples of org.apache.geronimo.farm.service.NodeService


    public void setDiscoveryListener(DiscoveryListener listener) {
        this.listener.setDiscoveryListener(listener);
    }

    public void registerService(URI serviceUri) throws IOException {
        NodeService service = new NodeService(serviceUri);
        this.registeredServices.put(service.getUriString(), service);
    }
View Full Code Here


        NodeService service = new NodeService(serviceUri);
        this.registeredServices.put(service.getUriString(), service);
    }

    public void unregisterService(URI serviceUri) throws IOException {
        NodeService service = new NodeService(serviceUri);
        this.registeredServices.remove(service.getUriString());
    }
View Full Code Here

            NodeServiceVitals vitals = discoveredServices.get(uriString);

            if (vitals == null) {
                try {
                    vitals = serviceVitalsFactory.createSerivceVitals(new NodeService(uriString));

                    discoveredServices.put(uriString, vitals);

                    fireServiceAddEvent(vitals.getService().getUri());
                } catch (URISyntaxException e) {
View Full Code Here

                });
            }
        }

        public void reportFailed(URI serviceUri) {
            final NodeService service = new NodeService(serviceUri);
            NodeServiceVitals serviceVitals = discoveredServices.get(service.getUriString());
            if (serviceVitals != null && serviceVitals.pronounceDead()) {
                fireServiceRemovedEvent(service.getUri());
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.farm.service.NodeService

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.