Examples of withDependencies()


Examples of org.apache.twill.api.TwillPreparer.withDependencies()

          twillPreparer.enableDebugging();
        }

        List<URI> containerResources = addLogbackConfig(Lists.<URI>newArrayList());

        TwillController twillController = twillPreparer
          .withDependencies(new HBaseTableUtilFactory().get().getClass())
          //TODO: Fix Logging in Distributed Mode.
          //.addLogHandler(new PrinterLogHandler(new PrintWriter(System.out, true)))
          .addSecureStore(YarnSecureStore.create(HBaseTokenUtils.obtainToken(hConf, new Credentials())))
          .withResources(containerResources)
View Full Code Here

Examples of org.apache.twill.api.TwillPreparer.withDependencies()

          .prepare(twillApplication);
        if (options.isDebug()) {
          LOG.info("Starting {} with debugging enabled.", program.getId());
          twillPreparer.enableDebugging();
        }
        TwillController twillController = twillPreparer
          .withDependencies(new HBaseTableUtilFactory().get().getClass())
          .addLogHandler(new PrinterLogHandler(new PrintWriter(System.out)))
          .addSecureStore(YarnSecureStore.create(HBaseTokenUtils.obtainToken(hConf, new Credentials())))
          .withApplicationArguments(
            String.format("--%s", RunnableOptions.JAR), copiedProgram.getJarLocation().getName(),
View Full Code Here

Examples of org.kite9.diagram.builders.java.ClassBuilder.withDependencies()

  @Kite9Item
  public Diagram example_1_7_ClassDependency(DiagramBuilder db) throws IOException {
    ClassBuilder cb = db.withClasses(Book.class, Member.class);
    cb.show(db.asConnectedGlyphs());
    cb.withDependencies(db.not(db.only(Object.class)), true).show(db.asConnectedGlyphs());
    return db.getDiagram();
  }

  @Kite9Item
  public Diagram example_1_8_StateTransition(DiagramBuilder db) throws Exception {
View Full Code Here

Examples of org.kite9.diagram.builders.java.PackageBuilder.withDependencies()

  @Kite9Item
  public Diagram example_1_6_Packaging(DiagramBuilder db) throws IOException {
    PackageBuilder p1 = db.withPackages(UseCase.class, Actor.class, Uses.class);
    p1.show(db.asConnectedGlyphs());
    p1.withMemberClasses(null).show(db.asTextLines());
    p1.withDependencies(new Filter<Package>() {

      public boolean accept(Package o) {
        return o.getName().startsWith("org.kite9.java.examples");
      }
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.