Package org.codehaus.activemq.util

Examples of org.codehaus.activemq.util.IndentPrinter


        connection.start();
    }

    protected void tearDown() throws Exception {
        System.out.println("Test Done.  Stats");
        ((ActiveMQConnectionFactory) connectionFactory).getFactoryStats().dump(new IndentPrinter());
        System.out.println("Closing down connection");

        connection.stop();
        connection.close();
        System.out.println("Connection closed.");
View Full Code Here


        connection.start();
    }

    protected void tearDown() throws Exception {
        System.out.println("Test Done.  Stats");
        ((ActiveMQConnectionFactory) connectionFactory).getFactoryStats().dump(new IndentPrinter());
        closeConnection();
    }
View Full Code Here

     */
  public String toString() {
    if( detailedStats ) {
      StringWriter w = new StringWriter();
      PrintWriter pw = new PrintWriter(w);   
      dump(new IndentPrinter(pw, "  "));
      return w.getBuffer().toString();
    } else {
      StringWriter w = new StringWriter();
      PrintWriter pw = new PrintWriter(w);
      IndentPrinter out = new IndentPrinter(pw, "  ");
          out.println("Throughput           : "+ getThroughputKps() +" k/s and " + getThroughputRps() +" records/s");
          out.printIndent();
          out.println("Latency with force   : "+getAvgSyncedLatencyMs()+" ms"  );
          out.printIndent();
          out.println("Latency without force: "+getAvgUnSyncedLatencyMs()+" ms"  );
      return w.getBuffer().toString();     
    }
    }
View Full Code Here

        return session.createConsumer(consumerDestination);
    }

    protected void tearDown() throws Exception {
        System.out.println("Dumping stats...");
        connectionFactory.getFactoryStats().dump(new IndentPrinter());

        System.out.println("Closing down connection");

        /** TODO we should be able to shut down properly */
        session.close();
View Full Code Here

        }
    }

    protected void dumpStats(Connection connection) {
        ActiveMQConnection c = (ActiveMQConnection) connection;
        c.getConnectionStats().dump(new IndentPrinter());
    }
View Full Code Here

        }
    }

    protected void dumpStats(Connection connection) {
        ActiveMQConnection c = (ActiveMQConnection) connection;
        c.getConnectionStats().dump(new IndentPrinter());
    }
View Full Code Here

        connection.start();
    }

    protected void tearDown() throws Exception {
        System.out.println("Test Done.  Stats");
        ((ActiveMQConnectionFactory) connectionFactory).getFactoryStats().dump(new IndentPrinter());
        closeConnection();
    }
View Full Code Here

        return session.createConsumer(destination);
    }

    protected void tearDown() throws Exception {
        System.out.println("Dumping stats...");
        connectionFactory.getFactoryStats().dump(new IndentPrinter());

        System.out.println("Closing down connection");

        /** TODO we should be able to shut down properly */
        session.close();
View Full Code Here

        }
    }

    protected void dumpStats() {
        ActiveMQConnection c = (ActiveMQConnection) connection;
        c.getConnectionStats().dump(new IndentPrinter());
    }
View Full Code Here

        }
    }

    protected void dumpStats(Connection connection) {
        ActiveMQConnection c = (ActiveMQConnection) connection;
        c.getConnectionStats().dump(new IndentPrinter());
    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.util.IndentPrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.