ONLY USED ON VERSIONS UP TO 0.9 (not including)


The description on this page is only needed if your using TrayMonitor prior to version 0.9 (not including).


Example of property file

Updated 2011-09-29
The app home folder i ${user.home}\${app.home} (${app.home} = .traymonitor) and the name of the property file is "setting.properties" - but I you compile youself simple change the pom.xml setting. To add your user name to e.g. log files simply use ${user.name}. Below is a working example of a property file.
# Proxy settings
PROXY_HOST=my.proxy.host
PROXY_PORT=8080

# Menus - defined by "MENU1", "MENU2" ...
MENU1=Server one
MENU2=Server two

# Sub menu - defined by "SUB_MENU1" mapping to MENU1 (name|link|type)
SUB_MENU1_1=Open log file|${user.home}/${app.home}/mylog.log|edit
SUB_MENU1_2=SEPARATOR
SUB_MENU1_3=console|http://localhost/console/|page

# Sub menu - defined by "SUB_MENU2" mapping to MENU1 (name|link|type)
SUB_MENU2_1=localhost|http://localhost|page

# Monitors defined here - MONITOR: url|init delay|delay between requests
MONITOR1=http://localhost|1|300|useproxy
MONITOR1_LOG_FILE=${user.home}/${app.home}/mylog.log
MONITOR1_REQUEST_PARAMETER1=Proxy-Remote-User|${user.name}
MONITOR1_THRESHOLD=1000

MONITOR2=http://some-other-domain|1|300
MONITOR2_LOG_FILE=${user.home}/${app.home}/mylog.log

Parameters


Proxy: The proxy settings are defined using PROXY_HOST (for host url) and PROXY_PORT (for port of proxy).

Menus: The menu is defined by MENUx, where x is a number.

Sub menus: The sub menus are defined by SUB_MENUx, where x is a number and maps to a top menu - e.g. SUB_MENU1 maps to MENU1. Sub menus are of the form "name|link|type", where type can be "edit" (use system editor to open link) and "page" (use system browser to browse to link)

Monitors: A monitor is defined by MONITORx, where x is a number. Monitors are of the form "url|init delay|delay between requests|proxy settings". The proxy settings are default no proxy (noproxy), but you can specify it if you want to. To use a proxy simply add "useproxy".
The log file is defined by MONITORx_LOG_FILE, where x is the number of the monitor.
Request parameters (zero to many) is defined by MONITORx_REQUEST_PARAMETERy, where y is a number. Parameters are of the form "key|value".
Threshold added to version 0.8 in order to display if a system reply is to high.