Пример #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";
    }
  }
Пример #2
0
 @Override
 public String executeProcess(File zipLocation, RunMetadata metadata) {
   return executeProcess(zipLocation, metadata.toKeyValueMap());
 }