X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=bindings%2Fjava%2Forg%2Fcollectd%2Fjava%2FGenericJMXConfValue.java;fp=bindings%2Fjava%2Forg%2Fcollectd%2Fjava%2FGenericJMXConfValue.java;h=802622c5ec7511c73ba2d27cbf2adbbf155b9df8;hp=48a69273136aeb15edfdc60cd2e64db552b63212;hb=1e2ad9c04635c087e7edd6005a02740b393f2404;hpb=bef004d66a12b74fb64990cd47f681f2efebf5d0 diff --git a/bindings/java/org/collectd/java/GenericJMXConfValue.java b/bindings/java/org/collectd/java/GenericJMXConfValue.java index 48a69273..802622c5 100644 --- a/bindings/java/org/collectd/java/GenericJMXConfValue.java +++ b/bindings/java/org/collectd/java/GenericJMXConfValue.java @@ -70,6 +70,7 @@ class GenericJMXConfValue private List _attributes; private String _instance_prefix; private List _instance_from; + private String _plugin_name; private boolean _is_table; /** @@ -480,6 +481,7 @@ class GenericJMXConfValue this._attributes = new ArrayList (); this._instance_prefix = null; this._instance_from = new ArrayList (); + this._plugin_name = null; this._is_table = false; /* @@ -528,6 +530,12 @@ class GenericJMXConfValue String tmp = getConfigString (child); if (tmp != null) this._instance_from.add (tmp); + else if (child.getKey ().equalsIgnoreCase ("PluginName")) + { + String tmp = getConfigString (child); + if (tmp != null) + this._plugin_name = tmp; + } } else throw (new IllegalArgumentException ("Unknown option: " @@ -582,6 +590,10 @@ class GenericJMXConfValue vl = new ValueList (pd); vl.setType (this._ds_name); + if (this._plugin_name != null) + { + vl.setPlugin (this._plugin_name); + } /* * Build the instnace prefix from the fixed string prefix and the