Exemplo n.º 1
0
  @Override
  public String executeProcess(String sosEndpoint, RunMetadata metadata) {
    if (StringUtils.isBlank(sosEndpoint)) {
      throw new IllegalArgumentException("sosEndpoint parameter may not be null or blank");
    }

    WPSTask task = new WPSTask(sosEndpoint, metadata.toKeyValueMap());
    task.start();
    if (task.isAlive()) {
      return "ok";
    } else {
      return "not started";
    }
  }
Exemplo n.º 2
0
 @Override
 public String executeProcess(File zipLocation, RunMetadata metadata) {
   return executeProcess(zipLocation, metadata.toKeyValueMap());
 }