Search in sources :

Example 1 with TaskRelocationExecutions

use of com.netflix.titus.grpc.protogen.TaskRelocationExecutions in project titus-control-plane by Netflix.

the class ReactorTaskRelocationGrpcService method getLatestTaskRelocationResults.

/**
 * TODO Implement filtering.
 */
public Mono<TaskRelocationExecutions> getLatestTaskRelocationResults(TaskRelocationQuery request) {
    List<TaskRelocationStatus> coreResults = new ArrayList<>(relocationWorkflowExecutor.getLastEvictionResults().values());
    TaskRelocationExecutions grpcResults = toGrpcTaskRelocationExecutions(coreResults);
    return Mono.just(grpcResults);
}
Also used : ArrayList(java.util.ArrayList) RelocationGrpcModelConverters.toGrpcTaskRelocationExecutions(com.netflix.titus.runtime.relocation.endpoint.RelocationGrpcModelConverters.toGrpcTaskRelocationExecutions) TaskRelocationExecutions(com.netflix.titus.grpc.protogen.TaskRelocationExecutions) TaskRelocationStatus(com.netflix.titus.api.relocation.model.TaskRelocationStatus)

Aggregations

TaskRelocationStatus (com.netflix.titus.api.relocation.model.TaskRelocationStatus)1 TaskRelocationExecutions (com.netflix.titus.grpc.protogen.TaskRelocationExecutions)1 RelocationGrpcModelConverters.toGrpcTaskRelocationExecutions (com.netflix.titus.runtime.relocation.endpoint.RelocationGrpcModelConverters.toGrpcTaskRelocationExecutions)1 ArrayList (java.util.ArrayList)1