Package uk.org.taverna.server.client

Examples of uk.org.taverna.server.client.Server


    help.printHelp(usage, header, options, footer);
    System.exit(exitcode);
  }

  protected Server getServer(String[] args) {
    Server server = null;

    for (String arg : args) {
      try {
        server = Server.connect(new URI(arg));
View Full Code Here


      deleteAll = true;
    }

    // get server address and run ids from left over arguments
    String[] args = line.getArgs();
    Server server = getServer(args);

    ArrayList<UUID> runs = new ArrayList<UUID>();
    for (String arg : args) {
      try {
        UUID run = UUID.fromString(arg);
        runs.add(run);
      } catch (IllegalArgumentException e) {
        // not a UUID, ignore
      }
    }

    // delete things
    if (deleteAll) {
      server.deleteAllRuns();
    } else {
      if (runs.size() == 0) {
        showHelpAndExit(1);
      }

      for (UUID u : runs) {
        try {
          server.deleteRun(u);
        } catch (RunNotFoundException e) {
          System.out.println("Run '" + u + "' not found - skipping.");
        }
      }
    }
View Full Code Here

  @Override
  public void run(CommandLine line) {

    // get server address from left over arguments
    Server server = getServer(line.getArgs());

    Collection<Run> runs = server.getRuns();
    System.out.println("     Server: " + server.getUri());
    System.out.println("  Run limit: " + server.getRunLimit());
    System.out.println("No. of runs: " + runs.size());
    for (Run run : runs) {
      System.out.println(run.getUUID() + " - " + run.getExpiry());
    }
  }
View Full Code Here

    if (line.hasOption('o')) {
      baclavaOut = new File(line.getOptionValue('o', "out.xml"));
    }

    // get server address from left over arguments
    Server server = getServer(line.getArgs());

    // create run
    Run run = server.createRun(workflow);
    System.out.println("Created run with uuid: " + run.getUUID());
    System.out.println("Created at " + run.getCreateTime());

    // set inputs
    if (baclavaIn != null) {
View Full Code Here

TOP

Related Classes of uk.org.taverna.server.client.Server

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.