Package alluxio.wire

Class SyncPointInfo


  • @PublicApi
    public class SyncPointInfo
    extends java.lang.Object
    This class represents the state of a sync point, whether the intial syncing is done, in progress or not going to be done.
    • Constructor Detail

      • SyncPointInfo

        public SyncPointInfo​(AlluxioURI syncPoint,
                             SyncPointInfo.SyncStatus syncStatus)
        Constructs a SyncPointInfo object.
        Parameters:
        syncPoint - path to the sync point
        syncStatus - current syncing status
    • Method Detail

      • getSyncPointUri

        public AlluxioURI getSyncPointUri()
        Get the uri of the sync point.
        Returns:
        uri of the sync point
      • getSyncStatus

        public SyncPointInfo.SyncStatus getSyncStatus()
        Get the initial sync status.
        Returns:
        the initial sync status
      • toProto

        public alluxio.grpc.SyncPointInfo toProto()
        Returns:
        proto representation of the sync point information
      • fromProto

        public static SyncPointInfo fromProto​(alluxio.grpc.SyncPointInfo syncPointInfo)
        Generate sync point information from the proto representation.
        Parameters:
        syncPointInfo - the proto representation
        Returns:
        sync point info object