Examples of ClusterRepositoryEvent


Examples of org.apache.karaf.cellar.features.ClusterRepositoryEvent

                // un-register the repository if it's not local registered
                if (!localRegistered)
                    featuresService.removeRepository(new URI(url));

                // broadcast the cluster event
                ClusterRepositoryEvent event = new ClusterRepositoryEvent(url, RepositoryEvent.EventType.RepositoryAdded);
                event.setInstall(install);
                event.setSourceGroup(group);
                eventProducer.produce(event);
            } else {
                throw new IllegalArgumentException("Features repository URL " + url + " already registered");
            }
        } finally {
View Full Code Here

Examples of org.apache.karaf.cellar.features.ClusterRepositoryEvent

            // un-register the repository if it's not local registered
            if (!localRegistered)
                featuresService.removeRepository(new URI(url));

            // broadcast a cluster event
            ClusterRepositoryEvent event = new ClusterRepositoryEvent(url, RepositoryEvent.EventType.RepositoryRemoved);
            event.setUninstall(uninstall);
            event.setSourceGroup(group);
            eventProducer.produce(event);
        } else {
            throw new IllegalArgumentException("Features repository URL " + url + " not found");
        }
    }
View Full Code Here

Examples of org.apache.karaf.cellar.features.ClusterRepositoryEvent

                    // un-register the repository if it's not local registered
                    if (!localRegistered)
                        featuresService.removeRepository(new URI(url));

                    // broadcast the cluster event
                    ClusterRepositoryEvent event = new ClusterRepositoryEvent(url, RepositoryEvent.EventType.RepositoryAdded);
                    event.setSourceGroup(group);
                    event.setInstall(install);
                    eventProducer.produce(event);
                } else {
                    System.err.println("Repository URL " + url + " already registered");
                }
            }
View Full Code Here

Examples of org.apache.karaf.cellar.features.ClusterRepositoryEvent

                // un-register the repository if it's not local registered
                if (!localRegistered)
                    featuresService.removeRepository(new URI(url));

                // broadcast a cluster event
                ClusterRepositoryEvent event = new ClusterRepositoryEvent(url, RepositoryEvent.EventType.RepositoryRemoved);
                event.setUninstall(uninstall);
                event.setSourceGroup(group);
                eventProducer.produce(event);
            } else {
                System.err.println("Repository URL " + url + " not found");
            }
        }
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.