Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.IRuntimeContext.dispose()


              .execute(
                  actionSeqPath,
                  Messages.getInstance().getString( "BaseTest.DEBUG_JUNIT_TEST" ), false, true, instanceId, false, getParameterProviders(), outputHandler, null, urlFactory, getMessages() ); //$NON-NLS-1$
    } finally {
      if ( context != null ) {
        context.dispose();
      }
    }
    return outputStream;
  }
View Full Code Here


        }
      }
      return null;
    } finally {
      if ( context != null ) {
        context.dispose();
      }
    }
  }

  public static void main( final String[] args ) {
View Full Code Here

                .getMessages() );
          XmlDom4JHelper.saveDom( responseDoc, outputStream, PentahoSystem.getSystemSetting( "web-service-encoding",
            "utf-8" ), true );
        } finally {
          if ( runtime != null ) {
            runtime.dispose();
          }
        }
      } else if ( "dial".equals( component ) ) { //$NON-NLS-1$
        doDial( solutionName, actionPath, actionName, parameterProvider, outputStream, userSession );
      } else if ( "chart".equals( component ) ) { //$NON-NLS-1$
View Full Code Here

        outputStream.write( buffer.toString().getBytes( LocaleHelper.getSystemEncoding() ) );
        responseContentItem.closeOutputStream();
      }
    } finally {
      if ( runtime != null ) {
        runtime.dispose();
      }
    }
  }

  protected void setupRequestHandler( final HttpServletRequest request,
View Full Code Here

      if ( runtime != null ) {
        status = runtime.getStatus();
      }
    } finally {
      if ( runtime != null ) {
        runtime.dispose();
      }
    }
    return status == IRuntimeContext.RUNTIME_STATUS_SUCCESS;
  }
View Full Code Here

        Messages.getInstance().getString( "XactionUtil.ERROR_EXECUTING_ACTION_SEQUENCE", file.getName() ),
        e ); //$NON-NLS-1$
      throw e;
    } finally {
      if ( runtime != null ) {
        runtime.dispose();
      }

    }
  }
View Full Code Here

        Messages.getInstance().getString( "XactionUtil.ERROR_EXECUTING_ACTION_SEQUENCE", file.getName() ),
        e ); //$NON-NLS-1$
      throw e;
    } finally {
      if ( runtime != null ) {
        runtime.dispose();
      }
    }
  }

  @SuppressWarnings ( "rawtypes" )
View Full Code Here

        writer.write( responseDoc );
        writer.flush();
        return outputStream.toString( "utf-8" ); //$NON-NLS-1$
      } finally {
        if ( runtime != null ) {
          runtime.dispose();
        }
      }
    } catch ( Exception e ) {
      logger.warn( Messages.getInstance().getString( "XactionUtil.XML_OUTPUT_NOT_SUPPORTED" ) ); //$NON-NLS-1$
      throw e;
View Full Code Here

      e.printStackTrace();
    } catch ( TransformerFactoryConfigurationError e ) {
      e.printStackTrace();
    } finally {
      if ( runtime != null ) {
        runtime.dispose();
      }
    }
    if ( contentItem != null ) {
      contentItem.closeOutputStream();
    }
View Full Code Here

          xactionResultsOutputStream.close();
        }
      }
    } finally {
      if ( rt != null ) {
        rt.dispose();
      }
    }
  }

  public String getMimeType( String arg0 ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.