} /* }}} String getConfigString */
private Boolean getConfigBoolean (OConfigItem ci) /* {{{ */
{
List<OConfigValue> values;
OConfigValue v;
Boolean b;
values = ci.getValues ();
if (values.size () != 1)
{
Collectd.logError ("GenericJMXConfValue: The " + ci.getKey ()
+ " configuration option needs exactly one boolean argument.");
return (null);
}
v = values.get (0);
if (v.getType () != OConfigValue.OCONFIG_TYPE_BOOLEAN)
{
Collectd.logError ("GenericJMXConfValue: The " + ci.getKey ()
+ " configuration option needs exactly one boolean argument.");
return (null);
}
return (new Boolean (v.getBoolean ()));
} /* }}} String getConfigBoolean */