On Fri, Jun 24, 2011 at 10:47 PM, Yang <teddyyyy...@gmail.com> wrote: > Thanks Jonathan. > this provides a way to essentially get a copy of the outgoing messages, > the messages onto the real connections still go through, but I would need a > way > to shut off the real connections too.
Just return null from the sink to disappear the messages. > but an even more difficult thing is that the ThriftSocket etc will need to > open a java.net.Socket, which > hooks onto the real IP address and port, in a simulation environment, we'd > need to > mock out the java.net.Socket too, that sounds more difficult. Yes, this won't help on the Thrift side. -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com