Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns defwrapper | |
(:require [clojure.string :as str])) | |
(set! *warn-on-reflection* true) | |
(defn class-methods [^Class class] | |
(seq (.getMethods class))) | |
(defn constructors [^Class klazz] | |
(.getDeclaredConstructors klazz)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Demonstration of the new MongoDB outypeType attribute in Camel 2.16. | |
* Priorir to launching script lower the maximum ram available for groovy by setting maximum size to 664M `export JAVA_OPTS="$JAVA_OPTS -Xmx64M"`. | |
* MongoDB should run localy with no security on test database otherwise change the mongoClient initialization. | |
* First feed the base by running the script with FEED parameter ( groovy CamelMongoDBCursorExample.groovy FEED ) | |
* Try to list all document by running the script with LIST parameter ( groovy CamelMongoDBCursorExample.groovy LIST ). You should face a OutOfMemory error. | |
* Run again with CURSOR parameter ( groovy CamelMongoDBCursorExample.groovy CURSOR ) all documents are print in the console. | |
* | |
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
* "THE BEER-WARE LICENSE" (Revision 42): |