public InMemoryDataCache() { this( ClassicEngineBoot.getInstance().getExtendedConfig().getIntProperty( "org.pentaho.reporting.engine.classic.core.cache.InMemoryCache.MaxEntries" ), ClassicEngineBoot.getInstance() .getExtendedConfig().getIntProperty( "org.pentaho.reporting.engine.classic.core.cache.InMemoryCache.CachableRowLimit" ) ); }
public EhCacheDataCache() { this( ClassicEngineBoot.getInstance().getExtendedConfig().getIntProperty( "org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.CachableRowLimit" ) ); }
int byteindex = 0; boolean useMasterSelect = ClassicEngineBoot.getInstance().getExtendedConfig().getBoolProperty( "org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.UseEpsonMasterSelect" ); if ( charactersPerInch == PrinterDriverCommands.CPI_10 ) {
public StyleResolvingEvaluator() { statisticsHit = new DoubleKeyedCounter<String, Long>(); statisticsMiss = new DoubleKeyedCounter<String, Long>(); ExtendedConfiguration config = ClassicEngineBoot.getInstance().getExtendedConfig(); collectDetailedStatistics = config.getBoolProperty( DETAILED_STATISTICS_CONFIG ); }
private void initializeCacheManager() { if ( ClassicEngineBoot.getInstance().getExtendedConfig().getBoolProperty( "org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.UseGlobalCacheManager" ) ) { manager = CacheManager.getInstance(); } else if ( manager == null ) { manager = createCacheManager(); } }
public void shutdown() { synchronized ( EhCacheDataCache.this ) { if ( cache != null ) { cache.removeAll(); } if ( ClassicEngineBoot.getInstance().getExtendedConfig().getBoolProperty( "org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.UseGlobalCacheManager" ) ) { if ( manager != null ) { manager.shutdown(); } } cache = null; manager = null; DataCacheFactory.notifyCacheShutdown( EhCacheDataCache.this ); } } }
private PageDefinition createDefaultPageDefinition() { final PageDefinition format; final ExtendedConfiguration config = ClassicEngineBoot.getInstance().getExtendedConfig(); if ( config.getBoolProperty( ClassicEngineCoreModule.NO_PRINTER_AVAILABLE_KEY ) ) { format = new SimplePageDefinition( new PageFormat() ); } else { format = new SimplePageDefinition( PrinterJob.getPrinterJob().defaultPage() ); } return format; }
ClassicEngineBoot.getInstance().getExtendedConfig().getBoolProperty( "org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.UseEpsonMasterSelect" );
protected void runAllGoldReports() throws Exception { if ( "true".equals( ClassicEngineBoot.getInstance().getGlobalConfig().getConfigProperty( ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY ) ) ) { Assert.fail( "Dont run GoldenSample tests with the new layout system. These tests are not platform independent." ); } final int numThreads = Math.max( 1, ClassicEngineBoot.getInstance().getExtendedConfig().getIntProperty( "org.pentaho.reporting.engine.classic.core.testsupport.gold.MaxWorkerThreads", Math.max( 1, Runtime.getRuntime().availableProcessors() - 1 ) ) ); StopWatch w = new StopWatch(); w.start(); try { if ( numThreads == 1 ) { runAllGoldReportsSerial(); } else { runAllGoldReportsInParallel( numThreads ); } } finally { System.out.println( w.toString() ); } }