INNER CODE UNIT · Java
$getReport
RuedigerMoeller/kontraktor · attic/ElasticScheduler.java:509
public IPromise $getReport() {
int count = 0;
for (int i = 0; i < threads.length; i++) {
if ( threads[i] != null ) {
count++;
}
}
return new Promise<>(new SchedulingReport(count,defQSize,isolateCount.get()));
}
@Override
public IPromise<Monitorable[]> $getSubMonitorables() {
DispatcherThread[] current = threads;
int count = 0;
for (int i = 0; i < current.length; i++) {
if ( current[i] != null )
count++;
}