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 Summary
Modifier and TypeMethodDescriptionstatic RebalanceActuatorof(TestApplication<?> node) Returns aRebalanceActuatorinstance using the given node as upstream.static RebalanceActuatorof(io.zeebe.containers.ZeebeNode<?> node) Returns aRebalanceActuatorinstance using the given node as upstream.static RebalanceActuatorReturns aRebalanceActuatorinstance using the given endpoint as upstream.voidTriggers rebalancing on of the cluster leadership.
-
Method Details
-
of
Returns aRebalanceActuatorinstance using the given node as upstream.- Parameters:
node- the node to connect to- Returns:
- a new instance of
RebalanceActuator
-
of
Returns aRebalanceActuatorinstance using the given node as upstream.- Parameters:
node- the node to connect to- Returns:
- a new instance of
RebalanceActuator
-
of
Returns aRebalanceActuatorinstance 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)
-