{"id":50878359,"url":"https://github.com/dongjinyong/Gossip","last_synced_at":"2026-07-03T02:01:15.061Z","repository":{"id":4997322,"uuid":"6155524","full_name":"dongjinyong/Gossip","owner":"dongjinyong","description":"Java实现的Gossip协议，借鉴CassandraV1.1.1源码","archived":false,"fork":false,"pushed_at":"2012-10-12T10:35:00.000Z","size":164,"stargazers_count":45,"open_issues_count":0,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-10-20T19:24:54.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dongjinyong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-10T10:12:32.000Z","updated_at":"2023-09-16T05:37:30.000Z","dependencies_parsed_at":"2022-08-28T09:40:48.524Z","dependency_job_id":null,"html_url":"https://github.com/dongjinyong/Gossip","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dongjinyong/Gossip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongjinyong%2FGossip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongjinyong%2FGossip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongjinyong%2FGossip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongjinyong%2FGossip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dongjinyong","download_url":"https://codeload.github.com/dongjinyong/Gossip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongjinyong%2FGossip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35069183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-15T12:00:25.791Z","updated_at":"2026-07-03T02:01:15.036Z","avatar_url":"https://github.com/dongjinyong.png","language":"Java","funding_links":[],"categories":["分布式开发"],"sub_categories":["微服务框架"],"readme":"Gossip\r\n======\r\n\r\nJava实现的Gossip协议，基于CassandraV1.1.1源码修改实现（尽量保留了Cassandra源码），把Cassandra中Gossip协议相关部分抽取了出来，供大家参考。\r\n目录结构与cassandra源码一致，以下为目录说明：\r\nconcurrent:并发包工具类.\r\nconfig:配置信息.\r\ngms:gossip的核心实现类.\r\nio:序列化相关.\r\nlocator:事件监听器和seed接口.\r\nnet:通信相关，采用传统的BIO方式，可根据项目需要换成自己的通信服务层.\r\nservice:供外部调用的方法，gossip协议使用方法实例程序.\r\nutils:工具类.\r\n\r\n对Cassandra源码的修改主要包括：\r\n1. InetAddress换成InetSocketAddress，可以为每个实例指定不同的端口，方便本机启用多个实例调试。\r\n2. 去掉了与cassandra业务耦合的一些类和方法，对监听器接口做了简化。\r\n3. 简化通信部分，如果项目需要，或者有独立的通信服务代码，直接替换net目录下的类或接口即可。\r\n\r\n具体使用方式请看readme.txt\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongjinyong%2FGossip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdongjinyong%2FGossip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongjinyong%2FGossip/lists"}