private static DirectStoreAccess createScannableStores(
      String storeDir, Config tuningConfiguration) {
    Monitors monitors = new Monitors();
    StoreFactory factory =
        new StoreFactory(
            tuningConfiguration,
            new DefaultIdGeneratorFactory(),
            pageCache,
            fileSystem,
            NullLogProvider.getInstance(),
            monitors);

    NeoStore neoStore = factory.newNeoStore(true);

    SchemaIndexProvider indexes =
        new LuceneSchemaIndexProvider(DirectoryFactory.PERSISTENT, tuningConfiguration);
    return new DirectStoreAccess(
        new StoreAccess(neoStore),
        new LuceneLabelScanStoreBuilder(
                storeDir, neoStore, fileSystem, NullLogProvider.getInstance())
            .build(),
        indexes);
  }
Ejemplo n.º 2
0
 public TestableRrdFactory(Config config, String tempRrdFile) {
   super(config, NullLogProvider.getInstance());
   this.tempRrdFile = tempRrdFile;
 }
Ejemplo n.º 3
0
 private static LogProvider logProvider() {
   return Boolean.getBoolean("logger")
       ? FormattedLogProvider.toOutputStream(System.out)
       : NullLogProvider.getInstance();
 }