1.2.0 permalink Arrow_down_16x16

read-supported

clojure.contrib.jmx

  • (read-supported n attr)
Calls read to read an mbean property, *returning* unsupported
operation exceptions instead of throwing them. Used to keep mbean
from blowing up. Note: There is no good exception that aggregates
unsupported operations, hence the overly-general catch block.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/jmx/client.clj:43 top

(defn read-supported
  "Calls read to read an mbean property, *returning* unsupported
   operation exceptions instead of throwing them. Used to keep mbean
   from blowing up. Note: There is no good exception that aggregates
   unsupported operations, hence the overly-general catch block."
  [n attr]
  (try
   (read n attr)
   (catch Exception e
     e)))
Vars in clojure.contrib.jmx/read-supported: defn read
Used in 0 other vars

Comments top

No comments for read-supported. Log in to add a comment.