Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.ICacheManager.clearRegionCache()


  }

  public synchronized void reInit( final IPentahoSession pentahoSession ) {
    final ICacheManager cacheMgr = PentahoSystem.getCacheManager( pentahoSession );
    if ( cacheMgr.cacheEnabled( MONDRIAN_CATALOG_CACHE_REGION ) ) {
      cacheMgr.clearRegionCache( MONDRIAN_CATALOG_CACHE_REGION );
    }
    init( pentahoSession );
  }

  private static Locale getLocale() {
View Full Code Here


  @Produces( { MediaType.TEXT_PLAIN, MediaType.APPLICATION_JSON } )
  @Facet ( name = "Unsupported" )
  public Response purgeReportingDataCache() {
    if ( canAdminister() ) {
      ICacheManager cacheManager = PentahoSystem.get( ICacheManager.class );
      cacheManager.clearRegionCache( "report-dataset-cache" );
      cacheManager.clearRegionCache( "report-output-handlers" );
      return Response.ok().type( MediaType.TEXT_PLAIN ).build();
    } else {
      return Response.status( UNAUTHORIZED ).build();
    }
View Full Code Here

  @Facet ( name = "Unsupported" )
  public Response purgeReportingDataCache() {
    if ( canAdminister() ) {
      ICacheManager cacheManager = PentahoSystem.get( ICacheManager.class );
      cacheManager.clearRegionCache( "report-dataset-cache" );
      cacheManager.clearRegionCache( "report-output-handlers" );
      return Response.ok().type( MediaType.TEXT_PLAIN ).build();
    } else {
      return Response.status( UNAUTHORIZED ).build();
    }
  }
View Full Code Here

  protected void resetCache( IPentahoSession session ) {
    final Lock writeLock = cacheLock.writeLock();
    try {
      writeLock.lock();
      final ICacheManager cacheMgr = PentahoSystem.getCacheManager( session );
      cacheMgr.clearRegionCache( CATALOG_CACHE_REGION );
    } finally {
      writeLock.unlock();
    }
  }
View Full Code Here

  }

  public void tearDown() {
    // Clean the cache
    ICacheManager cacheManager = PentahoSystem.getCacheManager( null );
    cacheManager.clearRegionCache( CACHE_NAME );

    super.tearDown();
  }

  public void testCreate_no_delegate() throws Exception {
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.