Skip to content

Commit 5316d8d

Browse files
committed
Unescape " in examples so code will run.
1 parent 2c626b1 commit 5316d8d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,30 @@ Usage
3636
What beans do I have?
3737

3838
```clojure
39-
(jmx/mbean-names \"*:*\")
39+
(jmx/mbean-names "*:*")
4040
-> #<HashSet [java.lang:type=MemoryPool,name=CMS Old Gen,
4141
java.lang:type=Memory, ...]
4242
```
4343

4444
What attributes does a bean have?
4545

4646
```clojure
47-
(jmx/attribute-names \"java.lang:type=Memory\")
47+
(jmx/attribute-names "java.lang:type=Memory")
4848
-> (:Verbose :ObjectPendingFinalizationCount
4949
:HeapMemoryUsage :NonHeapMemoryUsage)
5050
```
5151

5252
What is the value of an attribute?
5353

5454
```clojure
55-
(jmx/read \"java.lang:type=Memory\" :ObjectPendingFinalizationCount)
55+
(jmx/read "java.lang:type=Memory" :ObjectPendingFinalizationCount)
5656
-> 0
5757
```
5858

5959
Give me all the attributes:
6060

6161
```clojure
62-
(jmx/mbean \"java.lang:type=Memory\")
62+
(jmx/mbean "java.lang:type=Memory")
6363
-> {:NonHeapMemoryUsage
6464
{:used 16674024, :max 138412032, :init 24317952, :committed 24317952},
6565
:HeapMemoryUsage
@@ -71,18 +71,18 @@ Give me all the attributes:
7171
Find an invoke an operation:
7272

7373
```clojure
74-
(jmx/operation-names \"java.lang:type=Memory\")
74+
(jmx/operation-names "java.lang:type=Memory")
7575
-> (:gc)
76-
(jmx/invoke \"java.lang:type=Memory\" :gc)
76+
(jmx/invoke "java.lang:type=Memory" :gc)
7777
-> nil
7878
```
7979

8080
Conneting to another process? Just run *any* of the above code
8181
inside a with-connection:
8282

8383
```clojure
84-
(jmx/with-connection {:host \"localhost\", :port 3000}
85-
(jmx/mbean \"java.lang:type=Memory\"))
84+
(jmx/with-connection {:host "localhost", :port 3000}
85+
(jmx/mbean "java.lang:type=Memory"))
8686
-> {:ObjectPendingFinalizationCount 0,
8787
:HeapMemoryUsage ... etc.}
8888
```
@@ -94,8 +94,8 @@ in the ref:
9494
```clojure
9595
(jmx/register-mbean
9696
(jmx/create-bean
97-
(ref {:string-attribute \"a-string\"}))
98-
\"my.namespace:name=Value\")}
97+
(ref {:string-attribute "a-string"}))
98+
"my.namespace:name=Value")}
9999
```
100100

101101
Developer Information

0 commit comments

Comments
 (0)