topwatch.api.stopwatch.0.3.source-code.sample.stopwatch.properties Maven / Gradle / Ivy
Go to download
Stopwatch is a free, simple, highly extensible, Java API that allows developers to easily monitor
whole application or any part of it. By default Stopwatch generate reports about hits, execution
times (total, average, minimum, maximum) as well as load but it can be easily extended to measure
anything else by providing custom engine. Out of the box Stopwatch uses an in-memory HSQL database.
It is able to persist collected data using a "storage". There is "storage" provided to persist into
HSQL database and custom "storage" can be easily integrated.
The newest version!
# ================================================================================
# $Id$
#
# Copyright 2006 Commsen International
#
# Licensed under the Common Public License, Version 1.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/cpl1.0.txt
#
# THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS
# OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
# ================================================================================
# ================================================================================
#
# This is a example of what "stopwatch.properties" file (the stopwatch configuration)
# should look like. In order to use configure Stopwatch settings, copy this file into
# "stopwatch.properties" on the classpath and uncomment/change as needed.
#
# ================================================================================
#--------------------------------------------------
# Shold Stopwatch be enabled on start-up.
#
# Default value: false
#--------------------------------------------------
activeOnStart=false
#--------------------------------------------------
# Should Stopwatch produce debug information
#
# Default value: false
#--------------------------------------------------
debugEnabled=false
#--------------------------------------------------
# What strategy is to be used for persisting collected data.
#
# NORMAL - Storage manager will insert record into database when "start" method is called and
# update it when "stop" method is called. NOTE: in this case the time taken to insert the
# record into database is added to measurements.
#
# THREAD - same as NORMAL but storage manager runs in separate thread, thus resulting
# in more correct measurements. NOTE: in this case getReport(...) methods may return null
# when called soon after "stop" since storage manager may have not managed to store its data.
#
# DELAYED - Storage manager keeps in memory data gathered on "start" and stores all
# together when "end" is called.
#
# Default value: DELAYED
#--------------------------------------------------
persistenceMode=DELAYED
#--------------------------------------------------
# The fully qualified name of Stopwatch's engine to be used.
#
# Default value: com.commsen.stopwatch.engines.DefaultStopwatchEngine
#--------------------------------------------------
engine=com.commsen.stopwatch.engines.DefaultStopwatchEngine
#engine=com.commsen.stopwatch.engines.MemoryStopwatchEngine
#engine=com.commsen.stopwatch.engines.LoadStopwatchEngine
#--------------------------------------------------
# The fully qualified name of Stopwatch's storage to be used.
#
# Default value: is different for different engines
# for DefaultStopwatchEngine it is com.commsen.stopwatch.storages.DefaultHSQLInMemoryStorage
#--------------------------------------------------
# for com.commsen.stopwatch.engines.DefaultStopwatchEngine
storage=com.commsen.stopwatch.storages.DefaultHSQLInMemoryStorage
# storage=com.commsen.stopwatch.storages.DefaultHSQLStorage
# for com.commsen.stopwatch.engines.MemoryStopwatchEngine
# storage=com.commsen.stopwatch.storages.MemoryHSQLInMemoryStorage
# storage=com.commsen.stopwatch.storages.MemoryHSQLStorage
# for com.commsen.stopwatch.engines.LoadStopwatchEngine
# storage=com.commsen.stopwatch.storages.LoadHSQLInMemoryStorage
# storage=com.commsen.stopwatch.storages.LoadHSQLStorage
#--------------------------------------------------
# Whether Stopwatch should be exposed for management via JMX
#
# Default value: false
#--------------------------------------------------
jmxManaged=false
#--------------------------------------------------
# The name of the JMX MBean server to connect to.
# If not found a new one is created.
#
# Default value: null
#--------------------------------------------------
MBeanServer=Stopwatch dedicated management server
#--------------------------------------------------
# Properties requred to connect to database.
# Ony required if non in-memory storage is set
#--------------------------------------------------
db.driver=org.hsqldb.jdbcDriver
db.connectionString=jdbc:hsqldb:hsql://localhost:9001/stopwatch
db.user=sa
db.password=
db.tableName=stopwatch