1 |
|
//---PACKAGE DECLARATION--- |
2 |
< |
package uk.ac.ukc.iscream.client; |
2 |
> |
package uk.org.iscream.client; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
|
import java.util.HashMap; |
6 |
< |
import uk.ac.ukc.iscream.client.*; |
7 |
< |
import uk.ac.ukc.iscream.core.*; |
8 |
< |
import uk.ac.ukc.iscream.util.*; |
9 |
< |
import uk.ac.ukc.iscream.componentmanager.*; |
6 |
> |
import uk.org.iscream.client.*; |
7 |
> |
import uk.org.iscream.core.*; |
8 |
> |
import uk.org.iscream.util.*; |
9 |
> |
import uk.org.iscream.componentmanager.*; |
10 |
|
|
11 |
|
/** |
12 |
|
* Skeleton class for Monitors |
86 |
|
int thresholdLevel = reg.getLastThresholdLevel(); |
87 |
|
String thresholdValue = String.valueOf(reg.getThreshold(thresholdLevel)); |
88 |
|
String timeout = String.valueOf(reg.getAlertTimeout(reg.getLastAlertLevel()) / 1000); |
89 |
< |
if (thresholdLevel == Alert.thresholdNORMAL) { |
89 |
> |
// ensures we display a nice thing if its -1.0 |
90 |
> |
if (thresholdLevel == -1.0) { |
91 |
|
thresholdValue = "-"; |
92 |
|
} |
93 |
|
if (alertLevel == Alert.alertOK) { |