@NotThreadSafe public abstract class AbstractExecutorReplicaMovement extends Object
Executor
Modifier and Type | Field and Description |
---|---|
protected org.apache.kafka.clients.admin.ConfluentAdmin |
adminClient |
protected SbkAdminUtils |
adminUtils |
protected ExecutionTaskManager |
executionTaskManager |
protected static org.slf4j.Logger |
LOG |
protected Set<Integer> |
recentlyDemotedBrokers |
protected Set<Integer> |
recentlyRemovedBrokers |
protected AtomicBoolean |
stopRequested |
protected com.linkedin.kafka.cruisecontrol.executor.ReplicationThrottleHelper |
throttleHelper |
protected String |
uuid |
Constructor and Description |
---|
AbstractExecutorReplicaMovement(String executionUuid,
ExecutionTaskManager executionTaskManager,
Set<Integer> recentlyDemotedBrokers,
Set<Integer> recentlyRemovedBrokers,
com.linkedin.kafka.cruisecontrol.executor.ReplicationThrottleHelper throttleHelper,
org.apache.kafka.clients.admin.ConfluentAdmin adminClient,
SbkAdminUtils adminUtils,
AtomicBoolean stopRequested) |
Modifier and Type | Method and Description |
---|---|
void |
maybeReexecuteTasks()
Conditionally re-executes the on-going tasks
|
abstract void |
move(Executor.ExecutionTaskWaiter taskWaiter)
Moves the replicas according to the specific movement
|
protected static final org.slf4j.Logger LOG
protected final String uuid
protected final ExecutionTaskManager executionTaskManager
protected final com.linkedin.kafka.cruisecontrol.executor.ReplicationThrottleHelper throttleHelper
protected final org.apache.kafka.clients.admin.ConfluentAdmin adminClient
protected final SbkAdminUtils adminUtils
protected final AtomicBoolean stopRequested
public AbstractExecutorReplicaMovement(String executionUuid, ExecutionTaskManager executionTaskManager, Set<Integer> recentlyDemotedBrokers, Set<Integer> recentlyRemovedBrokers, com.linkedin.kafka.cruisecontrol.executor.ReplicationThrottleHelper throttleHelper, org.apache.kafka.clients.admin.ConfluentAdmin adminClient, SbkAdminUtils adminUtils, AtomicBoolean stopRequested)
public abstract void move(Executor.ExecutionTaskWaiter taskWaiter) throws InterruptedException
taskWaiter
- InterruptedException
public void maybeReexecuteTasks()