public class ConcurrentUsageDetector extends Detector
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer[] |
DEFAULT_ALERT_LEVELS |
static long |
DEFAULT_SLEEP_INTERVAL |
Constructor and Description |
---|
ConcurrentUsageDetector(Notifier notifier) |
ConcurrentUsageDetector(Notifier notifier,
java.lang.Integer[] alertLevels) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
decrement() |
protected java.lang.Integer |
getCurrentUsageLevel() |
java.lang.Integer |
increment() |
void |
run() |
protected void |
sendHighUsageNotice(java.lang.Integer currentLevel,
java.lang.Integer threshold) |
protected void |
sendNormalUsageNotice(java.lang.Integer currentLevel) |
getNotifier, sendMessage
public static final java.lang.Integer[] DEFAULT_ALERT_LEVELS
public static final long DEFAULT_SLEEP_INTERVAL
public ConcurrentUsageDetector(Notifier notifier)
public ConcurrentUsageDetector(Notifier notifier, java.lang.Integer[] alertLevels)
public void run()
protected void sendNormalUsageNotice(java.lang.Integer currentLevel)
protected void sendHighUsageNotice(java.lang.Integer currentLevel, java.lang.Integer threshold)
public java.lang.Integer increment()
public java.lang.Integer decrement()
protected java.lang.Integer getCurrentUsageLevel()
Copyright © 2015 The Admin4J Project. All Rights Reserved.