java.lang.Object
com.alibaba.nacos.consistency.snapshot.Writer

public class Writer extends Object
Snapshot write interface.
作者:
liaochuntao
  • 构造器详细资料

    • Writer

      public Writer(String path)
  • 方法详细资料

    • getPath

      public String getPath()
    • addFile

      public boolean addFile(String fileName)
      Adds a snapshot file without metadata.
      参数:
      fileName - file name
      返回:
      true on success
    • addFile

      public boolean addFile(String fileName, LocalFileMeta meta)
      Adds a snapshot file with metadata.
      参数:
      fileName - file name
      返回:
      true on success
    • removeFile

      public boolean removeFile(String fileName)
      Remove a snapshot file.
      参数:
      fileName - file name
      返回:
      true on success
    • listFiles

      public Map<String,​LocalFileMeta> listFiles()