Package alluxio.job.cmd.persist
Class PersistCmdConfig
- java.lang.Object
-
- alluxio.job.cmd.persist.PersistCmdConfig
-
@ThreadSafe public class PersistCmdConfig extends java.lang.Object implements CliConfig
A Cmd config for System Trigger job.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description PersistCmdConfig(java.lang.String filePath, long mountId, boolean overwrite, java.lang.String ufsPath)Creates a new instance ofPersistCmdConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>affectedPaths()booleanequals(java.lang.Object obj)java.lang.StringgetFilePath()JobSourcegetJobSource()longgetMountId()java.lang.StringgetName()alluxio.grpc.OperationTypegetOperationType()java.lang.StringgetUfsPath()inthashCode()booleanisOverwrite()PersistConfigtoPersistConfig()Convert to PersistConfig.java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistCmdConfig
public PersistCmdConfig(java.lang.String filePath, long mountId, boolean overwrite, java.lang.String ufsPath)Creates a new instance ofPersistCmdConfig.- Parameters:
filePath- the Alluxio path of the file to persistmountId- the mount ID for the UFS path to persist the file tooverwrite- flag of overwriting the existing file in UFS or notufsPath- the UFS path to persist the file to
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getJobSource
public JobSource getJobSource()
- Specified by:
getJobSourcein interfaceCmdConfig- Returns:
- JobSource of the Cmd job
-
getOperationType
public alluxio.grpc.OperationType getOperationType()
- Specified by:
getOperationTypein interfaceCmdConfig- Returns:
- OperationType of the Cmd job
-
getFilePath
public java.lang.String getFilePath()
- Returns:
- the file path
-
getMountId
public long getMountId()
- Returns:
- the mount ID
-
getUfsPath
public java.lang.String getUfsPath()
- Returns:
- the UFS path
-
isOverwrite
public boolean isOverwrite()
- Returns:
- flag of overwriting the existing file in under storage or not
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceCmdConfig- Returns:
- list of affected paths
-
toPersistConfig
public PersistConfig toPersistConfig()
Convert to PersistConfig.- Returns:
- a PersistConfig
-
-