接口 JSnapshotOperation


  • interface JSnapshotOperation
    JRaft snapshot operation.
    作者:
    liaochuntao
    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      default com.alipay.sofa.jraft.entity.LocalFileMetaOutter.LocalFileMeta buildMetadata​(com.alibaba.nacos.consistency.snapshot.LocalFileMeta metadata)
      Metadata information for snapshot files.
      java.lang.String info()
      return actually snapshot executor.
      boolean onSnapshotLoad​(com.alipay.sofa.jraft.storage.snapshot.SnapshotReader reader)
      do snapshot load operation.
      void onSnapshotSave​(com.alipay.sofa.jraft.storage.snapshot.SnapshotWriter writer, com.alipay.sofa.jraft.Closure done)
      do snapshot save operation.
    • 方法详细资料

      • onSnapshotSave

        void onSnapshotSave​(com.alipay.sofa.jraft.storage.snapshot.SnapshotWriter writer,
                            com.alipay.sofa.jraft.Closure done)
        do snapshot save operation.
        参数:
        writer - SnapshotWriter
        done - Closure
      • onSnapshotLoad

        boolean onSnapshotLoad​(com.alipay.sofa.jraft.storage.snapshot.SnapshotReader reader)
        do snapshot load operation.
        参数:
        reader - SnapshotReader
        返回:
        operation label
      • info

        java.lang.String info()
        return actually snapshot executor.
        返回:
        name
      • buildMetadata

        default com.alipay.sofa.jraft.entity.LocalFileMetaOutter.LocalFileMeta buildMetadata​(com.alibaba.nacos.consistency.snapshot.LocalFileMeta metadata)
                                                                                      throws java.lang.Exception
        Metadata information for snapshot files.
        参数:
        metadata - meta data
        返回:
        LocalFileMetaOutter.LocalFileMeta
        抛出:
        java.lang.Exception - Exception