com.taobao.metamorphosis.server.utils
类 TopicConfig

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.Config
      继承者 com.taobao.metamorphosis.server.utils.TopicConfig

public class TopicConfig
extends Config

针对某个topic的特殊配置(不使用全局配置)

从以下版本开始:
2011-8-18 下午2:30:35
作者:
无花,dennis

构造方法摘要
TopicConfig(String topic, int unflushThreshold, int unflushInterval, String dataPath, String deleteWhen, String deletePolicy, int numPartitions, boolean acceptPublish, boolean acceptSubscribe, boolean stat, Map<String,String> filterClassNames)
           
TopicConfig(String topic, MetaConfig metaConfig)
           
 
方法摘要
 void addFilterClass(String group, String className)
           
 TopicConfig clone()
           
 boolean equals(Object obj)
           
 String getDataPath()
           
 String getDeletePolicy()
           
 String getDeleteWhen()
           
 String getFilterClass(String group)
           
 int getNumPartitions()
           
 String getTopic()
           
 int getUnflushInterval()
           
 int getUnflushThreshold()
           
 int hashCode()
           
 boolean isAcceptPublish()
           
 boolean isAcceptSubscribe()
           
 boolean isStat()
           
 void setAcceptPublish(boolean acceptPublish)
           
 void setAcceptSubscribe(boolean acceptSubscribe)
           
 void setDataPath(String dataPath)
           
 void setDeletePolicy(String deletePolicy)
           
 void setDeleteWhen(String deleteWhen)
           
 void setNumPartitions(int numPartitions)
           
 void setStat(boolean stat)
           
 void setTopic(String topic)
           
 void setUnflushInterval(int unflushInterval)
           
 void setUnflushThreshold(int unflushThreshold)
           
 String toString()
           
 
从类 com.taobao.metamorphosis.utils.Config 继承的方法
checkConfigKeys, findBestMatchField, getFieldSet
 
从类 java.lang.Object 继承的方法
finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

TopicConfig

public TopicConfig(String topic,
                   MetaConfig metaConfig)

TopicConfig

public TopicConfig(String topic,
                   int unflushThreshold,
                   int unflushInterval,
                   String dataPath,
                   String deleteWhen,
                   String deletePolicy,
                   int numPartitions,
                   boolean acceptPublish,
                   boolean acceptSubscribe,
                   boolean stat,
                   Map<String,String> filterClassNames)
方法详细信息

addFilterClass

public final void addFilterClass(String group,
                                 String className)

getFilterClass

public final String getFilterClass(String group)

clone

public TopicConfig clone()
覆盖:
Object 中的 clone

isAcceptPublish

public boolean isAcceptPublish()

setAcceptPublish

public void setAcceptPublish(boolean acceptPublish)

isAcceptSubscribe

public boolean isAcceptSubscribe()

setAcceptSubscribe

public void setAcceptSubscribe(boolean acceptSubscribe)

getNumPartitions

public int getNumPartitions()

setNumPartitions

public void setNumPartitions(int numPartitions)

getDeletePolicy

public String getDeletePolicy()

isStat

public boolean isStat()

setStat

public void setStat(boolean stat)

setDeletePolicy

public void setDeletePolicy(String deletePolicy)

getDeleteWhen

public String getDeleteWhen()

setDeleteWhen

public void setDeleteWhen(String deleteWhen)

getDataPath

public String getDataPath()

setDataPath

public void setDataPath(String dataPath)

getTopic

public String getTopic()

setTopic

public void setTopic(String topic)

getUnflushThreshold

public int getUnflushThreshold()

setUnflushThreshold

public void setUnflushThreshold(int unflushThreshold)

getUnflushInterval

public int getUnflushInterval()

setUnflushInterval

public void setUnflushInterval(int unflushInterval)

hashCode

public int hashCode()
覆盖:
Object 中的 hashCode

equals

public boolean equals(Object obj)
覆盖:
Object 中的 equals

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2010–2013. All rights reserved.