private void doExecute( ExecuteRequest request, HttpResponseBuffer response ) throws OWSException { LOG.trace( "doExecute invoked, request: " + request.toString() ); long start = System.currentTimeMillis(); CodeType processId = request.getProcessId(); WPSProcess process = processManager.getProcess( processId ); if ( process == null ) { String msg = "Internal error. Process '" + processId + "' not found."; throw new OWSException( msg, OWSException.INVALID_PARAMETER_VALUE ); } try { if ( request.getResponseForm() == null || request.getResponseForm() instanceof ResponseDocument ) { executeHandler.handleResponseDocumentOutput( request, response, process ); } else { executeHandler.handleRawDataOutput( request, response, process ); } } catch ( OWSException e ) { throw e; } catch ( Exception e ) { LOG.debug( e.getMessage(), e ); throw new OWSException( e.getMessage(), NO_APPLICABLE_CODE ); } long elapsed = System.currentTimeMillis() - start; LOG.debug( "doExecute took " + elapsed + " milliseconds" ); LOG.trace( "doExecute finished" ); }
private void doGetResponseDocument( String responseId, HttpResponseBuffer response ) { LOG.trace( "doGetResponseDocument invoked, requested stored response document: " + responseId ); ResponseDocumentStorage resource = storageManager.lookupResponseDocumentStorage( responseId, getHttpGetURL() ); executeHandler.sendResponseDocument( response, resource ); LOG.trace( "doGetResponseDocument finished" ); }
throw new OWSException( msg, OWSException.OPTION_NOT_SUPPORTED ); out.add( createOutputParameter( outputDef ) ); state = createProcessletExecution( request, responseStorage, serviceInstance, outputParams, outputs ); state = createProcessletExecution( request, responseStorage, serviceInstance, outputParams, outputs ); executeProcess( process.getProcesslet(), inputs, outputs, state );
ProcessExecution state = createProcessletExecution( request, null, null, null, outputParams ); executeProcess( process.getProcesslet(), inputs, outputParams, state ); if ( state.getExecutionState() == FAILED ) { OWSException e = state.getFailedException();
executeHandler = new ExecutionManager( this, storageManager, trackedExecutions ); mainMetadataConf = serviceMetadata;