Blog Goal

This Blog is intended to offer and share some relevant information about the jPOS Presentation Manager module.
The project is still under develop but source code is avaible at GitHub.

Sunday, March 21, 2010

New Feature! Monitors

I just added a new feature to Presentation Manager: Monitors.

A monitor is a unit of observation of something, usually a system log, like Q2.log, or a log DataBase table or a transactional table.

Here is the model.



An example monitor is:


<!DOCTYPE entity SYSTEM "cfg/monitor.dtd">
<monitor>
<id>q2</id>
<source class="org.jpos.ee.pm.core.monitor.FileMonitorSource" >
<properties>
<property name="filename" value="log/q2.log" />
</properties>
</source>
<formatter class="org.jpos.ee.pm.core.monitor.MonitorFormatter" />
<delay>3000</delay>
<max>100</max>
</monitor>



The result of monitoring this file is something like



It's an auto-refresh window that shows the tail of the file.

3 comments:

  1. Monitors had suffer a design change. I will post new model soon but definition of xml is exactly as in this post and final result too.

    ReplyDelete
  2. how to run jpopm-vaadin application...

    ReplyDelete
  3. This is certainly as well a really good posting we seriously experienced looking through. It is far from on a daily basis we have risk to check out a little something. http://gecey.com/transparent-monitor

    ReplyDelete