本文整理了Java中org.apache.samza.zk.ZkCoordinationUtils
类的一些代码示例,展示了ZkCoordinationUtils
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkCoordinationUtils
类的具体详情如下:
包路径:org.apache.samza.zk.ZkCoordinationUtils
类名称:ZkCoordinationUtils
暂无
代码示例来源:origin: org.apache.samza/samza-core_2.11
public CoordinationUtils getCoordinationUtils(String groupId, String participantId, Config config) {
ZkConfig zkConfig = new ZkConfig(config);
ZkClient zkClient =
createZkClient(zkConfig.getZkConnect(), zkConfig.getZkSessionTimeoutMs(), zkConfig.getZkConnectionTimeoutMs());
ZkUtils zkUtils = new ZkUtils(new ZkKeyBuilder(groupId), zkClient, zkConfig.getZkConnectionTimeoutMs(), zkConfig.getZkSessionTimeoutMs(),
new NoOpMetricsRegistry());
return new ZkCoordinationUtils(participantId, zkConfig, zkUtils);
}
代码示例来源:origin: apache/samza
public CoordinationUtils getCoordinationUtils(String groupId, String participantId, Config config) {
ZkConfig zkConfig = new ZkConfig(config);
ZkClient zkClient =
createZkClient(zkConfig.getZkConnect(), zkConfig.getZkSessionTimeoutMs(), zkConfig.getZkConnectionTimeoutMs());
ZkUtils zkUtils = new ZkUtils(new ZkKeyBuilder(groupId), zkClient, zkConfig.getZkConnectionTimeoutMs(), zkConfig.getZkSessionTimeoutMs(),
new NoOpMetricsRegistry());
return new ZkCoordinationUtils(participantId, zkConfig, zkUtils);
}
代码示例来源:origin: org.apache.samza/samza-core
public CoordinationUtils getCoordinationUtils(String groupId, String participantId, Config config) {
ZkConfig zkConfig = new ZkConfig(config);
ZkClient zkClient =
createZkClient(zkConfig.getZkConnect(), zkConfig.getZkSessionTimeoutMs(), zkConfig.getZkConnectionTimeoutMs());
ZkUtils zkUtils = new ZkUtils(new ZkKeyBuilder(groupId), zkClient, zkConfig.getZkConnectionTimeoutMs(), zkConfig.getZkSessionTimeoutMs(),
new NoOpMetricsRegistry());
return new ZkCoordinationUtils(participantId, zkConfig, zkUtils);
}
代码示例来源:origin: org.apache.samza/samza-core_2.10
public CoordinationUtils getCoordinationUtils(String groupId, String participantId, Config config) {
ZkConfig zkConfig = new ZkConfig(config);
ZkClient zkClient =
createZkClient(zkConfig.getZkConnect(), zkConfig.getZkSessionTimeoutMs(), zkConfig.getZkConnectionTimeoutMs());
ZkUtils zkUtils = new ZkUtils(new ZkKeyBuilder(groupId), zkClient, zkConfig.getZkConnectionTimeoutMs(), zkConfig.getZkSessionTimeoutMs(),
new NoOpMetricsRegistry());
return new ZkCoordinationUtils(participantId, zkConfig, zkUtils);
}
代码示例来源:origin: org.apache.samza/samza-core_2.12
public CoordinationUtils getCoordinationUtils(String groupId, String participantId, Config config) {
ZkConfig zkConfig = new ZkConfig(config);
ZkClient zkClient =
createZkClient(zkConfig.getZkConnect(), zkConfig.getZkSessionTimeoutMs(), zkConfig.getZkConnectionTimeoutMs());
ZkUtils zkUtils = new ZkUtils(new ZkKeyBuilder(groupId), zkClient, zkConfig.getZkConnectionTimeoutMs(), zkConfig.getZkSessionTimeoutMs(),
new NoOpMetricsRegistry());
return new ZkCoordinationUtils(participantId, zkConfig, zkUtils);
}
内容来源于网络,如有侵权,请联系作者删除!