public class MountTableProcedure
extends org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure
Constructor and Description |
---|
MountTableProcedure() |
MountTableProcedure(String name,
String nextProcedure,
long delayDuration,
String mount,
String dstPath,
String dstNs,
org.apache.hadoop.conf.Configuration conf)
Update mount entry to specified dst uri.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute() |
static MountTable |
getMountEntry(String mount,
MountTableManager mountTable)
Gets the mount table entry.
|
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public MountTableProcedure()
public MountTableProcedure(String name, String nextProcedure, long delayDuration, String mount, String dstPath, String dstNs, org.apache.hadoop.conf.Configuration conf)
name
- the name of the procedure.nextProcedure
- the name of the next procedure.delayDuration
- the delay duration when this procedure is delayed.mount
- the mount entry to be updated.dstPath
- the sub-cluster uri of the dst path.dstNs
- the destination sub-cluster name service id.conf
- the configuration.public boolean execute() throws org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure.RetryException, IOException
execute
in class org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure
org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure.RetryException
IOException
public static MountTable getMountEntry(String mount, MountTableManager mountTable) throws IOException
mount
- name of the mount entry.mountTable
- the mount table.IOException
- in case of failure to retrieve mount entry.public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.