Ticket #223: pcwebmonitor.xml

File pcwebmonitor.xml, 5.3 KB (added by liubixiao, 12 years ago)

组件配置

Line 
1<jwebap>
2        <plugin name="Tracer" ref="${ABSOLUTE_PATH}/pc-web-monitor.jar" />
3        <component name="MethodComponent"
4                type="org.jwebap.plugin.tracer.method.MethodComponent">
5                <component-param style="longtext">
6                        <description>package name and class name that monitored by
7                                MethodComponent, e.g.: 'test.*;test.Test' , divided by ';'
8                        </description>
9                        <name>detect-clazzs</name>
10                        <value></value>
11                </component-param>
12                <component-param style="text">
13                        <description>max over-time trace size</description>
14                        <name>trace-max-size</name>
15                        <value>1000</value>
16                </component-param>
17                <component-param style="text">
18                        <description>(ms) timings filter's over time</description>
19                        <name>trace-filter-active-time</name>
20                        <value>-1</value>
21                </component-param>
22        </component>
23        <component name="JdbcComponent" type="org.jwebap.plugin.tracer.jdbc.JdbcComponent">
24                <component-param style="longtext">
25                        <description>Connection Listener</description>
26                        <name>connection-listener</name>
27                        <value>org.jwebap.plugin.tracer.http.ServletOpenedConnectionListener;org.jwebap.plugin.tracer.method.MethodOpenedConnectionListener
28                        </value>
29                </component-param>
30                <component-param style="text">
31                        <description>max over-time trace size</description>
32                        <name>trace-max-size</name>
33                        <value>1000</value>
34                </component-param>
35                <component-param style="text">
36                        <description>(ms) timings filter's over time</description>
37                        <name>trace-filter-active-time</name>
38                        <value>-1</value>
39                </component-param>
40                <component-param style="longtext">
41                        <description> 1)Local datasource: set your ConnectionManagerClass,or
42                                the connection pool 's datasource. If you have more than one class
43                                ,divided by ';'. c3p0:com.mchange.v2.c3p0.ComboPooledDataSource;
44                                dbcp: org.apache.commons.dbcp.BasicDataSource Also,other class.
45                                Jwebap will inject driver-clazzs,and detect any connection and
46                                datasource object it's method renturn. Note: 'driver-clazzs =jdbc
47                                driver' is deprecated. Beacause of connection pool, set
48                                'driver-clazzs =jdbc driver', jwebap will find out all connection is
49                                leaked. 2)JNDI datasource: If your application uses jndi datasource,
50                                you can set the class which manages connections in your application
51                                as driver, e.g.: 'com.china.telecom.ConnectionManager'. Else if you
52                                use spring to get jndi datasource ,you also can set
53                                driver-clazzs=org.springframework.jndi.JndiObjectFactoryBean will
54                                inject this class to proxy all connection the class's method return.
55
56                        </description>
57                        <name>driver-clazzs</name>
58                        <!-- <value>org.springframework.jndi.JndiObjectFactoryBean</value> -->
59                        <value>org.springframework.jdbc.core.JdbcTemplate</value>
60                </component-param>
61        </component>
62        <component name="HttpComponent" type="org.jwebap.plugin.tracer.http.HttpComponent">
63                <component-param style="text">
64                        <description>max over-time trace size</description>
65                        <name>trace-max-size</name>
66                        <value>1000</value>
67                </component-param>
68                <component-param style="text">
69                        <description>(ms) timings filter's over time</description>
70                        <name>trace-filter-active-time</name>
71                        <value>-1</value>
72                </component-param>
73        </component>
74        <component name="MemCachedComponent"
75                type="org.jwebap.plugin.tracer.memcached.MemCachedComponent">
76                <component-param style="longtext">
77                        <description>MemCached Listener</description>
78                        <name>memcached-listener</name>
79                        <value>org.jwebap.plugin.tracer.http.ServletMemCachedListener;org.jwebap.plugin.tracer.method.MethodMemCachedListener
80                        </value>
81                </component-param>
82        </component>
83        <dispatcher name="RedirectDispatcher" mapping=""
84                type="org.jwebap.ui.controler.DefaultRedirectDispatcher" />
85        <dispatcher name="ActionDispatcher" mapping="/console/*"
86                type="org.jwebap.ui.controler.ActionDispatcher" />
87        <dispatcher name="ResourceDispatcher" mapping="/resources/*"
88                type="org.jwebap.ui.controler.ResourceDispatcher" />
89        <action-mapping>
90                <action path="/" component="" type="org.jwebap.ui.action.EmptyAction"
91                        template="resources/view/index.ctl" />
92                <!-- <action path="/deploy/plugins" component="" type="org.jwebap.ui.action.EmptyAction"
93                        template="resources/view/plugin_deploy.ctl"/> <action path="/deploy/plugins/list"
94                        component="" type="org.jwebap.ui.action.PluginListAction" template=""/> <action
95                        path="/deploy/plugins/remove" component="" type="org.jwebap.ui.action.PluginRemoveAction"
96                        template=""/> <action path="/deploy/plugins/new" component="" type="org.jwebap.ui.action.PluginFormAction"
97                        template="resources/view/plugin_deploy_new.ctl"/> <action path="/deploy/plugins/add"
98                        component="" type="org.jwebap.ui.action.PluginAddAction" template=""/> -->
99                <action path="/deploy/plugins/detail" component=""
100                        type="org.jwebap.ui.action.EmptyAction" template="resources/view/plugin_detail.ctl" />
101                <action path="/deploy/plugins/components/list" component=""
102                        type="org.jwebap.ui.action.ComponentListAction" template="" />
103                <action path="/deploy/plugins/components/detail" component=""
104                        type="org.jwebap.ui.action.ComponentFormAction" template="resources/view/component_detail.ctl" />
105                <action path="/deploy/plugins/components/save" component="" type="org.jwebap.ui.action.SwitchSaveAction"
106                        template=""/>
107        </action-mapping>
108        <monitor-path path0="/data/pc-data1/monitor0/" path15="/data/pc-data1/monitor15/" rootPath="/bbs7/detect/console/"/>
109</jwebap>