@SuppressFBWarnings("EI_EXPOSE_REP2") public SlowOperationDetector(LoggingService loggingServices, OperationRunner[] genericOperationRunners, OperationRunner[] partitionOperationRunners, HazelcastProperties hazelcastProperties, String hzName) { this.logger = loggingServices.getLogger(SlowOperationDetector.class); this.slowOperationThresholdNanos = hazelcastProperties.getNanos(SLOW_OPERATION_DETECTOR_THRESHOLD_MILLIS); this.logPurgeIntervalNanos = hazelcastProperties.getNanos(SLOW_OPERATION_DETECTOR_LOG_PURGE_INTERVAL_SECONDS); this.logRetentionNanos = hazelcastProperties.getNanos(SLOW_OPERATION_DETECTOR_LOG_RETENTION_SECONDS); this.isStackTraceLoggingEnabled = hazelcastProperties.getBoolean(SLOW_OPERATION_DETECTOR_STACK_TRACE_LOGGING_ENABLED); this.genericOperationRunners = genericOperationRunners; this.partitionOperationRunners = partitionOperationRunners; this.genericCurrentOperationData = initCurrentOperationData(genericOperationRunners); this.partitionCurrentOperationData = initCurrentOperationData(partitionOperationRunners); this.enabled = hazelcastProperties.getBoolean(SLOW_OPERATION_DETECTOR_ENABLED); this.detectorThread = newDetectorThread(hzName); }
@SuppressFBWarnings("EI_EXPOSE_REP2") public SlowOperationDetector(LoggingService loggingServices, OperationRunner[] genericOperationRunners, OperationRunner[] partitionOperationRunners, HazelcastProperties hazelcastProperties, String hzName) { this.logger = loggingServices.getLogger(SlowOperationDetector.class); this.slowOperationThresholdNanos = hazelcastProperties.getNanos(SLOW_OPERATION_DETECTOR_THRESHOLD_MILLIS); this.logPurgeIntervalNanos = hazelcastProperties.getNanos(SLOW_OPERATION_DETECTOR_LOG_PURGE_INTERVAL_SECONDS); this.logRetentionNanos = hazelcastProperties.getNanos(SLOW_OPERATION_DETECTOR_LOG_RETENTION_SECONDS); this.isStackTraceLoggingEnabled = hazelcastProperties.getBoolean(SLOW_OPERATION_DETECTOR_STACK_TRACE_LOGGING_ENABLED); this.genericOperationRunners = genericOperationRunners; this.partitionOperationRunners = partitionOperationRunners; this.genericCurrentOperationData = initCurrentOperationData(genericOperationRunners); this.partitionCurrentOperationData = initCurrentOperationData(partitionOperationRunners); this.enabled = hazelcastProperties.getBoolean(SLOW_OPERATION_DETECTOR_ENABLED); this.detectorThread = newDetectorThread(hzName); }