All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.convergencelabs.convergence.server.backend.db.schema.ConvergenceSchemaManager.scala Maven / Gradle / Ivy

/*
 * Copyright (c) 2019 - Convergence Labs, Inc.
 *
 * This file is part of the Convergence Server, which is released under
 * the terms of the GNU General Public License version 3 (GPLv3). A copy
 * of the GPLv3 should have been provided along with this file, typically
 * located in the "LICENSE" file, which is part of this source code package.
 * Alternatively, see  for the
 * full text of the GPLv3 license, if it was not provided.
 */

package com.convergencelabs.convergence.server.backend.db.schema

import com.convergencelabs.convergence.server.backend.datastore.convergence.{ConvergenceSchemaDeltaLogStore, ConvergenceSchemaVersionLogStore}
import com.convergencelabs.convergence.server.backend.db.DatabaseProvider

object ConvergenceSchemaManager {
  val BasePath = "/com/convergencelabs/convergence/server/db/schema/convergence"
}

private[db] class ConvergenceSchemaManager(databaseProvider: DatabaseProvider) extends SchemaManager(
  new SchemaMetaDataRepository(ConvergenceSchemaManager.BasePath),
  new ConvergenceSchemaStatePersistence(
    new ConvergenceSchemaDeltaLogStore(databaseProvider),
    new ConvergenceSchemaVersionLogStore(databaseProvider)
  ),
  new OrientDBDeltaApplicator(databaseProvider)) {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy