super-diamond配置管理系統(tǒng)
super-diamond 提供系統(tǒng)參數(shù)配置管理,例如數(shù)據(jù)庫(kù)的配置信息等,配置參數(shù)修改以后可以實(shí)時(shí)推送到客戶端(基于netty4), 方便系統(tǒng)動(dòng)態(tài)修改運(yùn)行參數(shù)。
可以建多個(gè)項(xiàng)目,每個(gè)項(xiàng)目分為三種profile(development、test、production), 能夠控制profile 級(jí)別的權(quán)限。
所有參數(shù)均由development profile配置,test和production profile繼承development profile配置,也可以覆蓋其配置。 test和production profile只提供修改功能。
client 備份配置信息到本地文件系統(tǒng),如果server不可用,可以使用本地備份。client 能夠定時(shí)重連server,保證client高可用。
client 提供ConfigurationListener,當(dāng)某個(gè)屬性發(fā)生變化(add、update、clear), ConfigurationListener能夠接收到ConfigurationEvent。
server 備份配置文件系統(tǒng)系統(tǒng),如果數(shù)據(jù)庫(kù)不用,能夠保證對(duì)客戶端提供數(shù)據(jù)(待完善)。
評(píng)論
圖片
表情
