summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bef004d)
raw | patch | inline | side by side (parent: bef004d)
author | David Crane <davidc@donorschoose.org> | |
Sun, 4 Oct 2015 02:33:00 +0000 (02:33 +0000) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 1 Dec 2015 20:49:57 +0000 (21:49 +0100) |
Issue: #1291
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
bindings/java/org/collectd/java/GenericJMXConfValue.java | patch | blob | history |
diff --git a/bindings/java/org/collectd/java/GenericJMXConfValue.java b/bindings/java/org/collectd/java/GenericJMXConfValue.java
index 48a69273136aeb15edfdc60cd2e64db552b63212..802622c5ec7511c73ba2d27cbf2adbbf155b9df8 100644 (file)
private List<String> _attributes;
private String _instance_prefix;
private List<String> _instance_from;
+ private String _plugin_name;
private boolean _is_table;
/**
this._attributes = new ArrayList<String> ();
this._instance_prefix = null;
this._instance_from = new ArrayList<String> ();
+ this._plugin_name = null;
this._is_table = false;
/*
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: "
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