com.taobao.metamorphosis.cluster.json
类 TopicBroker
java.lang.Object
com.taobao.metamorphosis.cluster.json.TopicBroker
- 所有已实现的接口:
- Serializable
public class TopicBroker
- extends Object
- implements Serializable
Topic's broker info to be registed in zookeeper.
- 从以下版本开始:
- 1.4.3
- 作者:
- dennis
- 另请参见:
- 序列化表格
TopicBroker
public TopicBroker()
TopicBroker
public TopicBroker(int numParts,
String broker)
getNumParts
public int getNumParts()
setNumParts
public void setNumParts(int numParts)
getBroker
public String getBroker()
setBroker
public void setBroker(String broker)
parse
public static TopicBroker parse(String json)
throws Exception
- 抛出:
Exception
toJson
public String toJson()
throws Exception
- 抛出:
Exception
toString
public String toString()
- 覆盖:
- 类
Object
中的 toString
hashCode
public int hashCode()
- 覆盖:
- 类
Object
中的 hashCode
equals
public boolean equals(Object obj)
- 覆盖:
- 类
Object
中的 equals
Copyright © 2010–2013. All rights reserved.