Class GapFileImpl

java.lang.Object
de.bsvrz.ars.ars.persistence.gap.GapFileImpl
All Implemented Interfaces:
GapFile

public class GapFileImpl
extends java.lang.Object
implements GapFile
TBD Dokumentation
  • Field Summary

    Fields
    Modifier and Type Field Description
    static com.google.common.base.Splitter ARS_SPLITTER  
    static java.nio.charset.Charset CHARSET  
    static java.lang.String GAP_ARCH_SEPARATOR  
    static java.lang.String GAP_FILE_NAME
    Dateiname der Datenlücken-Datei.
    static java.lang.String GAP_IDX_SEPARATOR  
    static java.lang.String GAP_KEYWORD  
    static java.util.regex.Pattern GAP_PAT  
    static java.lang.String TMP_GAP_FILE_NAME  
  • Constructor Summary

    Constructors
    Constructor Description
    GapFileImpl​(java.nio.file.Path path)  
  • Method Summary

    Modifier and Type Method Description
    void readGaps​(java.util.Map<? super RemoteArchive,​DataIndexRangeSet> map)
    Liest die vorhandenen bekannten Datenlücken aus der Datei und fügt dieser der übergebenen Map hinzu
    void writeGaps​(java.util.Map<? extends RemoteArchive,​? extends DataIndexRangeSet> map)
    Speichert die übergebenen Datenlücken in die Datei (vorhandene Einträge werden gelöscht)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • GAP_FILE_NAME

      public static final java.lang.String GAP_FILE_NAME
      Dateiname der Datenlücken-Datei.
      See Also:
      Constant Field Values
    • TMP_GAP_FILE_NAME

      public static final java.lang.String TMP_GAP_FILE_NAME
      See Also:
      Constant Field Values
    • GAP_KEYWORD

      public static final java.lang.String GAP_KEYWORD
      See Also:
      Constant Field Values
    • GAP_IDX_SEPARATOR

      public static final java.lang.String GAP_IDX_SEPARATOR
      See Also:
      Constant Field Values
    • GAP_ARCH_SEPARATOR

      public static final java.lang.String GAP_ARCH_SEPARATOR
      See Also:
      Constant Field Values
    • ARS_SPLITTER

      public static final com.google.common.base.Splitter ARS_SPLITTER
    • GAP_PAT

      public static final java.util.regex.Pattern GAP_PAT
    • CHARSET

      public static final java.nio.charset.Charset CHARSET
  • Constructor Details

    • GapFileImpl

      public GapFileImpl​(java.nio.file.Path path)
  • Method Details

    • readGaps

      public void readGaps​(java.util.Map<? super RemoteArchive,​DataIndexRangeSet> map)
      Description copied from interface: GapFile
      Liest die vorhandenen bekannten Datenlücken aus der Datei und fügt dieser der übergebenen Map hinzu
      Specified by:
      readGaps in interface GapFile
      Parameters:
      map - Map mit Datenlücken je Archivsystem
    • writeGaps

      public void writeGaps​(java.util.Map<? extends RemoteArchive,​? extends DataIndexRangeSet> map)
      Description copied from interface: GapFile
      Speichert die übergebenen Datenlücken in die Datei (vorhandene Einträge werden gelöscht)
      Specified by:
      writeGaps in interface GapFile
      Parameters:
      map - Map mit Datenlücken je Archivsystem