MCPcopy Create free account
hub / github.com/annmuor/jnode / run

Method run

jnode-core/src/jnode/stat/threads/StatPoster.java:85–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 7

getAreaByNameMethod · 0.95
getTechEchoareaMethod · 0.95
writeEchomailMethod · 0.95
l1Method · 0.80
l3Method · 0.80
getTextMethod · 0.65
getSubjectMethod · 0.65

Tested by

no test coverage detected