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()
           
TopicBroker(int numParts, String broker)
           
 
方法摘要
 boolean equals(Object obj)
           
 String getBroker()
           
 int getNumParts()
           
 int hashCode()
           
static TopicBroker parse(String json)
           
 void setBroker(String broker)
           
 void setNumParts(int numParts)
           
 String toJson()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.