Class CellLoad

java.lang.Object
org.apache.kafka.common.CellLoad

public class CellLoad extends Object
Represents load information about a cell.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CellLoad(int cellId, double load)
    Represents load information about a cell.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The unique cell Id
    boolean
     
    int
     
    double
    Return the composite load of this cell (incorporating broker load, network limit, storage and CPU limits etc.)
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CellLoad

      public CellLoad(int cellId, double load)
      Represents load information about a cell.
      Parameters:
      cellId - the cell id
      load - composite load of this cell (incorporating broker load, network limit, storage and CPU limits etc.)
  • Method Details

    • cellId

      public int cellId()
      The unique cell Id
      Returns:
      cell ID
    • load

      public double load()
      Return the composite load of this cell (incorporating broker load, network limit, storage and CPU limits etc.)
      Returns:
      cell load
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object