Package org.platformlayer.ops.java

Examples of org.platformlayer.ops.java.JavaCommandBuilder$ClasspathEntry


    // return Command.build("{0} run", shellScript);

    // /usr/bin/java -Djetty.home=/var/jetty/default -Djava.io.tmpdir=/tmp -jar /var/jetty/default/start.jar
    // --pre=etc/jetty-logging.xml

    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    command.addDefine("jetty.home", getBaseDir());
    command.addDefine("java.io.tmpdir", "/tmp");
    command.setJar(new File(getBaseDir(), "start.jar"));
    command.addArgument(Argument.buildLiteral("--pre=etc/jetty-logging.xml"));
    return command.get();
  }
View Full Code Here


    return new File(getInstanceDir(), "logback.xml");
  }

  @Override
  public Command getCommand() {
    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    // command.addDefine("logback.configurationFile", getLogConfigurationFile());
    command.setMainClass("org.openstack.keystone.server.KeystoneUserServer");

    command.addDefine("conf", getConfigurationFile());

    return command.get();
  }
View Full Code Here

    return new File(getInstanceDir(), "logback.xml");
  }

  @Override
  public Command getCommand() {
    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    command.addClasspathFolder(getServicesPath());

    command.setMainClass("org.platformlayer.xaas.web.StandaloneXaasWebserver");

    command.addDefine("conf", getConfigurationFile());

    command.addArgument(Argument.buildFile(getRootWar()));

    return command.get();
  }
View Full Code Here

    return new File(getInstanceDir(), "logback.xml");
  }

  @Override
  public Command getCommand() {
    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    // command.addDefine("logback.configurationFile", getLogConfigurationFile());
    command.setMainClass("org.openstack.keystone.server.KeystoneAdminServer");

    command.addDefine("conf", getConfigurationFile());

    return command.get();
  }
View Full Code Here

    return "dns";
  }

  @Override
  protected Command getCommand() throws OpsException {
    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    command.setMainClass("com.fathomdb.dns.server.DnsServer");
    command.addDefine("logback.configurationFile", getLogConfigurationPath());

    return command.get();
  }
View Full Code Here

    return "zookeeper";
  }

  @Override
  protected Command getCommand() throws OpsException {
    JavaCommandBuilder builder = new JavaCommandBuilder();
    builder.setMainClass("org.apache.zookeeper.server.quorum.QuorumPeerMain");
    builder.addArgument(Argument.buildFile(getConfigurationFile()));
    builder.addClasspath(getInstanceDir(), false);
    builder.addClasspathFolder(getBaseDir());
    builder.addClasspathFolder(new File(getBaseDir(), "lib"));

    return builder.get();
    // directory=${instanceDir}
    // command=java -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -cp
    // "${instanceDir}:${installDir}/*:${installDir}/lib/*" org.apache.zookeeper.server.quorum.QuorumPeerMain
    // zookeeper.cfg
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.java.JavaCommandBuilder$ClasspathEntry

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.