HDFS-15428. Javadocs fails for hadoop-federation-balance. Contributed by Xieming Li.

This commit is contained in:
Akira Ajisaka 2020-06-22 19:43:19 +09:00
parent ce1008fe61
commit 201d734af3
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
2 changed files with 5 additions and 3 deletions

View File

@ -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 {

View File

@ -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&lt;&gt;();
* 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 =