Ejemplo n.º 1
0
  protected Orient() {
    // REGISTER THE EMBEDDED ENGINE
    registerEngine(new OEngineLocal());
    registerEngine(new OEngineLocalPaginated());
    registerEngine(new OEngineMemory());
    registerEngine("com.orientechnologies.orient.client.remote.OEngineRemote");

    profiler = new OJVMProfiler();
    if (OGlobalConfiguration.PROFILER_ENABLED.getValueAsBoolean())
      // ACTIVATE RECORDING OF THE PROFILER
      profiler.startRecording();

    if (OGlobalConfiguration.ENVIRONMENT_DUMP_CFG_AT_STARTUP.getValueAsBoolean())
      OGlobalConfiguration.dumpConfiguration(System.out);

    memoryWatchDog = new OMemoryWatchDog();

    active = true;
  }