Class BalancerOperationError

java.lang.Object
org.apache.kafka.clients.admin.BalancerOperationError
Direct Known Subclasses:
BrokerRemovalError

public class BalancerOperationError extends Object
The error that caused a balancer operation (broker removal, broker addition) to end up in the status it is in.
  • Constructor Details

    • BalancerOperationError

      public BalancerOperationError(org.apache.kafka.common.protocol.Errors error, String errorMessage)
  • Method Details

    • exception

      public Exception exception()
      Returns:
      the Exception class that corresponds to this type of error
    • errorCode

      public short errorCode()
      Returns:
      the code of this error
    • errorMessage

      public String errorMessage()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object