Examples of ObrUrlEvent


Examples of org.apache.karaf.cellar.obr.ObrUrlEvent

    public Object doExecute() throws Exception {
        // find the group for the given name
        Group group = groupManager.findGroupByName(groupName);
        // create an event and produce it
        EventProducer producer = eventTransportFactory.getEventProducer(groupName, true);
        ObrUrlEvent event = new ObrUrlEvent(url, Constants.URL_REMOVE_EVENT_TYPE);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
        // remove URL from the distributed map
        Set<String> urls = clusterManager.getSet(Constants.URLS_DISTRIBUTED_SET_NAME + Configurations.SEPARATOR + groupName);
        urls.remove(url);
        // remove bundles from the distributed map
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrUrlEvent

    public Object doExecute() throws Exception {
        // find group for the given name
        Group group = groupManager.findGroupByName(groupName);
        // create an event and produce it
        EventProducer producer = eventTransportFactory.getEventProducer(groupName, true);
        ObrUrlEvent event = new ObrUrlEvent(url, Constants.URL_ADD_EVENT_TYPE);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
        // push the OBR URL in the distributed set
        Set<String> urls = clusterManager.getSet(Constants.URLS_DISTRIBUTED_SET_NAME + Configurations.SEPARATOR + groupName);
        urls.add(url);
        // push the bundles in the OBR distributed set
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrUrlEvent

            }
            obrService.removeRepository(url);
        }

        // create an cluster event and produce it
        ObrUrlEvent event = new ObrUrlEvent(url, Constants.URL_ADD_EVENT_TYPE);
        event.setForce(true);
        event.setSourceGroup(group);
        eventProducer.produce(event);
    }
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrUrlEvent

            }
            obrService.removeRepository(url);
        }

        // create an event and produce it
        ObrUrlEvent event = new ObrUrlEvent(url, Constants.URL_REMOVE_EVENT_TYPE);
        event.setSourceGroup(group);
        eventProducer.produce(event);
    }
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrUrlEvent

            }
            obrService.removeRepository(url);
        }

        // create an event and produce it
        ObrUrlEvent event = new ObrUrlEvent(url, Constants.URL_REMOVE_EVENT_TYPE);
        event.setSourceGroup(group);
        eventProducer.produce(event);

        return null;
    }
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrUrlEvent

            }
            obrService.removeRepository(url);
        }

        // create an cluster event and produce it
        ObrUrlEvent event = new ObrUrlEvent(url, Constants.URL_ADD_EVENT_TYPE);
        event.setForce(true);
        event.setSourceGroup(group);
        eventProducer.produce(event);

        return null;
    }
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.