Package org.apache.accumulo.core.trace.TraceDump

Examples of org.apache.accumulo.core.trace.TraceDump.Printer


              final String user = shellState.getConnector().whoami();
              final Authorizations auths = shellState.getConnector().securityOperations().getUserAuthorizations(user);
              final Scanner scanner = shellState.getConnector().createScanner(table, auths);
              scanner.setRange(new Range(new Text(Long.toHexString(trace))));
              final StringBuffer finalSB = sb;
              traceCount = TraceDump.printTrace(scanner, new Printer() {
                @Override
                public void print(final String line) {
                  try {
                    finalSB.append(line + "\n");
                  } catch (Exception ex) {
View Full Code Here


    final Scanner scanner = conn.createScanner("trace", Authorizations.EMPTY);
    scanner.setRange(new Range(new Text(Long.toHexString(root.traceId()))));
    while (true) {
      final StringBuffer finalBuffer = new StringBuffer();
      int traceCount = TraceDump.printTrace(scanner, new Printer() {
        @Override
        public void print(final String line) {
          try {
            finalBuffer.append(line).append("\n");
          } catch (Exception ex) {
View Full Code Here

                String user = shellState.connector.whoami();
                Authorizations auths = shellState.connector.securityOperations().getUserAuthorizations(user);
                Scanner scanner = shellState.connector.createScanner(table, auths);
                scanner.setRange(new Range(new Text(Long.toHexString(trace))));
                final StringBuffer sb = new StringBuffer();
                if (TraceDump.printTrace(scanner, new Printer() {
                  @Override
                  public void print(String line) {
                    try {
                      sb.append(line + "\n");
                    } catch (Exception ex) {
View Full Code Here

              String user = shellState.getConnector().whoami();
              Authorizations auths = shellState.getConnector().securityOperations().getUserAuthorizations(user);
              Scanner scanner = shellState.getConnector().createScanner(table, auths);
              scanner.setRange(new Range(new Text(Long.toHexString(trace))));
              final StringBuffer sb = new StringBuffer();
              if (TraceDump.printTrace(scanner, new Printer() {
                @Override
                public void print(String line) {
                  try {
                    sb.append(line + "\n");
                  } catch (Exception ex) {
View Full Code Here

      throw new IllegalArgumentException("--traceid option is required");
    }
   
    Scanner scanner = opts.getConnector().createScanner(opts.getTableName(), opts.auths);
    scanner.setRange(new Range(new Text(opts.traceId)));
    TraceDump.printTrace(scanner, new Printer() {
      @Override
      public void print(String line) {
        System.out.println(line);
      }
    });
View Full Code Here

   
    final Scanner scanner = conn.createScanner("trace", Authorizations.EMPTY);
    scanner.setRange(new Range(new Text(Long.toHexString(root.traceId()))));
    while (true) {
      final StringBuffer finalBuffer = new StringBuffer();
      int traceCount = TraceDump.printTrace(scanner, new Printer() {
        @Override
        public void print(final String line) {
          try {
            finalBuffer.append(line).append("\n");
          } catch (Exception ex) {
View Full Code Here

              final String user = shellState.getConnector().whoami();
              final Authorizations auths = shellState.getConnector().securityOperations().getUserAuthorizations(user);
              final Scanner scanner = shellState.getConnector().createScanner(table, auths);
              scanner.setRange(new Range(new Text(Long.toHexString(trace))));
              final StringBuffer finalSB = sb;
              traceCount = TraceDump.printTrace(scanner, new Printer() {
                @Override
                public void print(final String line) {
                  try {
                    finalSB.append(line + "\n");
                  } catch (Exception ex) {
View Full Code Here

      throw new IllegalArgumentException("--traceid option is required");
    }
   
    Scanner scanner = opts.getConnector().createScanner(opts.getTableName(), opts.auths);
    scanner.setRange(new Range(new Text(opts.traceId)));
    TraceDump.printTrace(scanner, new Printer() {
      public void print(String line) {
        System.out.println(line);
      }
    });
  }
View Full Code Here

                String user = shellState.connector.whoami();
                Authorizations auths = shellState.connector.securityOperations().getUserAuthorizations(user);
                Scanner scanner = shellState.connector.createScanner(table, auths);
                scanner.setRange(new Range(new Text(Long.toHexString(trace))));
                final StringBuffer sb = new StringBuffer();
                if (TraceDump.printTrace(scanner, new Printer() {
                  @Override
                  public void print(String line) {
                    try {
                      sb.append(line + "\n");
                    } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.trace.TraceDump.Printer

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.