Package com.alibaba.wasp

Examples of com.alibaba.wasp.ServerLoad


  public FServerReportResponse fServerReport(RpcController controller,
      FServerReportRequest request) throws ServiceException {
    try {
      ServerLoadProtos sl = request.getLoad();
      this.serverManager.fserverReport(
          ProtobufUtil.toServerName(request.getServer()), new ServerLoad(sl));
      // Up our metrics.
      if (sl != null && this.metricsMaster != null) {
        this.metricsMaster.incrementRequests(sl.getTotalNumberOfRequests());
      }
    } catch (IOException ioe) {
View Full Code Here


    jamonWriter.write("<table class=\"table table-striped\">\n<tr>\n    <th>ServerName</th>\n    <th>Request Per Second</th>\n    <th>Read Request Count</th>\n    <th>Write Request Count</th>\n</tr>\n");
    // 159, 1
   
for (ServerName serverName: serverNames) {

ServerLoad sl = master.getFServerManager().getLoad(serverName);
if (sl != null) {

    // 165, 1
    jamonWriter.write("<tr>\n<td>");
    // 166, 5
    {
      // 166, 5
      __jamon_innerUnit__serverNameLink(jamonWriter, serverName, sl);
    }
    // 166, 66
    jamonWriter.write("</td>\n<td>");
    // 167, 5
    org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sl.getRequestsPerSecond()), jamonWriter);
    // 167, 36
    jamonWriter.write("</td>\n<td>");
    // 168, 5
    org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sl.getReadRequestsCount()), jamonWriter);
    // 168, 36
    jamonWriter.write("</td>\n<td>");
    // 169, 5
    org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sl.getWriteRequestsCount()), jamonWriter);
    // 169, 37
    jamonWriter.write("</td>\n</tr>\n");
    // 171, 1
   
        else {
View Full Code Here

    jamonWriter.write("<table class=\"table table-striped\">\n<tr>\n    <th>ServerName</th>\n    <th>Used Heap</th>\n    <th>Max Heap</th>\n    <th>Memstore Size</th>\n\n</tr>\n");
    // 125, 1
   
for (ServerName serverName: serverNames) {

    ServerLoad sl = master.getFServerManager().getLoad(serverName);
    if (sl != null) {

    // 131, 1
    jamonWriter.write("<tr>\n    <td>");
    // 132, 9
View Full Code Here

   
    int totalEntityGroups = 0;
    int totalRequests = 0;
    for (ServerName serverName: serverNames) {

    ServerLoad sl = master.getFServerManager().getLoad(serverName);
    double requestsPerSecond = 0.0;
    int numEntityGroupsOnline = 0;

    if (sl != null) {
        requestsPerSecond = sl.getRequestsPerSecond();
        numEntityGroupsOnline = sl.getNumberOfEntityGroups();
        totalEntityGroups += sl.getNumberOfEntityGroups();
        // Is this correct?  Adding a rate to a measure.
        totalRequests += sl.getNumberOfRequests();
    }
    long startcode = serverName.getStartcode();

    // 96, 1
    jamonWriter.write("<tr>\n    <td>");
View Full Code Here

    jamonWriter.write("<table class=\"table table-striped\">\n<tr>\n    <th>ServerName</th>\n    <th>Num. Compacting KVs</th>\n    <th>Num. Compacted KVs</th>\n    <th>Compaction Progress</th>\n</tr>\n");
    // 212, 1
   
for (ServerName serverName: serverNames) {

ServerLoad sl = master.getFServerManager().getLoad(serverName);
if (sl != null) {
String percentDone = "";


    // 220, 1
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.ServerLoad

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.