com.scalableminds.mongev

MongevPlugin

class MongevPlugin extends Plugin with HandleWebCommandSupport with MongevLogger with Evolutions

Play Evolutions plugin.

Linear Supertypes
Evolutions, EvolutionHelperScripts, MongoScriptExecutor, MongevLogger, HandleWebCommandSupport, Plugin, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongevPlugin
  2. Evolutions
  3. EvolutionHelperScripts
  4. MongoScriptExecutor
  5. MongevLogger
  6. HandleWebCommandSupport
  7. Plugin
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongevPlugin(app: Application)

Type Members

  1. class StringListLogger extends ProcessLogger

    Definition Classes
    MongoScriptExecutor

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val acquireLock: String

    Definition Classes
    EvolutionHelperScripts
  7. val allEvolutionsQuery: String

    Definition Classes
    EvolutionHelperScripts
  8. def applicationEvolutions(path: File, applicationClassloader: ClassLoader): Seq[Evolution]

    Reads the evolutions from the application.

    Reads the evolutions from the application.

    path

    the application path

    applicationClassloader

    the classloader used to load the driver

    Definition Classes
    Evolutions
  9. lazy val applyDownEvolutions: Boolean

  10. def applyFor(path: File = new java.io.File(".")): Unit

    Apply pending evolutions for the given DB.

    Apply pending evolutions for the given DB.

    Definition Classes
    Evolutions
  11. lazy val applyProdEvolutions: Boolean

  12. def applyScript(script: Seq[Script]): Unit

    Applies a script to the database.

    Applies a script to the database.

    script

    the script to run

    Definition Classes
    Evolutions
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def checkEvolutionsState(): Unit

    Checks the evolutions state.

    Checks the evolutions state.

    Definition Classes
    Evolutions
    Exceptions thrown
    an

    error if the database is in an inconsistent state

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. lazy val compareHashes: Boolean

    Definition Classes
    MongevPluginEvolutions
  17. def conflicts(downRest: Seq[Evolution], upRest: Seq[Evolution]): (Seq[Evolution], Seq[Evolution])

    Compares the two evolution sequences.

    Compares the two evolution sequences.

    downRest

    the seq of downs

    upRest

    the seq of ups

    returns

    the downs and ups to run to have the db synced to the current stage

    Definition Classes
    Evolutions
  18. def databaseEvolutions(): Seq[Evolution]

    Reads evolutions from the database.

    Reads evolutions from the database.

    Definition Classes
    Evolutions
  19. lazy val enabled: Boolean

    Is this plugin enabled.

    Is this plugin enabled.

    mongodb.evolution.enabled = true
    Definition Classes
    MongevPlugin → Plugin
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def evolutionDBName: String

    Definition Classes
    EvolutionHelperScripts
  23. def evolutionScript(path: File, applicationClassloader: ClassLoader): Seq[Product with Serializable with Script]

    Computes the evolution script.

    Computes the evolution script.

    path

    the application path

    applicationClassloader

    the classloader used to load the driver

    returns

    evolution scripts

    Definition Classes
    Evolutions
  24. def evolutionsQuery(query: String): String

    Definition Classes
    EvolutionHelperScripts
  25. def execute(cmd: String): Option[JsValue]

    Definition Classes
    MongoScriptExecutor
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def flattenObjectIds(js: String): String

    Definition Classes
    MongoScriptExecutor
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def handleWebCommand(request: RequestHeader, sbtLink: SBTLink, path: File): Option[SimpleResult]

    Definition Classes
    MongevPlugin → HandleWebCommandSupport
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. def insert(js: JsObject): String

    Definition Classes
    EvolutionHelperScripts
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def lockDBName: String

    Definition Classes
    EvolutionHelperScripts
  34. val logger: Logger

    Definition Classes
    MongevLogger
  35. lazy val mongoCmd: String

    The address of the mongodb server

    The address of the mongodb server

    Definition Classes
    MongevPlugin → MongoScriptExecutor
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def onStart(): Unit

    Checks the evolutions state.

    Checks the evolutions state.

    Definition Classes
    MongevPlugin → Plugin
  40. def onStop(): Unit

    Definition Classes
    Plugin
  41. val releaseLock: String

    Definition Classes
    EvolutionHelperScripts
  42. def remove(revision: Int): String

    Definition Classes
    EvolutionHelperScripts
  43. def removeAllInState(revision: Int, state: String): String

    Definition Classes
    EvolutionHelperScripts
  44. def resolve(revision: Int): Unit

    Resolves evolution conflicts.

    Resolves evolution conflicts.

    revision

    the revision to mark as resolved

    Definition Classes
    Evolutions
  45. def setAsApplied(revision: Int, state: String): String

    Definition Classes
    EvolutionHelperScripts
  46. def setLastProblem(revision: Int, lastProblem: String): String

    Definition Classes
    EvolutionHelperScripts
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toHumanReadableScript(script: Seq[Script]): String

    Translates an evolution script to something human-readable.

    Translates an evolution script to something human-readable.

    script

    the script

    returns

    a formatted script

    Definition Classes
    Evolutions
  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. val unfinishedEvolutionsQuery: String

    Definition Classes
    EvolutionHelperScripts
  51. def updateEvolutionScript(revision: Int = 1, comment: String = "Generated", ups: String, downs: String)(implicit application: Application): Unit

    Updates a local (file-based) evolution script.

    Updates a local (file-based) evolution script.

    Definition Classes
    Evolutions
  52. def updateState(revision: Int, updatedState: String): String

    Definition Classes
    EvolutionHelperScripts
  53. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. def withLock(block: ⇒ Unit): Unit

Inherited from Evolutions

Inherited from EvolutionHelperScripts

Inherited from MongoScriptExecutor

Inherited from MongevLogger

Inherited from HandleWebCommandSupport

Inherited from Plugin

Inherited from AnyRef

Inherited from Any

Ungrouped