use of build.buildfarm.v1test.BackplaneStatus in project bazel-buildfarm by bazelbuild.
the class MemoryInstance method backplaneStatus.
@Override
public BackplaneStatus backplaneStatus() {
BackplaneStatus.Builder status = BackplaneStatus.newBuilder();
OperationQueueStatus.Builder queueStatus = status.getOperationQueueBuilder();
long totalSize = 0;
for (WorkerQueue queue : queuedOperations) {
long size = queue.operations.size();
queueStatus.addProvisionsBuilder().setName(queue.name).setSize(size);
totalSize += size;
}
queueStatus.setSize(totalSize);
// TODO active workers - available, but not with any discerning identifier, should rectify this
return status.build();
}
Aggregations