Author: [log in to unmask]
Date: Wed Feb 4 14:48:54 2015
New Revision: 2048
Log:
Change ET monitor to check for events every 10 seconds instead of 1.
Modified:
java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/et/EtSystemMonitor.java
Modified: java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/et/EtSystemMonitor.java
=============================================================================
--- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/et/EtSystemMonitor.java (original)
+++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/et/EtSystemMonitor.java Wed Feb 4 14:48:54 2015
@@ -18,7 +18,8 @@
SystemStatus systemStatus;
int events = 0;
long eventReceivedMillis = 0;
- long warningIntervalMillis = 1000; /* default of 1 second */
+ long warningIntervalMillis = 10000;
+ int timerInterval = 10000;
Timer timer = new Timer("ET Event Monitor");
public EtSystemMonitor() {
@@ -28,6 +29,10 @@
public void setWarningIntervalMillis(long warningIntervalMillis) {
this.warningIntervalMillis = warningIntervalMillis;
+ }
+
+ public void setTimerInterval(int timerInterval) {
+ this.timerInterval = timerInterval;
}
public void startJob() {
@@ -50,7 +55,7 @@
}
};
- timer.schedule(task, 0, 1000);
+ timer.schedule(task, 0, timerInterval);
}
public void process(EtEvent event) {
|