storm.kafka.trident
Class GlobalPartitionInformation

java.lang.Object
  extended by storm.kafka.trident.GlobalPartitionInformation
All Implemented Interfaces:
Serializable, Iterable<Partition>

public class GlobalPartitionInformation
extends Object
implements Iterable<Partition>, Serializable

See Also:
Serialized Form

Constructor Summary
GlobalPartitionInformation()
           
 
Method Summary
 void addPartition(int partitionId, Broker broker)
           
 boolean equals(Object obj)
           
 Broker getBrokerFor(Integer partitionId)
           
 List<Partition> getOrderedPartitions()
           
 int hashCode()
           
 Iterator<Partition> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalPartitionInformation

public GlobalPartitionInformation()
Method Detail

addPartition

public void addPartition(int partitionId,
                         Broker broker)

toString

public String toString()
Overrides:
toString in class Object

getBrokerFor

public Broker getBrokerFor(Integer partitionId)

getOrderedPartitions

public List<Partition> getOrderedPartitions()

iterator

public Iterator<Partition> iterator()
Specified by:
iterator in interface Iterable<Partition>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.