Package alluxio
Class SyncInfo
- java.lang.Object
-
- alluxio.SyncInfo
-
public class SyncInfo extends java.lang.Object
This class is used to represent what the active syncing process should sync.
-
-
Field Summary
Fields Modifier and Type Field Description static long
INVALID_TXID
-
Constructor Summary
Constructors Constructor Description SyncInfo(java.util.Map<AlluxioURI,java.util.Set<AlluxioURI>> changedFiles, boolean forceSync, long txId)
Constructs a SyncInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncInfo
emptyInfo()
Returns an empty SyncInfo object.java.util.Set<AlluxioURI>
getChangedFiles(AlluxioURI syncPoint)
REturns a set of changed files.java.util.Set<AlluxioURI>
getSyncPoints()
Returns a list of sync points.long
getTxId()
returns the transaction id that is synced in this sync period.boolean
isForceSync()
returns true if this sync should happen on the entire directory.
-
-
-
Field Detail
-
INVALID_TXID
public static final long INVALID_TXID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SyncInfo
public SyncInfo(java.util.Map<AlluxioURI,java.util.Set<AlluxioURI>> changedFiles, boolean forceSync, long txId)
Constructs a SyncInfo.- Parameters:
changedFiles
- a map mapping syncpoint to changed filesforceSync
- force sync the entire directorytxId
- the transaction id that is synced in this sync
-
-
Method Detail
-
emptyInfo
public static SyncInfo emptyInfo()
Returns an empty SyncInfo object.- Returns:
- emptyInfo object
-
getSyncPoints
public java.util.Set<AlluxioURI> getSyncPoints()
Returns a list of sync points.- Returns:
- a list of sync points
-
getChangedFiles
public java.util.Set<AlluxioURI> getChangedFiles(AlluxioURI syncPoint)
REturns a set of changed files.- Parameters:
syncPoint
- the syncPoint that we are monitoring- Returns:
- a set of sync points
-
isForceSync
public boolean isForceSync()
returns true if this sync should happen on the entire directory.- Returns:
- true if this sync should happen on the entire dir
-
getTxId
public long getTxId()
returns the transaction id that is synced in this sync period.- Returns:
- a transaction id that is synced in this sync period
-
-