diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2018-03-21 09:14:25 +0800 |
---|---|---|
committer | HuabingZhao <zhao.huabing@zte.com.cn> | 2018-03-21 09:14:30 +0800 |
commit | fd00a6849e072eb429e7ed7181588389f39bbdff (patch) | |
tree | 9cda0de5fb403ed3205ec78bcd77aa036bfac55f /example/src/main/java/org/onap/msb/sdk/example/client | |
parent | 722d78240f9ae320ceb262b496cf8cee07ae2591 (diff) |
Support healthy check for registered services
Issue-ID: MSB-180
Change-Id: I352dfe32d3fbc1c7736ffbbb7b72718e6bbb5e01
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'example/src/main/java/org/onap/msb/sdk/example/client')
-rw-r--r-- | example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java | 4 | ||||
-rw-r--r-- | example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java b/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java index cd9ebbb..aa6b9e3 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java +++ b/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java @@ -23,6 +23,6 @@ import retrofit2.http.Path; @ServiceHttpEndPoint(serviceName = "animals", serviceVersion = "v1") public interface AnimalServiceClient { - @GET("animals/{name}") - Call<Animal> queryAnimal(@Path("name") String name); + @GET("animals/{name}") + Call<Animal> queryAnimal(@Path("name") String name); } diff --git a/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java b/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java index 4184b02..968621f 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java +++ b/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java @@ -29,8 +29,8 @@ public class ExampleClient { public static void main(String[] args) throws IOException { // For real use case, MSB discovery IP and Port should come from configuration file instead // of hard code here - String msb_discovery_ip = "127.0.0.1"; - int msb_discovery_port = 10081; + String msb_discovery_ip = "10.96.33.44"; + int msb_discovery_port = 30080; MSBServiceClient msbClient = new MSBServiceClient(msb_discovery_ip, msb_discovery_port); |