org.apache.kafka.common
Class Node

java.lang.Object
  extended by org.apache.kafka.common.Node

public class Node
extends java.lang.Object

Information about a Kafka node


Constructor Summary
Node(int id, java.lang.String host, int port)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String host()
          The host name for this node
 int id()
          The node id of this node
 int port()
          The port for this node
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(int id,
            java.lang.String host,
            int port)
Method Detail

id

public int id()
The node id of this node


host

public java.lang.String host()
The host name for this node


port

public int port()
The port for this node


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object