Package cloudtrace.instrument.receivers

Examples of cloudtrace.instrument.receivers.ZooSpanClient


        address = InetAddress.getLocalHost().getHostAddress().toString();
      } catch (UnknownHostException e) {
        address = "unknown";
      }
    }
    Tracer.getInstance().addReceiver(new ZooSpanClient(zookeeper, path, address, application, 1000));
  }
View Full Code Here


    byte[] pass;
    try {
      if (!cl.hasOption(fakeOption.getLongOpt())) {
        String localhost = InetAddress.getLocalHost().getHostName();
        String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
        Tracer.getInstance().addReceiver(new ZooSpanClient(instance.getZooKeepers(), path, localhost, "shell", 1000));
      }
     
      this.reader = new ConsoleReader();
     
      if (passw == null)
View Full Code Here

   
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
   
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cwalk", 1000));
   
    Connector conn = instance.getConnector(user, password.getBytes());
    Scanner scanner = conn.createScanner(table, new Authorizations());
   
    Random r = new Random();
View Full Code Here

    }
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
    Connector conn = instance.getConnector(user, password);
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cingest", 1000));
   
    BatchWriter bw = conn.createBatchWriter(table, maxMemory, maxLatency, maxWriteThreads);
    bw = Trace.wrapAll(bw, new CountSampler(1024));
    // BatchWriter bw = new NullBatchWriter();
   
View Full Code Here

        address = InetAddress.getLocalHost().getHostAddress().toString();
      } catch (UnknownHostException e) {
        address = "unknown";
      }
    }
    Tracer.getInstance().addReceiver(new ZooSpanClient(instance.getZooKeepers(), path, address, application, 1000));
  }
View Full Code Here

TOP

Related Classes of cloudtrace.instrument.receivers.ZooSpanClient

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.