Ejemplo n.º 1
0
  @Override
  @SuppressFBWarnings("BED_BOGUS_EXCEPTION_DECLARATION") // fb nonsense
  public void saveMeasurements(
      final long tableId, final long timeStampMillis, final long... measurements)
      throws IOException {

    try {
      Template.doOnSupplied(
          new HandlerImpl(measurements, Id2Info.getInfo(tableId), timeStampMillis),
          datagramChannelSupplier,
          3,
          1000,
          60000);
    } catch (InterruptedException ex) {
      throw new RuntimeException(ex);
    }
  }
Ejemplo n.º 2
0
 @Override
 public long alocateMeasurements(final MeasurementsInfo measurement, final int sampleTimeMillis) {
   return Id2Info.getId(measurement);
 }