Ejemplo n.º 1
0
 @Override
 protected void execute() throws ProcessException {
   final String service = value(SERVICE_TYPE, inputParameters);
   final String identifier = value(IDENTIFIER, inputParameters);
   try {
     serviceBusiness.stop(service, identifier);
   } catch (ConfigurationException ex) {
     throw new ProcessException(ex.getMessage(), this, ex);
   }
 }
Ejemplo n.º 2
0
  /**
   * Create a new instance and configuration for a specified service and instance name.
   *
   * @throws ProcessException in cases : - if the service name is different from WMS, WMTS, WCS of
   *     WFS (no matter of case) - if a configuration file already exist for this instance name. -
   *     if error during file creation or marshalling phase.
   */
  @Override
  protected void execute() throws ProcessException {

    final String serviceType = value(SERVICE_TYPE, inputParameters);
    final String identifier = value(IDENTIFIER, inputParameters);
    Object configuration = value(CONFIGURATION, inputParameters);
    final Details serviceMetadata = value(SERVICE_METADATA, inputParameters);

    try {
      configuration =
          serviceBusiness.create(
              serviceType.toLowerCase(), identifier, configuration, serviceMetadata);

    } catch (ConfigurationException ex) {
      throw new ProcessException(ex.getMessage(), this, ex);
    }

    getOrCreate(OUT_CONFIGURATION, outputParameters).setValue(configuration);
  }