Package com.alibaba.wasp.fserver.metrics

Examples of com.alibaba.wasp.fserver.metrics.MetricsFServerWrapper


    }
  }

  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);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.fserver.metrics.MetricsFServerWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.