storm.kafka
Class Broker

java.lang.Object
  extended by storm.kafka.Broker
All Implemented Interfaces:
Serializable, Comparable<Broker>

public class Broker
extends Object
implements Serializable, Comparable<Broker>

See Also:
Serialized Form

Field Summary
 String host
           
 int port
           
 
Constructor Summary
Broker(String host)
           
Broker(String host, int port)
           
 
Method Summary
 int compareTo(Broker o)
           
 boolean equals(Object obj)
           
static Broker fromString(String host)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public String host

port

public int port
Constructor Detail

Broker

public Broker(String host,
              int port)

Broker

public Broker(String host)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

fromString

public static Broker fromString(String host)

compareTo

public int compareTo(Broker o)
Specified by:
compareTo in interface Comparable<Broker>


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