Skip to content

adi8/TwoPhaseCommit

Repository files navigation

Compiling program w/o gradle

./compile

Compiling project w/ gradle

./gradle_compile

Running project w/o gradle

Master

./server master

Note:

  1. For master you need to have a master.properties file in config folder in the directory where server is triggered.
  2. Directory where server is triggered should have the sqlite-jdbc folder provide. It has the sqllite-jdbc jar file.
  • master.properties has the following:
replica.servers=<replica_1_server_ip> <replica_2_server_ip> ...

These are space separated ip addresses of replica servers.

Replica

./server replica <master-ip>

    master-ip : IP Address of m/c where master is running

Client

./server client <master-ip>

    master-ip : IP Address of m/c where master is running

Running project w/ gradle

Master

./server_gradle master

Note:

  1. For master you need to have a master.properties file in config folder in the directory where server is triggered.

Replica

./server_gradle replica <master-ip>

    master-ip : IP Address of m/c where master is running

Client

./server_gradle client <master-ip>

    master-ip : IP Address of m/c where master is running

About

A basic two phase commit implementation.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors