public OLuceneIndexFactory(boolean manual) { if (!manual) { Orient.instance().addDbLifecycleListener(this); } }
public OLuceneIndexFactory(boolean manual) { if (!manual) Orient.instance().addDbLifecycleListener(this); }
public OLuceneSpatialIndexFactory(boolean manual) { if (!manual) Orient.instance().addDbLifecycleListener(this); spatialManager = new OLuceneSpatialManager(OShapeFactory.INSTANCE); }
@Override protected void doStart() throws Exception { // global startup Orient.instance().startup(); // instance startup OServer server = new OServer(); configureOrientMinimumLogLevel(); server.setExtensionClassLoader(uberClassLoader); OServerConfiguration config = createConfiguration(); server.startup(config); // remove Orient shutdown-hooks added during startup, we'll manage shutdown ourselves Orient.instance().removeShutdownHook(); server.removeShutdownHook(); // create default root user to avoid orientdb prompt on console server.addUser(OServerConfiguration.DEFAULT_ROOT_USER, null, "*"); // Log global configuration if (log.isDebugEnabled()) { // dumpConfiguration() only accepts ancient stream api String encoding = StandardCharsets.UTF_8.name(); ByteArrayOutputStream buff = new ByteArrayOutputStream(); OGlobalConfiguration.dumpConfiguration(new PrintStream(buff, true, encoding)); log.debug("Global configuration:\n{}", new String(buff.toByteArray(), encoding)); } Orient.instance().addDbLifecycleListener(entityHook); server.activate(); log.info("Activated"); this.orientServer = server; }
@Override public void startup() { super.startup(); Orient.instance().addDbLifecycleListener(this); OIndexes.registerFactory(new OLuceneIndexFactory(true)); OSQLEngine.registerOperator(new OLuceneTextOperator()); OSQLEngine.registerOperator(new OLuceneWithinOperator()); OSQLEngine.registerOperator(new OLuceneNearOperator()); OLogManager.instance().info(this, "Lucene index plugin installed and active. Lucene version: %s", OLuceneIndexManagerAbstract.LUCENE_VERSION); }
super.init(); Orient.instance().registerThreadDatabaseFactory(new DefaultODatabaseThreadLocalFactory(this)); Orient.instance().addDbLifecycleListener(new ODatabaseLifecycleListener() {
super.init(); Orient.instance().registerThreadDatabaseFactory(new DefaultODatabaseThreadLocalFactory(this)); Orient.instance().addDbLifecycleListener(new ODatabaseLifecycleListener() {