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)
|
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.