This is an automated email from the ASF dual-hosted git repository.
vaughn pushed a change to branch zy_dev
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
from faadb2354 improve code
add 1fa92e41f improve code
No new revisions were added by this update.
Summary of changes:
.../java/com/baidu/hugegraph/election/Config.java | 19 ++++
.../com/baidu/hugegraph/election/MetaData.java | 66 ------------
.../baidu/hugegraph/election/MetaDataAdapter.java | 12 ---
.../election/RoleElectionStateMachine.java | 19 ++++
.../election/RoleElectionStateMachineImpl.java | 117 ++++++++++++---------
.../RoleStataDataAdapter.java} | 12 ++-
.../baidu/hugegraph/election/RoleStateData.java | 91 ++++++++++++++++
.../hugegraph/election/StateMachineCallback.java | 19 ++++
.../hugegraph/election/StateMachineContext.java | 21 +++-
.../core/RoleElectionStateMachineTest.java | 52 ++++++---
10 files changed, 280 insertions(+), 148 deletions(-)
delete mode 100644
hugegraph-core/src/main/java/com/baidu/hugegraph/election/MetaData.java
delete mode 100644
hugegraph-core/src/main/java/com/baidu/hugegraph/election/MetaDataAdapter.java
copy hugegraph-core/src/main/java/com/baidu/hugegraph/{type/Indexable.java =>
election/RoleStataDataAdapter.java} (75%)
create mode 100644
hugegraph-core/src/main/java/com/baidu/hugegraph/election/RoleStateData.java