本文整理了Java中org.neo4j.kernel.configuration.Config.augmentDefaults()
方法的一些代码示例,展示了Config.augmentDefaults()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.augmentDefaults()
方法的具体详情如下:
包路径:org.neo4j.kernel.configuration.Config
类名称:Config
方法名:augmentDefaults
[英]Augment the existing config with new settings, ignoring any conflicting settings.
[中]使用新设置扩充现有配置,忽略任何冲突设置。
代码示例来源:origin: neo4j/neo4j
private static Config withForcedInMemoryConfiguration( Config config )
{
config.augment( ephemeral, TRUE );
config.augmentDefaults( pagecache_memory, "8M" );
return config;
}
代码示例来源:origin: neo4j/neo4j
/**
* Create page cache
* @param fileSystem file system that page cache will be based on
* @param pageCacheTracer global page cache tracer
* @param pageCursorTracerSupplier supplier of thread local (transaction local) page cursor tracer that will provide
* thread local page cache statistics
* @param config page cache configuration
* @param versionContextSupplier version context supplier
* @param jobScheduler page cache job scheduler
* @return created page cache instance
*/
public static PageCache createPageCache( FileSystemAbstraction fileSystem, PageCacheTracer pageCacheTracer,
PageCursorTracerSupplier pageCursorTracerSupplier, Config config,
VersionContextSupplier versionContextSupplier, JobScheduler jobScheduler )
{
config.augmentDefaults( GraphDatabaseSettings.pagecache_memory, "8M" );
ZoneId logTimeZone = config.get( GraphDatabaseSettings.db_timezone ).getZoneId();
FormattedLogProvider logProvider = FormattedLogProvider.withZoneId( logTimeZone ).toOutputStream( System.err );
ConfiguringPageCacheFactory pageCacheFactory = new ConfiguringPageCacheFactory(
fileSystem, config, pageCacheTracer, pageCursorTracerSupplier,
logProvider.getLog( PageCache.class ), versionContextSupplier, jobScheduler );
return pageCacheFactory.getOrCreatePageCache();
}
}
代码示例来源:origin: neo4j/neo4j
@Test
public void augmentDefaults()
{
Config config = Config();
assertEquals( "Hello, World!", config.get( MySettingsWithDefaults.hello ) );
config.augmentDefaults( MySettingsWithDefaults.hello, "new default" );
assertEquals( "new default", config.get( MySettingsWithDefaults.hello ) );
}
代码示例来源:origin: neo4j/neo4j
private PageCache createPageCache( FileSystemAbstraction fs, PageCacheConfig pageCacheConfig, Config config )
{
PageCacheTracer tracer = selectConfig( baseConfig.tracer, pageCacheConfig.tracer, PageCacheTracer.NULL );
PageCursorTracerSupplier cursorTracerSupplier = selectConfig( baseConfig.pageCursorTracerSupplier,
pageCacheConfig.pageCursorTracerSupplier, PageCursorTracerSupplier.NULL );
config.augmentDefaults( GraphDatabaseSettings.pagecache_memory, "8M" );
FormattedLogProvider logProvider = FormattedLogProvider.toOutputStream( System.err );
initializeJobScheduler();
ConfiguringPageCacheFactory pageCacheFactory = new ConfiguringPageCacheFactory( fs, config, tracer, cursorTracerSupplier,
logProvider.getLog( PageCache.class ), EmptyVersionContextSupplier.EMPTY, jobScheduler );
return pageCacheFactory.getOrCreatePageCache();
}
}
代码示例来源:origin: neo4j/neo4j
if ( config.get( GraphDatabaseSettings.ephemeral ) )
config.augmentDefaults( GraphDatabaseSettings.keep_logical_logs, "1 files" );
代码示例来源:origin: neo4j/neo4j
config.augmentDefaults( GraphDatabaseSettings.neo4j_home, storeLayout.storeDirectory().getPath() );
this.config = dependencies.satisfyDependency( config );
代码示例来源:origin: org.neo4j.community/it-test-support
private static Config withForcedInMemoryConfiguration( Config config )
{
config.augment( ephemeral, TRUE );
config.augmentDefaults( pagecache_memory, "8M" );
return config;
}
代码示例来源:origin: org.neo4j/neo4j-kernel
/**
* Create page cache
* @param fileSystem file system that page cache will be based on
* @param pageCacheTracer global page cache tracer
* @param pageCursorTracerSupplier supplier of thread local (transaction local) page cursor tracer that will provide
* thread local page cache statistics
* @param config page cache configuration
* @param versionContextSupplier version context supplier
* @param jobScheduler page cache job scheduler
* @return created page cache instance
*/
public static PageCache createPageCache( FileSystemAbstraction fileSystem, PageCacheTracer pageCacheTracer,
PageCursorTracerSupplier pageCursorTracerSupplier, Config config,
VersionContextSupplier versionContextSupplier, JobScheduler jobScheduler )
{
config.augmentDefaults( GraphDatabaseSettings.pagecache_memory, "8M" );
ZoneId logTimeZone = config.get( GraphDatabaseSettings.db_timezone ).getZoneId();
FormattedLogProvider logProvider = FormattedLogProvider.withZoneId( logTimeZone ).toOutputStream( System.err );
ConfiguringPageCacheFactory pageCacheFactory = new ConfiguringPageCacheFactory(
fileSystem, config, pageCacheTracer, pageCursorTracerSupplier,
logProvider.getLog( PageCache.class ), versionContextSupplier, jobScheduler );
return pageCacheFactory.getOrCreatePageCache();
}
}
代码示例来源:origin: org.neo4j/neo4j-kernel
if ( config.get( GraphDatabaseSettings.ephemeral ) )
config.augmentDefaults( GraphDatabaseSettings.keep_logical_logs, "1 files" );
代码示例来源:origin: org.neo4j/neo4j
config.augmentDefaults( GraphDatabaseSettings.neo4j_home, storeLayout.storeDirectory().getPath() );
this.config = dependencies.satisfyDependency( config );
内容来源于网络,如有侵权,请联系作者删除!