Package com.attivio.connector
Class ConcurrentScannerPerformanceAlertRegistration
- java.lang.Object
-
- com.attivio.connector.ConcurrentScannerPerformanceAlertRegistration
-
public class ConcurrentScannerPerformanceAlertRegistration extends java.lang.ObjectContains the details for raising an alert when a low value has been observed for a "long" time. The "too low" values and the period of time that will trigger concern will be configured at the scanner level.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentScannerPerformanceAlertRegistration(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric, long lowPerformanceThreshhould, long minimalTimeOfBadValueToRaiseAlertInMillis, ConcurrentScannerPerformanceAlertHandler alertHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentScannerPerformanceAlertHandlergetAlertHandler()The handler to handle this alert.longgetLowPerformanceThreshhould()When the metric value is <= from this value for at leastConcurrentScannerPerformanceAlertRegistration#getTimeInSecondsan alert is createdConcurrentScannerTaskExecuter.ConcurrentExecutionMetricsgetMetric()java.lang.StringgetMetricName()longgetMinimalTimeOfBadValueToRaiseAlertInMillis()When the metric value is smaller than the threshold for at least this value, an alert is created.voidsetAlertHandler(ConcurrentScannerPerformanceAlertHandler alertHandler)voidsetLowPerformanceThreshhould(long lowPerformanceThreshhould)voidsetMetric(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric)voidsetMinimalTimeOfBadValueToRaiseAlertInMillis(long minimalTimeOfBadValueToRaiseAlertInMillis)
-
-
-
Constructor Detail
-
ConcurrentScannerPerformanceAlertRegistration
public ConcurrentScannerPerformanceAlertRegistration(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric, long lowPerformanceThreshhould, long minimalTimeOfBadValueToRaiseAlertInMillis, ConcurrentScannerPerformanceAlertHandler alertHandler)
-
-
Method Detail
-
getMetricName
public java.lang.String getMetricName()
- Returns:
- The metric we want to generate alerts for
-
getMetric
public ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics getMetric()
-
setMetric
public void setMetric(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric)
-
getLowPerformanceThreshhould
public long getLowPerformanceThreshhould()
When the metric value is <= from this value for at leastConcurrentScannerPerformanceAlertRegistration#getTimeInSecondsan alert is created- Returns:
- threshold value
-
setLowPerformanceThreshhould
public void setLowPerformanceThreshhould(long lowPerformanceThreshhould)
-
getMinimalTimeOfBadValueToRaiseAlertInMillis
public long getMinimalTimeOfBadValueToRaiseAlertInMillis()
When the metric value is smaller than the threshold for at least this value, an alert is created. The alert will get created again after this period if the metric value is still smaller than the threshold.- Returns:
- time in millis
-
setMinimalTimeOfBadValueToRaiseAlertInMillis
public void setMinimalTimeOfBadValueToRaiseAlertInMillis(long minimalTimeOfBadValueToRaiseAlertInMillis)
-
getAlertHandler
public ConcurrentScannerPerformanceAlertHandler getAlertHandler()
The handler to handle this alert.- Returns:
- handler
-
setAlertHandler
public void setAlertHandler(ConcurrentScannerPerformanceAlertHandler alertHandler)
-
-