public class GlobalPartitionInformation extends java.lang.Object implements java.lang.Iterable<Partition>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
myTopic |
Constructor and Description |
---|
GlobalPartitionInformation(java.lang.String topic) |
GlobalPartitionInformation(java.lang.String topic,
java.lang.Boolean bUseTopicNameForPartitionPathId) |
Modifier and Type | Method and Description |
---|---|
void |
addPartition(int partitionId,
Broker broker) |
boolean |
equals(java.lang.Object obj) |
Broker |
getBrokerFor(java.lang.Integer partitionId) |
java.lang.Boolean |
getbUseTopicNameForPartitionPathId() |
java.util.List<Partition> |
getOrderedPartitions() |
java.lang.String |
getTopic() |
int |
hashCode() |
java.util.Iterator<Partition> |
iterator() |
java.lang.String |
toString() |
public GlobalPartitionInformation(java.lang.String topic, java.lang.Boolean bUseTopicNameForPartitionPathId)
public GlobalPartitionInformation(java.lang.String topic)
public void addPartition(int partitionId, Broker broker)
public java.lang.Boolean getbUseTopicNameForPartitionPathId()
public java.lang.String toString()
toString
in class java.lang.Object
public Broker getBrokerFor(java.lang.Integer partitionId)
public java.util.List<Partition> getOrderedPartitions()
public java.lang.String getTopic()
public java.util.Iterator<Partition> iterator()
iterator
in interface java.lang.Iterable<Partition>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object