Skip to content

Commit

Permalink
Merge pull request #203 from fgonzal/master
Browse files Browse the repository at this point in the history
Status: use the 'Environment' class to get the Monitor properties.
  • Loading branch information
ar authored Jan 26, 2021
2 parents 7d9cfc4 + 53d43fa commit ece5bbc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/status/src/main/java/org/jpos/ee/status/Monitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.jpos.q2.QBeanSupport;
import org.jpos.core.XmlConfigurable;
import org.jpos.core.ConfigurationException;
import org.jpos.core.Environment;
import org.jdom2.Element;
import org.hibernate.HibernateException;

Expand Down Expand Up @@ -82,10 +83,10 @@ private void registerTask (Element e)
qf.setConfiguration (obj, e);
timer.schedule (
new MonitorTimerTask (
e.getAttributeValue("id"),
Environment.get(e.getAttributeValue("id")),
(MonitorTask) obj),
getLong (e.getAttributeValue ("delay")),
getLong (e.getAttributeValue ("period"))
getLong (Environment.get(e.getAttributeValue ("delay"))),
getLong (Environment.get(e.getAttributeValue ("period")))
);
}
private long getLong (String l)
Expand Down

0 comments on commit ece5bbc

Please # to comment.