gpt4 book ai didi

io.fabric8.groups.internal.ZooKeeperGroupFactory类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:56:33 28 4
gpt4 key购买 nike

本文整理了Java中io.fabric8.groups.internal.ZooKeeperGroupFactory类的一些代码示例,展示了ZooKeeperGroupFactory类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperGroupFactory类的具体详情如下:
包路径:io.fabric8.groups.internal.ZooKeeperGroupFactory
类名称:ZooKeeperGroupFactory

ZooKeeperGroupFactory介绍

暂无

代码示例

代码示例来源:origin: io.fabric8.insight/insight-elasticsearch-discovery

@Override
public CuratorFramework addingService(ServiceReference<CuratorFramework> reference) {
  CuratorFramework curator = context.getService(reference);
  try {
    logger.debug("CuratorFramework found, starting group");
    GroupFactory factory = new ZooKeeperGroupFactory(curator);
    singleton = factory.createGroup("/fabric/registry/clusters/elasticsearch/" + clusterName.value(), ESNode.class);
    singleton.add(this);
    singleton.update(new ESNode(clusterName.value(), localNode, false));
    singleton.start();
  } catch (Exception e) {
    LOG.error("Error starting group", e);
  }
  return curator;
}

代码示例来源:origin: jboss-fuse/fabric8

@Override
public CuratorFramework addingService(ServiceReference<CuratorFramework> reference) {
  CuratorFramework curator = context.getService(reference);
  try {
    logger.debug("CuratorFramework found, starting group");
    GroupFactory factory = new ZooKeeperGroupFactory(curator);
    singleton = factory.createGroup("/fabric/registry/clusters/elasticsearch/" + clusterName.value(), ESNode.class);
    singleton.add(this);
    singleton.update(new ESNode(clusterName.value(), localNode, false));
    singleton.start();
  } catch (Exception e) {
    LOG.error("Error starting group", e);
  }
  return curator;
}

代码示例来源:origin: io.fabric8.insight/insight-elasticsearch

@Override
public CuratorFramework addingService(ServiceReference<CuratorFramework> reference) {
  CuratorFramework curator = context.getService(reference);
  try {
    logger.debug("CuratorFramework found, starting group");
    GroupFactory factory = new ZooKeeperGroupFactory(curator);
    singleton = factory.createGroup("/fabric/registry/clusters/elasticsearch/" + clusterName.value(), ESNode.class);
    singleton.add(this);
    singleton.update(new ESNode(clusterName.value(), localNode, false));
    singleton.start();
  } catch (Exception e) {
    LOG.error("Error starting group", e);
  }
  return curator;
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com