forked from YunaiV/eureka
-
Notifications
You must be signed in to change notification settings - Fork 0
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
YunaiV
authored and
YunaiV
committed
Sep 29, 2017
1 parent
103e087
commit 671d7fc
Showing
18 changed files
with
287 additions
and
97 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
18 changes: 18 additions & 0 deletions
18
eureka-client/src/main/java/com/netflix/appinfo/AbstractEurekaIdentity.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 |
---|---|---|
@@ -1,18 +1,36 @@ | ||
package com.netflix.appinfo; | ||
|
||
import com.netflix.yunai.Done; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* Eureka 对象标识符抽象类 | ||
*/ | ||
public abstract class AbstractEurekaIdentity { | ||
|
||
public static final String PREFIX = "DiscoveryIdentity-"; | ||
|
||
public static final String AUTH_NAME_HEADER_KEY = PREFIX + "Name"; | ||
public static final String AUTH_VERSION_HEADER_KEY = PREFIX + "Version"; | ||
public static final String AUTH_ID_HEADER_KEY = PREFIX + "Id"; | ||
|
||
/** | ||
* @return 对象名 | ||
*/ | ||
@Done(progress = 100) | ||
public abstract String getName(); | ||
|
||
/** | ||
* @return 对象版本号 | ||
*/ | ||
@Done(progress = 100) | ||
public abstract String getVersion(); | ||
|
||
/** | ||
* @return 对象编号 | ||
*/ | ||
@Nullable | ||
@Done(progress = 100) | ||
public abstract String getId(); | ||
} |
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
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
3 changes: 3 additions & 0 deletions
3
eureka-client/src/main/java/com/netflix/appinfo/AmazonInfoConfig.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
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
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
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
Oops, something went wrong.