Examples of countActiveBrokers()


Examples of org.exist.Database.countActiveBrokers()

          for (int i = 0; i < 1000; i++) {
            thread = new Thread(new GetRelease());
            thread.start();
            Thread.sleep(rd.nextInt(250));
           
            System.out.println(""+i+", "+db.countActiveBrokers());
           
            if (ex != null) {
              ex.printStackTrace();
          fail(ex.getMessage());
            }
View Full Code Here

Examples of org.exist.Database.countActiveBrokers()

            if (ex != null) {
              ex.printStackTrace();
          fail(ex.getMessage());
            }
           
            if (debug && db.countActiveBrokers() == 20) {
            Map<Thread, StackTraceElement[]> stackTraces = Thread.getAllStackTraces();
           
            StringBuilder sb = new StringBuilder();
           
                sb.append("************************************************\n");
 
View Full Code Here

Examples of org.exist.Database.countActiveBrokers()

               
                System.out.println(sb.toString());
            }
          }
         
          while (db.countActiveBrokers() > 0) {
            System.out.println(db.countActiveBrokers());
            Thread.sleep(100);
          }
           
         
View Full Code Here

Examples of org.exist.Database.countActiveBrokers()

                System.out.println(sb.toString());
            }
          }
         
          while (db.countActiveBrokers() > 0) {
            System.out.println(db.countActiveBrokers());
            Thread.sleep(100);
          }
           
         
    } catch (Exception e) {
View Full Code Here

Examples of org.exist.storage.BrokerPool.countActiveBrokers()

                output.println( "<tr><td>Configuration:</td><td>" + conf.getConfigFilePath() + "</td></tr>" );
                output.println( "<tr><td>Data directory:</td><td>" +
                    (String) conf.getProperty(BrokerPool.PROPERTY_DATA_DIR) +
                    "</td></tr>" );
                output.println( "<tr><td>Active instances:</td><td>" +
                    pool.countActiveBrokers() + "</td></tr>" );
                output.println( "<tr><td>Available instances:</td><td>" +
                    pool.available() + "</td></tr>" );
                output.println( "</table>" );
            }
            output.print( "<p><form action=\"" );
View Full Code Here

Examples of org.exist.storage.BrokerPool.countActiveBrokers()

            addValue("cache-size", String.valueOf(instance.getConfiguration().getInteger("db-connection.cache-size")));
            addValue("page-size", String.valueOf(instance.getConfiguration().getInteger("db-connection.page-size")));
            addValue("collection-cache-mem", String.valueOf(instance.getConfiguration().getInteger("db-connection.collection-cache-mem")));
            this.contentHandler.startElement(NAMESPACE, "pool", PREFIX + ":pool", atts);
            addValue("max", String.valueOf(instance.getMax()));
            addValue("active", String.valueOf(instance.countActiveBrokers()));
            addValue("available", String.valueOf(instance.available()));
            this.contentHandler.endElement(NAMESPACE, "pool", PREFIX + ":pool");
            genBufferStatus(instance);
            this.contentHandler.endElement(NAMESPACE, "database-instance",
                PREFIX + ":database-instance");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.