Package org.apache.karaf.cellar.config

Examples of org.apache.karaf.cellar.config.RemoteConfigurationEvent


        if (configurationMap != null) {
            // update the distributed map
            Properties properties = configurationMap.remove(pid);

            // broadcast the cluster event
            RemoteConfigurationEvent event = new RemoteConfigurationEvent(pid);
            event.setSourceGroup(group);
            event.setType(ConfigurationEvent.CM_DELETED);
            eventProducer.produce(event);
        } else {
            System.out.println("Configuration distributed map not found for cluster group " + groupName);
        }
View Full Code Here


            }
            properties.put(key, value);
            configurationMap.put(pid, properties);

            // broadcast the cluster event
            RemoteConfigurationEvent event = new RemoteConfigurationEvent(pid);
            event.setSourceGroup(group);
            eventProducer.produce(event);
        } else {
            System.out.println("Configuration distributed map not found for cluster group " + groupName);
        }
        return null;
View Full Code Here

                return null;
            }
            configurationMap.put(pid, properties);

            // broadcast the cluster event
            RemoteConfigurationEvent event = new RemoteConfigurationEvent(pid);
            event.setSourceGroup(group);
            eventProducer.produce(event);
        } else {
            System.out.println("Configuration distributed map not found for cluster group " + groupName);
        }
        return null;
View Full Code Here

        if (configurationMap != null) {
            // update the distributed map
            Properties properties = configurationMap.remove(pid);

            // broadcast the cluster event
            RemoteConfigurationEvent event = new RemoteConfigurationEvent(pid);
            event.setSourceGroup(group);
            event.setType(ConfigurationEvent.CM_DELETED);
            eventProducer.produce(event);
        } else {
            throw new IllegalStateException("Configuration distributed map not found for cluster group " + groupName);
        }
    }
View Full Code Here

            }
            properties.put(key, value);
            configurationMap.put(pid, properties);

            // broadcast the cluster event
            RemoteConfigurationEvent event = new RemoteConfigurationEvent(pid);
            event.setSourceGroup(group);
            eventProducer.produce(event);
        } else {
            throw new IllegalStateException("Configuration distributed map not found for cluster group " + groupName);
        }
    }
View Full Code Here

                throw new IllegalStateException("Append failed: current value is not a String");
            }
            configurationMap.put(pid, properties);

            // broadcast the cluster event
            RemoteConfigurationEvent event = new RemoteConfigurationEvent(pid);
            event.setSourceGroup(group);
            eventProducer.produce(event);
        } else {
            System.out.println("Configuration distributed map not found for cluster group " + groupName);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.karaf.cellar.config.RemoteConfigurationEvent

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.