org.apache.hadoop.io.Writablepublic class MountTableProcedure
extends org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure
| Constructor | Description |
|---|---|
MountTableProcedure() |
|
MountTableProcedure(java.lang.String name,
java.lang.String nextProcedure,
long delayDuration,
java.lang.String mount,
java.lang.String dstPath,
java.lang.String dstNs,
org.apache.hadoop.conf.Configuration conf) |
Update mount entry to specified dst uri.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
execute() |
|
static MountTable |
getMountEntry(java.lang.String mount,
MountTableManager mountTable) |
Gets the mount table entry.
|
void |
readFields(java.io.DataInput in) |
|
void |
write(java.io.DataOutput out) |
public MountTableProcedure()
public MountTableProcedure(java.lang.String name,
java.lang.String nextProcedure,
long delayDuration,
java.lang.String mount,
java.lang.String dstPath,
java.lang.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,
java.io.IOException
execute in class org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedureorg.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure.RetryExceptionjava.io.IOExceptionpublic static MountTable getMountEntry(java.lang.String mount, MountTableManager mountTable) throws java.io.IOException
mount - name of the mount entry.mountTable - the mount table.java.io.IOException - in case of failure to retrieve mount entry.public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedurejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedurejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.