Git Product home page Git Product logo

gossip's Introduction

Gossip

Java实现的Gossip协议,基于CassandraV1.1.1源码修改实现(尽量保留了Cassandra源码),把Cassandra中Gossip协议相关部分抽取了出来,供大家参考。 目录结构与cassandra源码一致,以下为目录说明: concurrent:并发包工具类. config:配置信息. gms:gossip的核心实现类. io:序列化相关. locator:事件监听器和seed接口. net:通信相关,采用传统的BIO方式,可根据项目需要换成自己的通信服务层. service:供外部调用的方法,gossip协议使用方法实例程序. utils:工具类.

对Cassandra源码的修改主要包括:

  1. InetAddress换成InetSocketAddress,可以为每个实例指定不同的端口,方便本机启用多个实例调试。
  2. 去掉了与cassandra业务耦合的一些类和方法,对监听器接口做了简化。
  3. 简化通信部分,如果项目需要,或者有独立的通信服务代码,直接替换net目录下的类或接口即可。

具体使用方式请看readme.txt

gossip's People

Contributors

dongjinyong avatar

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.