Giter VIP home page Giter VIP logo

gossip-protocol's People

Contributors

tyler-r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gossip-protocol's Issues

Improve Multi threading synchronization

Ensure that there are no race conditions in the protocol. May want to look into ensuring that all the data in the Member class is synchronized and that all the member accesses in the Gossip class are synchronized as well.

Add Logging System

Currently logging is done using println statements. This should be changed to a use a logging system, possibly using an interface that can be be set by the user of the library. I think it would be best to set this in a static context on the Gossip class.

Handle Exceptions better

There are a number of exception that are being caught, but are either naively having the stack trace printed or not being handled at all. This should be changed so that either corrective action is taken to address why the exception was thrown, or a better log message should be printed using the logging system discussed in issue #5.

Refactor IPAddress, and Port parameters to SocketAddresse's

The gossip and Member class often take an IPAddress and Port as parameters. This should be changed to use the SocketAddress class as has been done in partially done to reduce the number of parameters that these classes need, especially for constructors.

Prevent hearbeat counter from overflowing

The heartbeat counter is currently implemented using a long value. It should be changed to a value that can does not overflow and thus can grow infinitely large.

Make duration time based objects

There is a number of int based duration in the Config class that represent time in milliseconds. These should be changed to millisecond duration classes to better represent what the variable represents.

Add Readme

Add a Readme to explain the repository, an overview of the public methods, and give an example of how to use the Gossip protocol class.

License

Add the MIT license or a similair license to the project

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.