Skip to content

This project contains a java application whose purpose is to practice the implementation of the heartbeat architectural tactic

Notifications You must be signed in to change notification settings

zchi88/HeartbeatTactic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About the HeartbeatTactics Project

The purpose of this project is to practice implementing the Heartbeat architectural tactic with passive redundancy and fault recovery. This tactic aims to improve the availability of a system by monitoring the status of a crtical component to ensure that it is alive and running. In this example, I have modeled a pacemaker system. I identified the critical component of this system as being the sensor which detects heart pulses sent by a simulated heart. I inject an error to make the component crash on purpose and make sure that the system is recovering from the crash.

Architectural Overview

Pacemaker with heartbeat tactic

Dependencies

This application was created with JDK 8 and Eclipse

Running the App From Eclipse:

  1. Clone or copy this repository to your local machine

  2. Open up Eclipse, and import this project

    File > Import... > General > Existing Projects into Workspace > PATH TO PROJECT
  3. Run PacemakerController

  4. Run HeartSimulator

  5. Thats it! A GUI should pop up and show you that the pacemaker is running.

Running the App From the Command Line:

  1. Clone or copy this repository to your local machine

  2. Open up command line client

  3. Change directory to ...PATH/TO/HeartbeatTactic/bin

  4. Run PacemakerController with the following command:

    java pacemaker.PacemakerController
  5. Open a second command line client

  6. Change working directory to same as before (...PATH/TO/HeartbeatTactic/bin)

  7. Run HeartSimulator with the following command:

    java pacemaker.HeartSimulator
  8. Thats it! A GUI should pop up and show you that the pacemaker is running.

About

This project contains a java application whose purpose is to practice the implementation of the heartbeat architectural tactic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages