aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-common/src/main/resources
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2017-10-16 20:05:21 +0800
committerLuji7 <lu.ji3@zte.com.cn>2017-10-16 20:05:30 +0800
commitb7503ec5b347cf30dd5bfbc27dac076fbb6f5418 (patch)
tree2aaf5ca99c5a7634fb202d6ac58d5374ab6004cc /usecaseui-common/src/main/resources
parent21c183604fa889417ab579027ed6a0bffb79ceda (diff)
add msb config
Change-Id: Ibee1e8622409f867a865ada18576db3ff1eb855d Issue-Id: USECASEUI-36 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'usecaseui-common/src/main/resources')
-rw-r--r--usecaseui-common/src/main/resources/logback.xml117
-rw-r--r--usecaseui-common/src/main/resources/portalConfig/msb_register.xml155
2 files changed, 272 insertions, 0 deletions
diff --git a/usecaseui-common/src/main/resources/logback.xml b/usecaseui-common/src/main/resources/logback.xml
new file mode 100644
index 00000000..65e61cbd
--- /dev/null
+++ b/usecaseui-common/src/main/resources/logback.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<configuration debug="false" scan="true" scanPeriod="30 seconds">
+ <property name="projectName" value="openoui"/>
+ <property name="logDir" value="../webapps/openoui/openoui_log"/>
+ <property name="maxHistory" value="30"/>
+ <timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
+
+ <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>ERROR</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/error/error.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>
+ %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <appender name="warnAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>WARN</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/warn/warn.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="infoAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>INFO</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/info/info.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="debugAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>DEBUG</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/debug/debug.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="traceAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>TRACE</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/trace/trace.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <root>
+ <level value="info"/>
+ <appender-ref ref="consoleAppender"/>
+ <appender-ref ref="errorAppender"/>
+ <appender-ref ref="warnAppender"/>
+ <appender-ref ref="infoAppender"/>
+ <appender-ref ref="debugAppender"/>
+ <appender-ref ref="traceAppender"/>
+ </root>
+</configuration>
diff --git a/usecaseui-common/src/main/resources/portalConfig/msb_register.xml b/usecaseui-common/src/main/resources/portalConfig/msb_register.xml
new file mode 100644
index 00000000..a777745a
--- /dev/null
+++ b/usecaseui-common/src/main/resources/portalConfig/msb_register.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<msbRegister>
+ <msbHost>
+ <hostIp>http://192.168.233.226</hostIp>
+ <hostPort>80</hostPort>
+ <msbApiRootDomain>/openoapi/microservices/v1/services</msbApiRootDomain>
+ </msbHost>
+ <registerList>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/framework</url>
+ <serviceName>framework</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/thirdparty</url>
+ <serviceName>thirdparty</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/login</url>
+ <serviceName>login</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/catalog</url>
+ <serviceName>catalog</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/extsys</url>
+ <serviceName>extsys</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/performance</url>
+ <serviceName>performance</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/monitor</url>
+ <serviceName>monitor</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/lifecyclemgr</url>
+ <serviceName>lifecyclemgr</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/resmgr</url>
+ <serviceName>resmgr</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/provincemgr</url>
+ <serviceName>provincemgr</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/user</url>
+ <serviceName>user</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/vnfmarket</url>
+ <serviceName>vnfmarket</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ <registerInfo>
+ <ip>127.0.0.1</ip>
+ <port>9150</port>
+ <url>/openoui/holmes</url>
+ <serviceName>holmes</serviceName>
+ <protocol>UI</protocol>
+ <visualRange>1</visualRange>
+ <lb_policy>hash</lb_policy>
+ <ttl>0</ttl>
+ </registerInfo>
+ </registerList>
+</msbRegister>