Interface RebalanceActuator


public interface RebalanceActuator
Java interface for the node's rebalance actuator. To instantiate this interface, you can use Feign; see of(String) as an example.

You can use one of of(String) or of(ZeebeNode) to create a new client to use for yourself.

Adding a new method is simple: simply define the input/output here as you normally would, and make sure to add the correct JSON encoding headers (`Accept` for the response type, `Content-Type` if there's a body to send). See LoggersActuator for a more complete example.

  • Method Details

    • of

      static RebalanceActuator of(io.zeebe.containers.ZeebeNode<?> node)
      Returns a RebalanceActuator instance using the given node as upstream.
      Parameters:
      node - the node to connect to
      Returns:
      a new instance of RebalanceActuator
    • of

      static RebalanceActuator of(TestApplication<?> node)
      Returns a RebalanceActuator instance using the given node as upstream.
      Parameters:
      node - the node to connect to
      Returns:
      a new instance of RebalanceActuator
    • of

      static RebalanceActuator of(String endpoint)
      Returns a RebalanceActuator instance using the given endpoint as upstream. The endpoint is expected to be a complete absolute URL, e.g. "http://localhost:9600/actuator/partitions".
      Parameters:
      endpoint - the actuator URL to connect to
      Returns:
      a new instance of RebalanceActuator
    • rebalance

      void rebalance()
      Triggers rebalancing on of the cluster leadership.
      Throws:
      feign.FeignException - if the request is not successful (e.g. 4xx or 5xx)