Skip to content

amum0611/election-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Implementation of Read Write Lock and Election Algorithm with Apache Zookeeper

License

Prerequisites

  • Maven

  • Java 1.6

Build the server

mvn clean install

Simulation

  • Read Write Lock

    mvn clean install

    find the read-write-lock-1.0.0.jar at modules/read-write-lock/target

    Then execute,

      java -cp read-write-lock-1.0.0.jar org.labs.qbit.election.lock.ReadWriteLockClient
    
  • Leader Election

    mvn clean install

    find leader-election-1.0.0.jar at modules/leader-election/target

    Then execute,

      java -cp leader-election-1.0.0.jar org.labs.qbit.election.leader.ElectionClient
    

Pre conditions

Zookeeper should be up and running on localhost:2181
Necessary JARs are included within the respective builds.

About

Election Algorithm Implementation with Apache Zookeeper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages