LongQuantity quantity = Audits.getLongQuantity(LONG_QUANTITY_ID);
quantity.increment();
}
}
}).start();
final DoubleQuantity doubleQuantity = Audits.getDoubleQuantity(PROVIDED_QUANTITY_ID);
doubleQuantity.setProvider(new AuditProvider() {
public void updateAudit() {
doubleQuantity.set(Math.random());
}
});
Audits.monitorUsedMemoryInMB();
Audits.monitorUsedMemoryInKB();
Audits.monitorNumberOfThreads();