#summary readme.txt included in the download
= Java Simon - Simple Monitors for Java =
Version: 3.2.1
This software is distributed under the terms of the FSF Lesser Gnu Public License:
* check "lgpl.txt" in the root directory of the project
* or check it online http://www.gnu.org/licenses/lgpl.html
Check this readme online for updates: http://code.google.com/p/javasimon/wiki/Readme
For development and building see: http://code.google.com/p/javasimon/wiki/Development
== Getting started ==
Easiest way to start with Java Simon is adding Maven depndencies into your Maven project. See http://code.google.com/p/javasimon/wiki/MavenSupport for more.
A monitors in Java Simon is called "Simon". There are two types of Simons available: `Counter` and `Stopwatch`. Counter tracks single long value, its maximum and minimum. Stopwatch measures time and tracks number of measurements (splits), total time, split minimum and maximum, etc.
=== Simon Manager ===
You obtain Simons from the `SimonManager`:
{{{
Stopwatch stopwatch = SimonManager.getStopwatch("org.javasimon.examples.HelloWorld-stopwatch");
}}}
Here we obtained stopwatch Simon. If the Simon is accessed first time it is created. If you access existing Simon, type of the Simon must match - you can't create counter with the same name (unless you destroy the Simon first).
=== Stopwatch ===
Using stopwatch is simple:
{{{
Split split = stopwatch.start(); // returns split object
// here goes the measured code
long time = split.stop(); // returns the split time in ns
}}}
After few runs of your measured code you can get additional information from stopwatch:
{{{
long totalNanos = stopwatch.getTotal();
long maxSplit = stopwatch.getMax();
long minSplit = stopwatch.getMin();
}}}
You can use convenient utility to print the results (note ns/us/ms/s unit after the number):
{{{
System.out.println("Total time: " + SimonUtils.presentNanoTime(totalNanos));
}}}
Or simply print the Simon itself, it has nice `toString` output.
For more check other Resources (lower), you may head to GettingStarted wiki page: http://code.google.com/p/javasimon/wiki/GettingStarted
== Resources ==
Project is hosted on Google Code as "javasimon":
* Homepage: http://www.javasimon.org
* Project page: http://code.google.com/p/javasimon/
* Download: http://code.google.com/p/javasimon/downloads/list
* Javadoc API: http://javasimon.googlecode.com/svn/javadoc/api-3.2/index.html
* Source browser: http://code.google.com/p/javasimon/source/browse/
* Issue tracker: http://code.google.com/p/javasimon/issues/list
* Ohloh page: http://www.ohloh.net/p/javasimon
Project uses following libraries (for Ant build, check dependencies in POMs for Maven build):
* TestNG: http://testng.org/ (test only)
* `testng-6.5.2.jar`
* `jcommander-1.12.jar`
* Spring (core/aop/beans/web/webmvc/test/...): http://www.springsource.org/ (Spring integration)
* `org.springframework.*-3.1.1.RELEASE.jar`
* `aopalliance-1.0.jar`
* `commons-logging-1.1.1.jar`
* SLF4J logging: http://www.slf4j.org/ (logging callback in core module, may not be required during runtime)
* `slf4j-api-1.6.4.jar`
* H2 Database: http://www.h2database.com/ (examples)
* `h2-1.3.166.jar`
* Java EE libraries for Java EE module compilation:
* `servlet-api-2.5.jar`
* `javaee-api-6.0.jar`
* `geronimo-servlet_3.0_spec-1.0.jar` (this one is needed for test run)
== Java Simon name ==
*Java Simon* is the official name of the project with _Simple Monitoring API_ as a subtitle. Codename of the project is *javasimon*. We use word Simon as a synonym for a "monitor" in javadoc or on our wiki - of course we use it only for monitors based on the API. We write Simon mostly with capital S, Java Simon with space and javasimon as a one word with all lowercase. Word javasimon is probably best to use in search engines.
没有合适的资源?快使用搜索试试~ 我知道了~
基于Java的程序监控API Java Simon.zip
共12个文件
jar:9个
txt:2个
war:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 92 浏览量
2023-06-17
00:22:07
上传
评论
收藏 4.24MB ZIP 举报
温馨提示
基于Java的程序监控API Java Simon.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于Java的程序监控API Java Simon.zip (12个子文件)
javasimon-3.2.1
lib
javasimon-examples-3.2.1.jar 82KB
deps
h2-1.3.166.jar 1.21MB
javasimon-console-webapp-3.2.1.war 384KB
javasimon-javaee-3.2.1.jar 20KB
javasimon-jdbc4-3.2.1.jar 40KB
javasimon-core-3.2.1.jar 133KB
javasimon-spring-3.2.1.jar 15KB
javasimon-console-embed-3.2.1.jar 405KB
javasimon-all-3.2.1-javadoc.jar 1.7MB
javasimon-all-3.2.1-sources.jar 576KB
readme.txt 4KB
lgpl.txt 26KB
共 12 条
- 1
资源评论
快乐无限出发
- 粉丝: 1135
- 资源: 7274
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功