Class DataProtectGeneration

java.lang.Object
net.bluemind.dataprotect.api.DataProtectGeneration

public class DataProtectGeneration extends Object
This class represents a generation of protected Blue Mind data. A DataProtectGeneration records when your data was protected, the Blue Mind version and all the ProtectedParts of the Blue Mind infrastructure at this point in time.
  • Field Details

    • id

      public int id
    • protectionTime

      public Date protectionTime
    • blueMind

      public net.bluemind.core.api.VersionInfo blueMind
    • withWarnings

      @Deprecated public boolean withWarnings
      Deprecated.
      never populated from the actual validity of parts (unlike PartGeneration.withWarnings, actively written by each backup worker). The only writer is DataProtectGenerationStore.verifyGeneration(), which sets withErrors on a SQL read exception during rewriteGenerations(), unrelated to part validity. Use hasErrors() to know whether a generation is actually erroneous.
    • withErrors

      @Deprecated public boolean withErrors
      Deprecated.
      see withWarnings. Use hasErrors() instead.
    • parts

      public List<PartGeneration> parts
  • Constructor Details

    • DataProtectGeneration

      public DataProtectGeneration()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • valid

      public boolean valid()
    • hasErrors

      public boolean hasErrors()
      A generation is considered erroneous if it has no part at all, or if at least one of its parts failed outright (GenerationStatus.INVALID). A part with only warnings (GenerationStatus.UNKNOWN) does not make the whole generation erroneous.