Remove the tag from esr-server. 61/7161/1
authorlizi00164331 <li.zi30@zte.com.cn>
Thu, 10 Aug 2017 02:25:59 +0000 (10:25 +0800)
committerlizi00164331 <li.zi30@zte.com.cn>
Thu, 10 Aug 2017 02:25:59 +0000 (10:25 +0800)
Remove the tag from esr-server code and rename the file name about openo

Change-Id: I5d16e81519cec80aece5f387110f469be0e6cdf5
Issue-ID: AAI-144
Signed-off-by: lizi00164331 <li.zi30@zte.com.cn>
esr-core/distribution/standalone/src/main/assembly/bin/initDB.bat
esr-core/distribution/standalone/src/main/assembly/bin/initDB.sh
esr-core/distribution/standalone/src/main/assembly/bin/run.bat
esr-core/distribution/standalone/src/main/assembly/bin/run.sh
esr-core/distribution/standalone/src/main/assembly/bin/stop.bat
esr-core/distribution/standalone/src/main/assembly/bin/stop.sh
esr-core/distribution/standalone/src/main/assembly/conf/extsys.yml
esr-core/distribution/standalone/src/main/assembly/dbscripts/mysql/onap-common-extsys-createobj.sql [moved from esr-core/distribution/standalone/src/main/assembly/dbscripts/mysql/openo-common-extsys-createobj.sql with 100% similarity]
esr-core/esr-mgr/src/main/java/org/onap/aai/esr/common/ServiceRegistrer.java
esr-core/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/msb/MicroserviceBusRest.java
esr-core/esr-mgr/src/main/resources/api-doc/index.html

index dd86c3e..c72b2ff 100644 (file)
@@ -20,15 +20,15 @@ set user=%1
 set password=%2
 set port=%3
 set host=%4
-echo start init extsys db
+echo start init esr db
 echo HOME=%HOME%
 set main_path=%HOME%..\
 cd /d %main_path%
-mysql -u%user% -p%password% -P%port% -h%host% < dbscripts\mysql\openo-common-extsys-createobj.sql
+mysql -u%user% -p%password% -P%port% -h%host% < dbscripts\mysql\onap-aai-esr-createobj.sql
 set "err=%errorlevel%"
 if "%err%"=="0" (
-   echo init extsys db success
+   echo init esr db success
   ) else (
-    echo failed init extsys db
+    echo failed init esr db
     pause
   )
\ No newline at end of file
index eb2dc24..5008e82 100644 (file)
@@ -21,14 +21,14 @@ user=$1
 password=$2
 port=$3
 host=$4
-echo "start init extsys db"
+echo "start init esr db"
 main_path=$HOME/../
-mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/openo-common-extsys-createobj.sql
+mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/onap-aai-esr-createobj.sql
 sql_result=$?
 if [ $sql_result != 0 ] ; then
-   echo "failed to init extsys database!"
+   echo "failed to init esr database!"
    exit 1
 fi
-echo "init extsys database success!"
+echo "init esr database success!"
 exit 0
 
index 9de9ffa..4923ee6 100644 (file)
 @REM
 
 @echo off
-title extsys-service
+title esr-service
 
 set RUNHOME=%~dp0
 echo ### RUNHOME: %RUNHOME%
-echo ### Starting extsys-service
+echo ### Starting esr-service
 set main_path=%RUNHOME%..\
 cd /d %main_path%
 set JAVA="%JAVA_HOME%\bin\java.exe"
 set port=8312
 set jvm_opts=-Xms50m -Xmx128m
 rem set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n
-set class_path=%main_path%;%main_path%extsys-service.jar
+set class_path=%main_path%;%main_path%esr-service.jar
 echo ### jvm_opts: %jvm_opts%
 echo ### class_path: %class_path%
 
-%JAVA% -classpath %class_path% %jvm_opts% org.openo.commonservice.extsys.ExtsysApp server %main_path%conf/extsys.yml
+%JAVA% -classpath %class_path% %jvm_opts% org.onap.aai.esr.ExtsysApp server %main_path%conf/extsys.yml
 
 IF ERRORLEVEL 1 goto showerror
 exit
index 176fc69..b55e3c2 100644 (file)
@@ -29,8 +29,8 @@ port=8312
 #JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
 echo @JAVA_OPTS@ $JAVA_OPTS
 
-class_path="$main_path/:$main_path/extsys-service.jar"
+class_path="$main_path/:$main_path/esr-service.jar"
 echo @class_path@ $class_path
 
-"$JAVA" $JAVA_OPTS -classpath "$class_path" org.openo.commonservice.extsys.ExtsysApp server "$main_path/conf/extsys.yml"
+"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.aai.esr.ExtsysApp server "$main_path/conf/extsys.yml"
 
index 170f240..60f1a13 100644 (file)
 @REM
 
 @echo off
-title stopping extsys-service
+title stopping esr-service
 
 set HOME=%~dp0
-set Main_Class="org.openo.commonservice.extsys.ExtsysApp"
+set Main_Class="org.onap.aai.esr.ExtsysApp"
 
-echo ================== extsys-service info =============================================
+echo ================== esr-service info =============================================
 echo HOME=$HOME
 echo Main_Class=%Main_Class%
 echo ===============================================================================
 
-echo ### Stopping extsys-service
+echo ### Stopping esr-service
 cd /d %HOME%
 
 for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do (
index 0afe681..1ebb1b3 100644 (file)
@@ -17,9 +17,9 @@
 
 DIRNAME=`dirname $0`
 HOME=`cd $DIRNAME/; pwd`
-Main_Class="org.openo.commonservice.extsys.ExtsysApp"
+Main_Class="org.onap.aai.esr.ExtsysApp"
 
-echo ================== catalog-service info =============================================
+echo ================== esr-service info =============================================
 echo HOME=$HOME
 echo Main_Class=$Main_Class
 echo ===============================================================================
index 33c939a..cc8b6be 100644 (file)
@@ -43,7 +43,7 @@ database:
 #    port: 8080
 server:
   type: simple
-  rootPath: '/openoapi/extsys/v1/*'
+  rootPath: '/onapapi/aai/esr/v1/*'
   applicationContextPath: /
   adminContextPath: /admin
   connector:
@@ -60,7 +60,7 @@ logging:
   loggers:
 
     # Sets the level for 'com.example.app' to DEBUG.
-    org.openo.commonservice.extsys.ExtsysApp: INFO
+    org.onap.aai.esr.ExtsysApp: INFO
 
   appenders:
     - type: console
index c8cb3cd..f61a25b 100644 (file)
@@ -69,7 +69,7 @@ public class ServiceRegistrer implements Runnable {
     extsysEntity.setServiceName("extsys");
     extsysEntity.setProtocol("REST");
     extsysEntity.setVersion("v1");
-    extsysEntity.setUrl("/openoapi/extsys/v1");
+    extsysEntity.setUrl("/onapapi/aai/esr/v1");
     extsysEntity.setSingleNode(Config.getConfigration().getServiceIp(), "8100", 0);
     extsysEntity.setVisualRange("1");
   }
index a6a064f..f0344b1 100644 (file)
@@ -27,7 +27,7 @@ import org.onap.aai.esr.externalservice.entity.ServiceRegisterEntity;
 
 
 
-@Path("/openoapi/microservices/v1/services")
+@Path("/onapapi/microservices/v1/services")
 // @Path("/api/microservices/v1/services")
 public interface MicroserviceBusRest {
   @Path("")
index 7cd76a3..54cf8b4 100644 (file)
@@ -45,7 +45,7 @@
       if (url && url.length > 1) {
         url = decodeURIComponent(url[1]);
       } else {
-        url = "/openoapi/extsys/v1/swagger.json";
+        url = "/onapapi/aai/esr/v1/swagger.json";
       }
       window.swaggerUi = new SwaggerUi({
         url: url,