Examples of addFloat()


Examples of org.platformlayer.metrics.MetricTreeObject.addFloat()

      if (value instanceof Float || value instanceof Double) {
        double v = number.doubleValue();
        subtree.addFloat("value", v);
      } else {
        long v = number.longValue();
        subtree.addFloat("value", v);
      }
    } else {
      LOG.info("Skipping metric: " + name);
    }
  }
View Full Code Here

Examples of org.platformlayer.metrics.MetricTreeObject.addFloat()

  public void processMeter(MetricName name, Metered meter, MetricTreeObject tree) throws IOException {
    MetricTreeObject subtree = getSubtree(tree, name);

    // final String sanitizedName = sanitizeName(name);
    subtree.addInt("count", meter.count());
    subtree.addFloat("meanRate", meter.meanRate());
    subtree.addFloat("1MinuteRate", meter.oneMinuteRate());
    subtree.addFloat("5MinuteRate", meter.fiveMinuteRate());
    subtree.addFloat("15MinuteRate", meter.fifteenMinuteRate());
  }
View Full Code Here

Examples of org.platformlayer.metrics.MetricTreeObject.addFloat()

    MetricTreeObject subtree = getSubtree(tree, name);

    // final String sanitizedName = sanitizeName(name);
    subtree.addInt("count", meter.count());
    subtree.addFloat("meanRate", meter.meanRate());
    subtree.addFloat("1MinuteRate", meter.oneMinuteRate());
    subtree.addFloat("5MinuteRate", meter.fiveMinuteRate());
    subtree.addFloat("15MinuteRate", meter.fifteenMinuteRate());
  }

  @Override
View Full Code Here

Examples of org.platformlayer.metrics.MetricTreeObject.addFloat()

    // final String sanitizedName = sanitizeName(name);
    subtree.addInt("count", meter.count());
    subtree.addFloat("meanRate", meter.meanRate());
    subtree.addFloat("1MinuteRate", meter.oneMinuteRate());
    subtree.addFloat("5MinuteRate", meter.fiveMinuteRate());
    subtree.addFloat("15MinuteRate", meter.fifteenMinuteRate());
  }

  @Override
  public void processHistogram(MetricName name, Histogram histogram, MetricTreeObject tree) throws IOException {
View Full Code Here

Examples of utility.GamePacket.addFloat()

        packet.addShort16((short) plant.getSpeciesType().getModelID());
        packet.addShort16((short) plant.getSpeciesTypeID());
        packet.addInt32(plant.getPlayerID());
        packet.addInt32(plant.getZoneID());
        packet.addShort16((short) plant.getBiomass());
        packet.addFloat(plant.getX());
        packet.addFloat(plant.getY());
        packet.addFloat(plant.getZ());
        packet.addShort16((short) plant.getGroupSize());
        packet.addShort16((short) count);
View Full Code Here

Examples of utility.GamePacket.addFloat()

        packet.addShort16((short) plant.getSpeciesTypeID());
        packet.addInt32(plant.getPlayerID());
        packet.addInt32(plant.getZoneID());
        packet.addShort16((short) plant.getBiomass());
        packet.addFloat(plant.getX());
        packet.addFloat(plant.getY());
        packet.addFloat(plant.getZ());
        packet.addShort16((short) plant.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
View Full Code Here

Examples of utility.GamePacket.addFloat()

        packet.addInt32(plant.getPlayerID());
        packet.addInt32(plant.getZoneID());
        packet.addShort16((short) plant.getBiomass());
        packet.addFloat(plant.getX());
        packet.addFloat(plant.getY());
        packet.addFloat(plant.getZ());
        packet.addShort16((short) plant.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
    }
View Full Code Here

Examples of utility.GamePacket.addFloat()

            //max player number
            packet.addShort16((short) world.getMaxPlayers());

            //Character name
            packet.addString(charName);
            packet.addFloat(world.getTimeRate());
        }

        return packet.getBytes();

    }
View Full Code Here

Examples of utility.GamePacket.addFloat()

        packet.addShort16((short) animal.getSpeciesType().getModelID());
        packet.addShort16((short) animal.getSpeciesTypeID());
        packet.addInt32(animal.getPlayerID());
        packet.addInt32(animal.getZoneID());
        packet.addShort16((short) animal.getBiomass());
        packet.addFloat(animal.getX());
        packet.addFloat(animal.getY());
        packet.addFloat(animal.getZ());
        packet.addShort16((short) animal.getGroupSize());
        packet.addShort16((short) count);
View Full Code Here

Examples of utility.GamePacket.addFloat()

        packet.addShort16((short) animal.getSpeciesTypeID());
        packet.addInt32(animal.getPlayerID());
        packet.addInt32(animal.getZoneID());
        packet.addShort16((short) animal.getBiomass());
        packet.addFloat(animal.getX());
        packet.addFloat(animal.getY());
        packet.addFloat(animal.getZ());
        packet.addShort16((short) animal.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.