Examples of Printer


Examples of nginx.clojure.asm.util.Printer

            MethodVisitor mv = null;
            if (name.charAt(0) == '<') {
              mv = mn = new MethodNode(access, name, desc, signature, exceptions);
            }else {
              if (db.meetTraceTargetClassMethod(className, method)) {
                Printer tp = new Textifier();
                mn = new TracableMethodNode("Orginal: " + className + "." + method,  db, access, name, desc, signature, exceptions, tp, new PrintWriter(System.out));
                mv = new TraceMethodVisitor(mn, tp);
              }else {
                mv = mn = new InstrumentMethodNode(db, access, name, desc, signature, exceptions);
              }
View Full Code Here

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

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

    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

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

                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

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

              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

Examples of org.apache.accumulo.core.util.TableDiskUsage.Printer

      tablesToFlush.add(shellState.getTableName());
    }

    try {
      final AccumuloConfiguration acuConf = new ConfigurationCopy(shellState.getConnector().instanceOperations().getSystemConfiguration());
      TableDiskUsage.printDiskUsage(acuConf, tablesToFlush, FileSystem.get(new Configuration()), shellState.getConnector(), new Printer() {
        @Override
        public void print(String line) {
          try {
            shellState.getReader().printString(line + "\n");
          } catch (IOException ex) {
View Full Code Here

Examples of org.apache.accumulo.core.util.TableDiskUsage.Printer

      shellState.checkTableState();
      tablesToFlush.add(shellState.getTableName());
    }
    try {
      final AccumuloConfiguration acuConf = new ConfigurationCopy(shellState.getConnector().instanceOperations().getSystemConfiguration());
      TableDiskUsage.printDiskUsage(acuConf, tablesToFlush, FileSystem.get(new Configuration()), shellState.getConnector(), new Printer() {
        @Override
        public void print(String line) {
          try {
            shellState.getReader().printString(line + "\n");
          } catch (IOException ex) {
View Full Code Here

Examples of org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.Printer

public class ClasspathCommand extends Command {
  @Override
  public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) {
    final ConsoleReader reader = shellState.getReader();
    AccumuloVFSClassLoader.printClassPath(new Printer() {
      @Override
      public void print(String s) {
        try {
          reader.printString(s + "\n");
        } catch (IOException ex) {
View Full Code Here

Examples of org.apache.geronimo.gshell.clp.Printer

        io.out.println(getId());
        io.out.println(" -- ");
        io.out.println();

        Printer printer = new Printer(clp);
        printer.printUsage(io.out);
        io.out.println();
    }
View Full Code Here

Examples of org.apache.ws.scout.Printer

        {
            // Get registry service and business query manager
            RegistryService rs = connection.getRegistryService();
            bqm = rs.getBusinessQueryManager();
            System.out.println("We have the Business Query Manager");
            Printer printer = new Printer();
            Finder finder = new Finder(bqm, uddiversion);

            Collection orgs = finder.findOrganizationsByName(this.getClass().getName());
            if (orgs == null) {
                fail("Only Expecting 1 Organization");
            } else {
                assertEquals(1,orgs.size());
                // then step through them
                for (Iterator orgIter = orgs.iterator(); orgIter.hasNext();)
                {
                    Organization org = (Organization) orgIter.next();
                    System.out.println("Org name: " + printer.getName(org));
                    System.out.println("Org description: " + printer.getDescription(org));
                    System.out.println("Org key id: " + printer.getKey(org));

                    User user = org.getPrimaryContact();
                    System.out.println("Primary Contact Full Name : " + user.getPersonName().getFullName());
          assertEquals("User name does not match", user.getPersonName().getFullName(), PERSON_NAME);
         
                    Collection<EmailAddress> emailAddresses = user.getEmailAddresses();
          System.out.println("Found " + emailAddresses.size() + " email addresses.");
                    assertEquals("Should have found 1 email address, found " + emailAddresses.size(), 1, emailAddresses.size());
          for (EmailAddress email : emailAddresses) {
                      System.out.println("Primary Contact email : " + email.getAddress());
            assertEquals("Email should be " + EMAIL, EMAIL, email.getAddress());
                    }
         
                    Collection<PostalAddress> postalAddresses = user.getPostalAddresses();
          System.out.println("Found " + postalAddresses.size() + " postal addresses.");
                    assertEquals("Should have found 1 postal address, found " + postalAddresses.size(), 1, postalAddresses.size());
          for (PostalAddress postalAddress : postalAddresses) {
            System.out.println("Postal Address is " + postalAddress);
            assertEquals("Street number should be " + STREET_NUMBER, STREET_NUMBER, postalAddress.getStreetNumber());
            assertEquals("Street should be " + STREET, STREET, postalAddress.getStreet());
            assertEquals("City should be " + CITY, CITY, postalAddress.getCity());
            assertEquals("State should be " + STATE, STATE, postalAddress.getStateOrProvince());
            assertEquals("Country should be " + COUNTRY, COUNTRY, postalAddress.getCountry());
            assertEquals("Postal code should be " + POSTAL_CODE, POSTAL_CODE, postalAddress.getPostalCode());
                    }
         
          Collection<TelephoneNumber> numbers = user.getTelephoneNumbers(null);
          System.out.println("Found " + numbers.size() + " telephone numbers.");
                    assertEquals("Should have found 1 phone number, found " + numbers.size(), 1, numbers.size());
          for (TelephoneNumber tele : numbers) {
            System.out.println("Phone number is " + tele.getNumber());
            assertEquals("Telephone number should be " + PHONE_NUMBER, PHONE_NUMBER, tele.getNumber());
          }
                    printer.printServices(org);
                    printer.printClassifications(org);
                }
            }//end else
        } catch (JAXRException e) {
            e.printStackTrace();
            fail(e.getMessage());
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.