Skip to content

Devi1804/Distributed_System_Project_3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project3

Implementation of 2-phase distributed commit(2PC) protocol

Prerequisites:

Minimum JDK 8

How to compile and run the project.

  1. Go to the 'TransactionControl' folder and run the following command to compile the project
javac  -d ./bin -cp ./bin ./src/main/java/com/ds/project3/client/*.java
javac  -d ./bin -cp ./bin ./src/main/java/com/ds/project3/log/*.java
javac  -d ./bin -cp ./bin ./src/main/java/com/ds/project3/server/controller/*.java
javac  -d ./bin -cp ./bin ./src/main/java/com/ds/project3/server/nodes/*.java
  1. After compiling the code run the following commands on separate terminals:
java -classpath ./bin com.ds.project3.server.controller.TransactionController
java -classpath ./bin com.ds.project3.server.nodes.NodeA
java -classpath ./bin com.ds.project3.server.nodes.NodeB
java -classpath ./bin com.ds.project3.client.Client

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages