com.taobao.metamorphosis.utils
类 DiamondUtils
java.lang.Object
com.taobao.metamorphosis.utils.DiamondUtils
public class DiamondUtils
- extends Object
与diamond交互工具类
- 作者:
- boyan
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ZK_DATAID
public static final String DEFAULT_ZK_DATAID
- 另请参见:
- 常量字段值
DEFAULT_PARTITIONS_DATAID
public static final String DEFAULT_PARTITIONS_DATAID
- 另请参见:
- 常量字段值
DiamondUtils
public DiamondUtils()
getZkConfig
public static ZkUtils.ZKConfig getZkConfig(Properties props)
- 获取zk配置,如果没有抛出运行时NPE
- 参数:
diamondManager
- timeout
-
- 返回:
getPartitions
public static void getPartitions(Properties properties,
Map<String,List<Partition>> ret)
- 获取某些topic分区总数的信息(某topic共有哪些分区)
Copyright © 2010–2013. All rights reserved.