Search in sources :

Example 1 with PartitionLoadRunnable

use of com.linkedin.kafka.cruisecontrol.servlet.handler.async.runnable.PartitionLoadRunnable in project cruise-control by linkedin.

the class PartitionLoadRequest method handle.

@Override
protected OperationFuture handle(String uuid) {
    OperationFuture future = new OperationFuture(String.format("Get partition load from %d to %d", _parameters.startMs(), _parameters.endMs()));
    pending(future.operationProgress());
    _asyncKafkaCruiseControl.sessionExecutor().submit(new PartitionLoadRunnable(_asyncKafkaCruiseControl, future, _parameters));
    return future;
}
Also used : OperationFuture(com.linkedin.kafka.cruisecontrol.servlet.handler.async.runnable.OperationFuture) PartitionLoadRunnable(com.linkedin.kafka.cruisecontrol.servlet.handler.async.runnable.PartitionLoadRunnable)

Aggregations

OperationFuture (com.linkedin.kafka.cruisecontrol.servlet.handler.async.runnable.OperationFuture)1 PartitionLoadRunnable (com.linkedin.kafka.cruisecontrol.servlet.handler.async.runnable.PartitionLoadRunnable)1