Examples of ZooKeeperGroup


Examples of io.fabric8.groups.internal.ZooKeeperGroup

    @Activate
    void activate(Map<String, ?> configuration) {
        //this.realm =  properties != null && properties.containsKey(REALM_PROPERTY_NAME) ? properties.get(REALM_PROPERTY_NAME) : DEFAULT_REALM;
        //this.role =  properties != null && properties.containsKey(ROLE_PROPERTY_NAME) ? properties.get(ROLE_PROPERTY_NAME) : DEFAULT_ROLE;
        group = new ZooKeeperGroup(curator.get(), ZkPath.OPENSHIFT.getPath(), ControllerNode.class);
        group.add(this);
        group.update(createState());
        group.start();
        activateComponent();
    }
View Full Code Here

Examples of io.fabric8.groups.internal.ZooKeeperGroup

        //Create SRV Records for Services
        CuratorFramework curator = fabricService.get().adapt(CuratorFramework.class);
        for (String groupName : groups) {
            Group<SrvNode> group = activeGroups.get(groupName);
            if (group == null) {
                group = new ZooKeeperGroup(curator, "/fabric/registry/clusters/" + groupName, SrvNode.class);
                group.add(groupListener);
                group.start();
                activeGroups.put(groupName, group);
            }
        }
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.