public void operationLogInit() { DYNAMIC_LOGGER.updateCounterValue(this.operationLogSize, 0); }
@Override public void updateCounterValue(String name, long value) { this.instance.get().updateCounterValue(name, value); }
/** * Reports the number of segment splits and merges related to a particular scale operation on a Stream. Both global * and Stream-specific counters are updated. * * @param scope Scope. * @param streamName Name of the Stream. * @param splits Number of segment splits in the scale operation. * @param merges Number of segment merges in the scale operation. */ public static void reportSegmentSplitsAndMerges(String scope, String streamName, long splits, long merges) { DYNAMIC_LOGGER.updateCounterValue(globalMetricName(SEGMENTS_SPLITS), splits); DYNAMIC_LOGGER.updateCounterValue(nameFromStream(SEGMENTS_SPLITS, scope, streamName), splits); DYNAMIC_LOGGER.updateCounterValue(globalMetricName(SEGMENTS_MERGES), merges); DYNAMIC_LOGGER.updateCounterValue(nameFromStream(SEGMENTS_MERGES, scope, streamName), merges); }