Class PartGeneration

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

public class PartGeneration extends Object
A generation is a point-in-time snapshot, de-duplicated and compressed of some data. A generation is referenced by a ProtectedPart which are tied together in a DataProtectGeneration to represent a complete backup.
  • Field Details

    • id

      public int id
    • generationId

      public int generationId
    • begin

      public Date begin
    • end

      public Date end
    • size

      public long size
    • tag

      public String tag
    • server

      public String server
    • withWarnings

      public boolean withWarnings
    • withErrors

      public boolean withErrors
    • valid

      public GenerationStatus valid
    • datatype

      public String datatype
  • Constructor Details

    • PartGeneration

      public PartGeneration()
  • 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 obj)
      Overrides:
      equals in class Object
    • validate

      public void validate()
      Derives valid from withErrors / withWarnings.

      Only call this on a part freshly produced by a backup worker, while both booleans still hold the outcome of the run. They have no column in t_dp_partgeneration, so a part re-read from SQL always carries false/false and calling this on it silently resets a stored INVALID or UNKNOWN back to VALID.

    • create

      public static PartGeneration create(int id, String server, String tag)
    • getWorkerDataType

      public WorkerDataType getWorkerDataType()