1.2.0 permalink Arrow_down_16x16
Coerce JMX data structures into Clojure data.
Handles CompositeData, TabularData, maps, and atoms.

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/data.clj:64 top

(defmulti jmx->clj
  "Coerce JMX data structures into Clojure data.
  Handles CompositeData, TabularData, maps, and atoms."
  { :argslists '([jmx-data-structure]) }
  (fn [x]
    (cond
     (instance? javax.management.openmbean.CompositeData x) :composite
     (instance? javax.management.openmbean.TabularData x) :tabular
     (instance? clojure.lang.Associative x) :map
     :default :default)))
Vars in clojure.contrib.jmx/jmx->clj: cond defmulti fn instance?
Used in 0 other vars

Comments top

No comments for jmx->clj. Log in to add a comment.