Package alluxio.wire
Class SyncPointInfo
- java.lang.Object
-
- alluxio.wire.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SyncPointInfo.SyncStatus
Indicates the status of the initial sync of the active sync point.
-
Constructor Summary
Constructors Constructor Description SyncPointInfo(AlluxioURI syncPoint, SyncPointInfo.SyncStatus syncStatus)
Constructs a SyncPointInfo object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncPointInfo
fromProto(alluxio.grpc.SyncPointInfo syncPointInfo)
Generate sync point information from the proto representation.AlluxioURI
getSyncPointUri()
Get the uri of the sync point.SyncPointInfo.SyncStatus
getSyncStatus()
Get the initial sync status.alluxio.grpc.SyncPointInfo
toProto()
-
-
-
Constructor Detail
-
SyncPointInfo
public SyncPointInfo(AlluxioURI syncPoint, SyncPointInfo.SyncStatus syncStatus)
Constructs a SyncPointInfo object.- Parameters:
syncPoint
- path to the sync pointsyncStatus
- 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
-
-