|Modifier and Type||Method and Description|
Sets pin state for the input path.
Sets a new TTL value or unsets an existing TTL value for file at path.
public static void setTtl(FileSystem fs, AlluxioURI path, long ttlMs, TtlAction ttlAction) throws AlluxioException, IOException
fs- the file system for Alluxio
path- the file path
ttlMs- the TTL (time to live) value to use; it identifies duration (in milliseconds) the created file should be kept around before it is automatically deleted, irrespective of whether the file is pinned;
Constants.NO_TTLmeans to unset the TTL value
ttlAction- Action to perform on Ttl expiry
public static void setPinned(FileSystem fs, AlluxioURI path, boolean pinned, List<String> mediumTypes) throws AlluxioException, IOException
Copyright © 2020. All Rights Reserved.