Пример #1
0
 public void startMonitoring() {
   final String location = this.location.getText();
   final String intervalText = this.interval.getText();
   final String nextTimeout =
       administration.changeInterval(location, Integer.valueOf(intervalText));
   status();
 }
Пример #2
0
 public void status() {
   final Pair<String, String> status = administration.status();
   showMessage();
   message.setText("Interval: " + status.getKey() + " next timeout: " + status.getValue());
 }
Пример #3
0
 public void stopMonitoring() {
   administration.stopPolling();
   status();
 }