示例#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());
 }