felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r554441 - /felix/sandbox/donsez/script/monitor.txt
Date Sun, 08 Jul 2007 21:00:18 GMT
Author: donsez
Date: Sun Jul  8 14:00:17 2007
New Revision: 554441

URL: http://svn.apache.org/viewvc?view=rev&rev=554441
Log:
add a script to illustrate the monitor admin service

Added:
    felix/sandbox/donsez/script/monitor.txt   (with props)

Added: felix/sandbox/donsez/script/monitor.txt
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/script/monitor.txt?view=auto&rev=554441
==============================================================================
--- felix/sandbox/donsez/script/monitor.txt (added)
+++ felix/sandbox/donsez/script/monitor.txt Sun Jul  8 14:00:17 2007
@@ -0,0 +1,34 @@
+rem This script illustrates the Monitor Admin service v1.0 (R4 chapter 109)
+rem (c) Apache Felix Project Team, 2006
+rem start the "run" command shell.scriptcmd.jar to run this script
+
+start org.apache.felix.eventadmin.jar
+
+start org.apache.felix.eventadmin.cmd.jar
+
+rem handlers for standard events
+eventadmin subscribe org/osgi/service/monitor
+
+start org.apache.felix.monitor.jar
+
+start org.apache.felix.monitor.sample.memorymonitor.jar
+
+start org.apache.felix.monitor.sample.memorymonitorjob.jar
+
+start org.apache.felix.monitor.sample.usagemonitor.jar
+
+start org.apache.felix.monitor.jobcmd.jar
+
+monitorjob help
+monitorjob variables
+monitorjob start java.lang.runtime/memory.free 5 10
+monitorjob start java.lang.runtime/memory.total  5 10
+monitorjob start monitoradmin.os.linux/memory.free  5 10
+monitorjob jobs
+
+eventadmin list
+
+wait 60
+monitorjob discard java.lang.runtime/memory.free
+monitorjob start java.lang.runtime/memory.free  5
+

Propchange: felix/sandbox/donsez/script/monitor.txt
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message