author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Feb 2009 17:59:04 +0000 (18:59 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Feb 2009 17:59:04 +0000 (18:59 +0100) | ||
commit | 636c770506ab2c0cd6c23f7bd357ac9113a01f44 | |
tree | d08531db33c2903a24b837cb9c68f3809e1fdef3 | tree | snapshot |
parent | 6f521e7354231aa7cba61ea4066f2749aee6932a | commit | diff |
java plugin: Add support for `match' callbacks.
Holy crap, that one needed some serious magic.. The problem is, that the
filter chains are created before the initialization functions are run.
Since the Java plugin used to initialize the JVM and load the classes in
the init function, the match callbacks were not available in time.
The behavior is now: Create the JVM as soon as the the first `LoadPlugin'
option is found and load and configure all Java plugins while in the
configuration phase. (I. e. exactly like C plugins.)
Phew, I've earned that beer now.
Holy crap, that one needed some serious magic.. The problem is, that the
filter chains are created before the initialization functions are run.
Since the Java plugin used to initialize the JVM and load the classes in
the init function, the match callbacks were not available in time.
The behavior is now: Create the JVM as soon as the the first `LoadPlugin'
option is found and load and configure all Java plugins while in the
configuration phase. (I. e. exactly like C plugins.)
Phew, I've earned that beer now.
bindings/java/org/collectd/api/Collectd.java | diff | blob | history | |
bindings/java/org/collectd/api/CollectdMatchFactoryInterface.java | [new file with mode: 0644] | blob |
bindings/java/org/collectd/api/CollectdMatchInterface.java | [new file with mode: 0644] | blob |
src/java.c | diff | blob | history |