HDFS-15428. Javadocs fails for hadoop-federation-balance. Contributed by Xieming Li.
This commit is contained in:
parent
ce1008fe61
commit
201d734af3
|
@ -43,9 +43,9 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* Update mount table.
|
* Update mount table.
|
||||||
* Old mount table:
|
* Old mount table:
|
||||||
* /a/b/c -> {ns:src path:/a/b/c}
|
* /a/b/c -> {ns:src path:/a/b/c}
|
||||||
* New mount table:
|
* New mount table:
|
||||||
* /a/b/c -> {ns:dst path:/a/b/c}
|
* /a/b/c -> {ns:dst path:/a/b/c}
|
||||||
*/
|
*/
|
||||||
public class MountTableProcedure extends BalanceProcedure {
|
public class MountTableProcedure extends BalanceProcedure {
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.WORK_THREAD_N
|
||||||
import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.WORK_THREAD_NUM_DEFAULT;
|
import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.WORK_THREAD_NUM_DEFAULT;
|
||||||
import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.JOURNAL_CLASS;
|
import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.JOURNAL_CLASS;
|
||||||
/**
|
/**
|
||||||
|
* <pre>
|
||||||
* The state machine framework consist of:
|
* The state machine framework consist of:
|
||||||
* Job: The state machine. It implements the basic logic of the
|
* Job: The state machine. It implements the basic logic of the
|
||||||
* state machine.
|
* state machine.
|
||||||
|
@ -54,7 +55,7 @@ import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.JOURNAL_CLASS
|
||||||
* Journal: It handles the job persistence and recover.
|
* Journal: It handles the job persistence and recover.
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* Job.Builder builder = new Job.Builder<>();
|
* Job.Builder builder = new Job.Builder<>();
|
||||||
* builder.nextProcedure(new WaitProcedure("wait", 1000, 30 * 1000));
|
* builder.nextProcedure(new WaitProcedure("wait", 1000, 30 * 1000));
|
||||||
* Job job = builder.build();
|
* Job job = builder.build();
|
||||||
*
|
*
|
||||||
|
@ -62,6 +63,7 @@ import static org.apache.hadoop.tools.fedbalance.FedBalanceConfigs.JOURNAL_CLASS
|
||||||
* scheduler.init();
|
* scheduler.init();
|
||||||
* scheduler.submit(job);
|
* scheduler.submit(job);
|
||||||
* scheduler.waitUntilDone(job);
|
* scheduler.waitUntilDone(job);
|
||||||
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public class BalanceProcedureScheduler {
|
public class BalanceProcedureScheduler {
|
||||||
public static final Logger LOG =
|
public static final Logger LOG =
|
||||||
|
|
Loading…
Reference in New Issue