File tree 5 files changed +28
-21
lines changed
5 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 1
- Zorka 0.6 (2012-12-21 )
1
+ Zorka 0.6 (2012-12-22 )
2
2
----------------------
3
3
4
4
* normalization of xQL queries (all major query languages);
5
5
* normalization of LDAP search queries;
6
6
* file trapper (logs events to files instead of syslog/zabbix/SNMP);
7
7
* composite processing chains and comparator filters;
8
- * zorka API overhaul;
8
+ * zorka API overhaul (yet more refactoring are on the way) ;
9
9
10
10
11
11
Zorka 0.5 (2012-12-07)
Original file line number Diff line number Diff line change @@ -153,22 +153,27 @@ __jboss() {
153
153
154
154
// Catch MX mbean server initialization and register JBoss MBean Server here ...
155
155
156
- jbossMbs = null;
157
-
158
- collect(record) {
159
- synchronized (super) {
160
- if (super.jbossMbs == null) {
161
- mbs = record.get(spy.ON_COLLECT,0);
162
- zorka.registerMbs("jboss", mbs);
163
- super.jbossMbs = mbs;
164
- zorka.log("jboss").debug("Registered JBoss MBean server as 'jboss'");
156
+ __mbsRegister() {
157
+
158
+ jbossMbs = null;
159
+
160
+ process(stage,record) {
161
+ synchronized (super) {
162
+ if (super.jbossMbs == null) {
163
+ mbs = record.get(spy.ON_RETURN,0);
164
+ zorka.registerMbs("jboss", mbs);
165
+ super.jbossMbs = mbs;
166
+ zorka.logInfo("Registered JBoss MBean server as 'jboss'");
167
+ }
165
168
}
169
+ return record;
166
170
}
167
- }
168
-
171
+ return this;
172
+ } // __mbsRegister()
169
173
170
- spy.add(spy.instance().onReturn().withArguments(0)
171
- .lookFor("org.jboss.mx.server.MBeanServerImpl", "<init>").toBsh("jboss"));
174
+ spy.add(spy.instance()
175
+ .onReturn(0, (com.jitlogic.zorka.spy.SpyProcessor)__mbsRegister())
176
+ .include(spy.byMethod("org.jboss.mx.server.MBeanServerImpl", "<init>")));
172
177
173
178
return this;
174
179
}
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ __jboss7() {
124
124
__mbsRegister() {
125
125
jbossMbs = null;
126
126
127
- collect( record) {
127
+ process(stage, record) {
128
128
synchronized (super) {
129
129
if (super.jbossMbs == null) {
130
130
mbs = java.lang.management.ManagementFactory.getPlatformMBeanServer();
@@ -133,14 +133,16 @@ __jboss7() {
133
133
zorka.logInfo("Registered platform mbean server as 'java'");
134
134
}
135
135
}
136
+ return record;
136
137
}
137
138
return this;
138
139
}
139
140
140
141
141
- spy.add(spy.instance().onReturn().withNull()
142
- .include("org.jboss.modules.ModuleLoader", "installMBeanServer")
143
- .toCollector((com.jitlogic.zorka.spy.SpyCollector)__mbsRegister()));
142
+ spy.add(spy.instance()
143
+ .onReturn(spy.FETCH_NULL, (com.jitlogic.zorka.spy.SpyProcessor)__mbsRegister())
144
+ .include(spy.byMethod("org.jboss.modules.ModuleLoader", "installMBeanServer")));
145
+
144
146
145
147
146
148
return this;
Original file line number Diff line number Diff line change 3
3
<groupId >com.jitlogic.zorka</groupId >
4
4
<artifactId >zorka</artifactId >
5
5
<packaging >pom</packaging >
6
- <version >0.5.1-SNAPSHOT </version >
6
+ <version >0.6.0 </version >
7
7
<name >zorka: parent aggregator</name >
8
8
<url >http://www.jitlogic.com/zorka</url >
9
9
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
6
6
<parent >
7
7
<groupId >com.jitlogic.zorka</groupId >
8
8
<artifactId >zorka</artifactId >
9
- <version >0.5.1-SNAPSHOT </version >
9
+ <version >0.6.0 </version >
10
10
</parent >
11
11
<dependencies >
12
12
<dependency >
You can’t perform that action at this time.
0 commit comments