}
}
private WaspProtos.ServerLoadProtos buildServerLoad(long reportStartTime,
long reportEndTime) {
MetricsFServerWrapper fserverWrapper = this.metricsFServer
.getFServerWrapper();
Collection<EntityGroup> entityGroups = getOnlineEntityGroupsLocalContext();
WaspProtos.ServerLoadProtos.Builder serverLoad = WaspProtos.ServerLoadProtos
.newBuilder();
serverLoad.setNumberOfRequests((int) fserverWrapper.getRequestsPerSecond());
serverLoad.setTotalNumberOfRequests(requestCount.get());
serverLoad.setNumberOfConnections(rpcServer.getNumberOfConnections());
for (EntityGroup entityGroup : entityGroups) {
serverLoad
.addEntityGroupsLoads(createEntityGroupLoad(entityGroup).entityGroupLoadPB);