Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Test divided by the staff at Eaton Corporation within the context of my 2018 internship application. It consists of a simulation of one monitoring device that has to count the number of messages received from some connected measuring devices.

License

Notifications You must be signed in to change notification settings

m0glan/eaton-application-challenge

Repository files navigation

Release Packagist

Eaton Application Challenge

Description

The goal of this project is to implement a simulation in which one monitoring device and multiple measurement devices interact and exchange data; each client has an id attributed by the monitor. The challenge is for the monitor to count the number of messages it receives.

This project uses standard Java socket programming to establish connections between clients and a server. On the application layer, a handshake based protocol has been put in place to make data-exchange between a client and the server possible and to facilitate smooth connection termination (thus avoiding brutal socket closure).

The interface gives control over the simulation in what concerns the number of active connections (cannot be bigger than numberOfThreads + 1) and the frequency at which the clients send messages to the server. It also displays the real-time message count (which does not change if there are no active connections).

Download

Get version 2.1.0 (requires Java 8).

Building from source

Check the wiki for information on how to build the project from source.

About

Test divided by the staff at Eaton Corporation within the context of my 2018 internship application. It consists of a simulation of one monitoring device that has to count the number of messages received from some connected measuring devices.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages