Class RepairmentResult

java.lang.Object
ac.simons.neo4j.migrations.core.RepairmentResult
All Implemented Interfaces:
DatabaseOperationResult, OperationResult

public final class RepairmentResult extends Object
A RepairmentResult will be available after a successful attempt of repairing a database. An attempt is considered successful no repairing was necessary or all errors in the remote migration chain could be fixed.
Since:
2.2.0
Author:
Michael J. Simons
Soundtrack
Deichkind - Neues vom Dauerzustand
  • Method Details

    • getOutcome

      public RepairmentResult.Outcome getOutcome()
      Returns:
      The outcome of the repairment attempt.
    • prettyPrint

      public String prettyPrint()
      Description copied from interface: OperationResult
      Returns a sensible string applicable in a log or info message.
      Returns:
      a sensible string applicable in a log or info message
    • getAffectedDatabase

      public Optional<String> getAffectedDatabase()
      Description copied from interface: DatabaseOperationResult
      Returns the optional name of the database clean, an empty optional indicates the default database.
      Specified by:
      getAffectedDatabase in interface DatabaseOperationResult
      Returns:
      the optional name of the database clean, an empty optional indicates the default database
    • getNodesDeleted

      public long getNodesDeleted()
      Returns:
      how many nodes have been deleted.
    • getNodesCreated

      public long getNodesCreated()
      Returns:
      how many nodes have been created.
    • getRelationshipsDeleted

      public long getRelationshipsDeleted()
      Returns:
      how many relationships have been deleted
    • getRelationshipsCreated

      public long getRelationshipsCreated()
      Returns:
      how many relationships have been created
    • getPropertiesSet

      public long getPropertiesSet()
      Returns:
      the number of properties set