Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 98df34e
Showing
112 changed files
with
18,256 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.project |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ooOPSrijRSMpkBwoEAQSTuiIrMxGWnLOtfdENlSCmVniQk | ||
mi2KTt8nwsN0xZ0yQ>773SoN2KN>MUkQEpTg>kY2ykbpJ> | ||
QOppsSpRNrMoNpqMQROSxqqQRMRPRmNOrrUVWSVStvmXXU | ||
wURnmpmUUnoumopvommmmmUUnoumopvommmmmUUvvplcqk | ||
ZljUUn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<parent> | ||
<artifactId>diamond-all</artifactId> | ||
<groupId>com.taobao.diamond</groupId> | ||
<version>2.0.5.4.taocode-SNAPSHOT</version> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>diamond-client</artifactId> | ||
<name>diamond-client v${project.version}</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.taobao.diamond</groupId> | ||
<artifactId>diamond-utils</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-httpclient</groupId> | ||
<artifactId>commons-httpclient</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-lang</groupId> | ||
<artifactId>commons-lang</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
36 changes: 36 additions & 0 deletions
36
diamond-client/src/main/java/com/taobao/diamond/client/DiamondClientSub.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* (C) 2007-2012 Alibaba Group Holding Limited. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* Authors: | ||
* leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail.com> | ||
*/ | ||
package com.taobao.diamond.client; | ||
|
||
/** | ||
* Diamond是一个支持持久的可靠的文本配置信息管理中心,用于文本配置信息的订阅。<br> | ||
* Diamond目前是使用ops发布持久配置信息。<br> | ||
* Diamond由于使用集中的数据库保存持久的配置信息,配置信息十分安全,并且,Diamond能够使客户永远获取最新的订阅信息。<br> | ||
* 目前Diamond客户端拥有如下几种方式: <br> | ||
* 1.主动获取<br> | ||
* 2.定时获取<br> | ||
* Diamond客户端还支持相对远程配置信息而言,优先级更高的本地配置配置信息的获取(使用Properties或者xml) | ||
* | ||
* @author aoqiong | ||
* | ||
*/ | ||
public interface DiamondClientSub { | ||
|
||
public void setDiamondConfigure(DiamondConfigure diamondConfigure); | ||
|
||
|
||
public DiamondConfigure getDiamondConfigure(); | ||
|
||
|
||
public void start(); | ||
|
||
|
||
public void close(); | ||
} |
Oops, something went wrong.