From 7bd71a2e066ee437fba53357db5553f7437200fe Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Fri, 22 Sep 2017 13:58:01 +0800 Subject: Initialize MSB java sdk docs Change-Id: I657ee91d5ec92320c065e3d6c13ef07222c8120e Issue-Id: MSB-81 Signed-off-by: HtuabingZhao --- .checkstyle | 23 ++++++++++++++++++++++ docs/index.rst | 8 ++++++++ .../onap/msb/sdk/example/client/ExampleClient.java | 4 ++-- .../onap/msb/sdk/example/server/ExampleApp.java | 4 ++-- 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 .checkstyle create mode 100644 docs/index.rst diff --git a/.checkstyle b/.checkstyle new file mode 100644 index 0000000..2cd01ac --- /dev/null +++ b/.checkstyle @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000..833e1aa --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,8 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. + +TODO Add files to toctree and delete this header +------------------------------------------------ +.. toctree:: + :maxdepth: 1 + + 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 15a9f6f..ac31836 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 @@ -28,8 +28,8 @@ public class ExampleClient { */ public static void main(String[] args) throws IOException { //For real use case, MSB IP and Port should come from configuration file instead of hard code here - String MSB_IP="127.0.0.1"; - int MSB_Port=10081; + String MSB_IP="10.96.33.44"; + int MSB_Port=30081; MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port); diff --git a/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java b/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java index 76827c5..f44ba39 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java +++ b/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java @@ -39,8 +39,8 @@ public class ExampleApp extends Application { @Override public void run(Config configuration, Environment environment) throws Exception { - String MSB_IP="127.0.0.1"; - int MSB_Port=10081; + String MSB_IP="10.96.33.44"; + int MSB_Port=30080; environment.jersey().register(new AnimalResource()); -- cgit 1.2.3-korg