Package alluxio.job.cmd.migrate
Class MigrateCliConfig
- java.lang.Object
-
- alluxio.job.cmd.migrate.MigrateCliConfig
-
@ThreadSafe public class MigrateCliConfig extends java.lang.Object implements CliConfig
A config for a MigrateCli job.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description MigrateCliConfig(java.lang.String source, java.lang.String dst, alluxio.client.WriteType writeType, boolean overwrite, int batchSize)
-
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)intgetBatchSize()java.lang.StringgetDestination()JobSourcegetJobSource()java.lang.StringgetName()alluxio.grpc.OperationTypegetOperationType()booleangetOverWrite()java.lang.StringgetSource()alluxio.client.WriteTypegetWriteType()inthashCode()booleanisOverwrite()java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MigrateCliConfig
public MigrateCliConfig(java.lang.String source, java.lang.String dst, alluxio.client.WriteType writeType, boolean overwrite, int batchSize)- Parameters:
source- the source pathdst- the destination pathwriteType- the Alluxio write type with which to write the migrated file; a null value means to use the default write type from the Alluxio configurationoverwrite- whether an existing file should be overwritten; if the source and destination are directories, the contents of the directories will be merged with common files overwritten by the sourcebatchSize- batchSize to run one job
-
-
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
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceCmdConfig- Returns:
- list of affected paths
-
getSource
public java.lang.String getSource()
- Returns:
- the source path
-
getDestination
public java.lang.String getDestination()
- Returns:
- the destination path
-
getWriteType
public alluxio.client.WriteType getWriteType()
- Returns:
- the writeType
-
getOverWrite
public boolean getOverWrite()
- Returns:
- the overWrite
-
getBatchSize
public int getBatchSize()
- Returns:
- the batch size
-
isOverwrite
public boolean isOverwrite()
- Returns:
- whether to overwrite a file at the destination if it exists
-
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
-
-