is there a performance test tool by clojure

2014-05-06 Thread Zhi Yang
is there a performance test tool by clojure like scala Gatling

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there a performance test tool by clojure

2014-05-06 Thread Zhi Yang
thanks, this is mainly for benchmark expression, what I need is a jmeter 
like app performance tool

On Tuesday, May 6, 2014 9:06:11 PM UTC+8, Zhi Yang wrote:

 is there a performance test tool by clojure like scala Gatling


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


can congomongo connect to mongos?

2013-04-19 Thread Zhi Yang
I use 
(defn get-conn []
  (let [conn (make-connection (:database db-config)
  :host (:host db-config)
  :port (:port db-config)
  (mongo-options :auto-connect-retry true))]
(auth conn)
conn))
try to connect to mongos, but 

(with-mongo conn
(apply fetch (concat '(:collection) args

always has exception, any one know why?

java.lang.NullPointerException

at com.mongodb.DBCursor._check(DBCursor.java:365)
at com.mongodb.DBCursor._hasNext(DBCursor.java:459)
at com.mongodb.DBCursor.hasNext(DBCursor.java:484)
at clojure.lang.IteratorSeq.create(IteratorSeq.java:27)
at clojure.lang.RT.seqFrom(RT.java:495)
at clojure.lang.RT.seq(RT.java:486)
at clojure.core$seq.invoke(core.clj:133)
at clojure.core$map$fn__4215.invoke(core.clj:2479)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: can congomongo connect to mongos?

2013-04-19 Thread Zhi Yang
yes, it  works for single instance, and for mongos, if I query use 
fetch-one it works, just do not work for fetch

On Saturday, April 20, 2013 2:54:43 AM UTC+8, Sean Corfield wrote:

 Does the exact same code work connecting directly to a single instance 
 or a to a replica set (instead of mongos shard server)? 

 On Fri, Apr 19, 2013 at 7:17 AM, Zhi Yang zhi@yottaa.comjavascript: 
 wrote: 
  I use 
  (defn get-conn [] 
(let [conn (make-connection (:database db-config) 
:host (:host db-config) 
:port (:port db-config) 
(mongo-options :auto-connect-retry true))] 
  (auth conn) 
  conn)) 
  try to connect to mongos, but 
  
  (with-mongo conn 
  (apply fetch (concat '(:collection) args 
  
  always has exception, any one know why? 
  
  java.lang.NullPointerException 
  
  at com.mongodb.DBCursor._check(DBCursor.java:365) 
  at com.mongodb.DBCursor._hasNext(DBCursor.java:459) 
  at com.mongodb.DBCursor.hasNext(DBCursor.java:484) 
  at clojure.lang.IteratorSeq.create(IteratorSeq.java:27) 
  at clojure.lang.RT.seqFrom(RT.java:495) 
  at clojure.lang.RT.seq(RT.java:486) 
  at clojure.core$seq.invoke(core.clj:133) 
  at clojure.core$map$fn__4215.invoke(core.clj:2479) 
  at clojure.lang.LazySeq.sval(LazySeq.java:42) 
  at clojure.lang.LazySeq.seq(LazySeq.java:60) 
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Clojure group. 
  To post to this group, send email to clo...@googlegroups.comjavascript: 
  Note that posts from new members are moderated - please be patient with 
 your 
  first post. 
  To unsubscribe from this group, send email to 
  clojure+u...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/clojure?hl=en 
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  Clojure group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to clojure+u...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



 -- 
 Sean A Corfield -- (904) 302-SEAN 
 An Architect's View -- http://corfield.org/ 
 World Singles, LLC. -- http://worldsingles.com/ 

 Perfection is the enemy of the good. 
 -- Gustave Flaubert, French realist novelist (1821-1880) 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




what is the issue: NullPointerException com.mongodb.DBCursor._check (DBCursor.java:365) for congomongo

2013-04-18 Thread Zhi Yang
I use a mongodb which use sharding, so I connect to mongos.

but when I query like: 
(fetch :locations)
NullPointerException   com.mongodb.DBCursor._check (DBCursor.java:365)

there is error

if the use (fetch :locations :one? true) it works.

anyone know what is going on? I use version  [congomongo 0.4.1], is it 
driver issue or usage issue?


-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




what is the issue: NullPointerException com.mongodb.DBCursor._check (DBCursor.java:365) for congomongo

2013-04-18 Thread Zhi Yang
I use a mongodb which use sharding, so I connect to mongos.

but when I query like: 
(fetch :locations)
NullPointerException   com.mongodb.DBCursor._check (DBCursor.java:365)

there is error

if the use (fetch :locations :one? true) it works.

anyone know what is going on? I use version  [congomongo 0.4.1], is it 
driver issue or usage issue?


-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Something missing from the clojure compiler's java annotation support for gen-class and defrecord? Am I driving while bouncing off the guard rails?

2011-09-25 Thread zhi yang
what about code using 1.2, and clojure-contrib, how to make transition.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Unable to use/refer/require clojure.contrib

2011-09-25 Thread zhi yang
is there easy way to make transition to 1.3

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en