Config config = new Config( params );
boolean dump = config.get( GraphDatabaseSettings.dump_configuration );
this.storeDir = storeDir;
this.idGeneratorFactory = new DefaultIdGeneratorFactory();
StoreFactory sf = new StoreFactory( config,idGeneratorFactory, new DefaultWindowPoolFactory(), fileSystem,
StringLogger.DEV_NULL, null );
String store = fixPath( storeDir, sf );
if ( dump )
{
dumpConfiguration( params );
}
msgLog.logMessage( Thread.currentThread() + " Starting BatchInserter(" + this + ")" );
neoStore = sf.newNeoStore(store);
if ( !neoStore.isStoreOk() )
{
throw new IllegalStateException( storeDir + " store is not cleanly shutdown." );
}
neoStore.makeStoreOk();