Skip to content

Commit

Permalink
add java docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtzyy committed Aug 5, 2019
1 parent d2eabdc commit 8c4f29d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@
* Define state model employed by Ambry.
* Helix allows user to define custom state model which means Ambry is able to introduce custom states and define the
* transition logic among these states. This class presents replica states, valid transitions and priorities that would
* be used by Helix to manage Ambry partitions
* be used by Helix to manage Ambry partitions. Specifically, we add two custom states into new state model: BOOTSTRAP
* and INACTIVE. The valid transitions among states are depicted as follows:
*
* <--- INACTIVE <----
* | |
* DROPPED <--- OFFLINE STANDBY <----> LEADER
* | |
* ---> BOOTSTRAP --->
*
*/
public class AmbryStateModelDefinition {
public static final String AMBRY_LEADER_STANDBY_MODEL = "AmbryLeaderStandby";
Expand Down

0 comments on commit 8c4f29d

Please sign in to comment.