projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GenericJMX plugin: Close and re-open the connection upon I/O-errors.
[collectd.git]
/
bindings
/
java
/
org
/
collectd
/
java
/
GenericJMXConfConnection.java
diff --git
a/bindings/java/org/collectd/java/GenericJMXConfConnection.java
b/bindings/java/org/collectd/java/GenericJMXConfConnection.java
index
7214fd7
..
ffa9ded
100644
(file)
--- a/
bindings/java/org/collectd/java/GenericJMXConfConnection.java
+++ b/
bindings/java/org/collectd/java/GenericJMXConfConnection.java
@@
-208,7
+208,16
@@
private void connect () /* {{{ */
pd.setPlugin ("GenericJMX");
for (int i = 0; i < this._mbeans.size (); i++)
pd.setPlugin ("GenericJMX");
for (int i = 0; i < this._mbeans.size (); i++)
- this._mbeans.get (i).query (this._jmx_connection, pd);
+ {
+ int status;
+
+ status = this._mbeans.get (i).query (this._jmx_connection, pd);
+ if (status != 0)
+ {
+ this._jmx_connection = null;
+ return;
+ }
+ } /* for */
} /* }}} void query */
public String toString ()
} /* }}} void query */
public String toString ()