()
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public void run() { |
| 87 | logger.l1("StatPoster activated"); |
| 88 | Echoarea area = FtnTools.getAreaByName(getTechEchoarea(), null); |
| 89 | for (IStatPoster poster : posters) { |
| 90 | String text = poster.getText(); |
| 91 | if (text != null && text.length() != 0) { |
| 92 | FtnTools.writeEchomail(area, poster.getSubject(), text); |
| 93 | logger.l3("Posted stat from robot " |
| 94 | + poster.getClass().getCanonicalName()); |
| 95 | } else { |
| 96 | logger.l3("Empty stat from robot " |
| 97 | + poster.getClass().getCanonicalName()); |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | public String getTechEchoarea() { |
| 103 | return MainHandler.getCurrentInstance().getProperty(STAT_ECHOAREA, |
nothing calls this directly
no test coverage detected