<?xml version='1.0' encoding='GBK'?>
<!--
- Copyright 2017 BOCO Corporation.
+ Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
-# Copyright 2017 BOCO Corporation.
+# Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
-# Copyright 2017 BOCO Corporation.
+# Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
-# Copyright 2017 BOCO Corporation.
+# Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
<?xml version="1.0" encoding="GBK"?>
<!--
- Copyright 2017 BOCO Corporation.
+ Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
default-lazy-init="true">
- <bean id="configurationManager" class="org.openo.nfvo.emsdriver.configmgr.ConfigurationManager">
+ <bean id="configurationManager" class="org.onap.nfvo.emsdriver.configmgr.ConfigurationManager">
<property name="run" value="true" />
</bean>
- <bean id="collectMsgReceiverThread" class="org.openo.nfvo.emsdriver.collector.CollectMsgReceiverThread">
+ <bean id="collectMsgReceiverThread" class="org.onap.nfvo.emsdriver.collector.CollectMsgReceiverThread">
<property name="run" value="true" />
<property name="thread_max_num" value="100" />
</bean>
- <bean id="configurationImp" class="org.openo.nfvo.emsdriver.configmgr.ConfigurationImp">
+ <bean id="configurationImp" class="org.onap.nfvo.emsdriver.configmgr.ConfigurationImp">
</bean>
- <bean id="alarmManager" class="org.openo.nfvo.emsdriver.collector.alarm.AlarmManager">
+ <bean id="alarmManager" class="org.onap.nfvo.emsdriver.collector.alarm.AlarmManager">
<property name="run" value="true" />
<property name="configurationInterface" ref="configurationImp" />
</bean>
- <bean id="collectManager" class="org.openo.nfvo.emsdriver.taskscheduler.CollectManager">
+ <bean id="collectManager" class="org.onap.nfvo.emsdriver.taskscheduler.CollectManager">
<property name="run" value="true" />
<property name="configurationInterface" ref="configurationImp" />
</bean>
- <bean id="northMessageMgr" class="org.openo.nfvo.emsdriver.northbound.client.NorthMessageMgr">
+ <bean id="northMessageMgr" class="org.onap.nfvo.emsdriver.northbound.client.NorthMessageMgr">
<property name="run" value="true" />
<property name="configurationInterface" ref="configurationImp" />
</bean>
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2017, BOCO.
+ Copyright (c) 2017, BOCO. CMCC Technologies Co., Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <groupId>org.openo.nfvo</groupId>
+ <parent>
+ <groupId>org.onap.nfvo</groupId>
<artifactId>nfvo-root</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../../../../..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.openo.nfvo</groupId>
+ <groupId>org.onap.nfvo</groupId>
<artifactId>ems-driver</artifactId>
<version>1.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver;
+package org.onap.nfvo.emsdriver;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.northbound.service.EmsDriverApplication;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.northbound.service.EmsDriverApplication;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector;
+package org.onap.nfvo.emsdriver.collector;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectMsg;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannel;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannelFactory;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectMsg;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannel;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannelFactory;
public class CollectMsgReceiverThread extends DriverThread{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector;
+package org.onap.nfvo.emsdriver.collector;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.ftp.AFtpRemoteFile;
-import org.openo.nfvo.emsdriver.commons.ftp.FTPInterface;
-import org.openo.nfvo.emsdriver.commons.ftp.FTPSrv;
-import org.openo.nfvo.emsdriver.commons.ftp.SFTPSrv;
-import org.openo.nfvo.emsdriver.commons.model.CollectMsg;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.utils.StringUtil;
-import org.openo.nfvo.emsdriver.commons.utils.UnZip;
-import org.openo.nfvo.emsdriver.commons.utils.Zip;
-import org.openo.nfvo.emsdriver.configmgr.ConfigurationImp;
-import org.openo.nfvo.emsdriver.configmgr.ConfigurationInterface;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannel;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannelFactory;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.ftp.AFtpRemoteFile;
+import org.onap.nfvo.emsdriver.commons.ftp.FTPInterface;
+import org.onap.nfvo.emsdriver.commons.ftp.FTPSrv;
+import org.onap.nfvo.emsdriver.commons.ftp.SFTPSrv;
+import org.onap.nfvo.emsdriver.commons.model.CollectMsg;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.utils.StringUtil;
+import org.onap.nfvo.emsdriver.commons.utils.UnZip;
+import org.onap.nfvo.emsdriver.commons.utils.Zip;
+import org.onap.nfvo.emsdriver.configmgr.ConfigurationImp;
+import org.onap.nfvo.emsdriver.configmgr.ConfigurationInterface;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannel;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannelFactory;
public class TaskThread implements Runnable{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector;
+package org.onap.nfvo.emsdriver.collector;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectMsg;
-import org.openo.nfvo.emsdriver.commons.utils.StringUtil;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectMsg;
+import org.onap.nfvo.emsdriver.commons.utils.StringUtil;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector.alarm;
+package org.onap.nfvo.emsdriver.collector.alarm;
import java.util.ArrayList;
import java.util.List;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.model.EMSInfo;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.configmgr.ConfigurationInterface;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.model.EMSInfo;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.configmgr.ConfigurationInterface;
public class AlarmManager extends DriverThread{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector.alarm;
+package org.onap.nfvo.emsdriver.collector.alarm;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.utils.StringUtil;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannel;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannelFactory;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.utils.StringUtil;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannel;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannelFactory;
import com.alibaba.fastjson.JSONObject;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector.alarm;
+package org.onap.nfvo.emsdriver.collector.alarm;
import java.io.BufferedOutputStream;
import java.net.Socket;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
public class HeartBeat extends Thread{
public Log log = LogFactory.getLog(HeartBeat.class);
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector.alarm;
+package org.onap.nfvo.emsdriver.collector.alarm;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector.alarm;
+package org.onap.nfvo.emsdriver.collector.alarm;
import java.io.UnsupportedEncodingException;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
public class Msg {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.collector.alarm;
+package org.onap.nfvo.emsdriver.collector.alarm;
public enum MsgType {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.constant;
+package org.onap.nfvo.emsdriver.commons.constant;
import java.io.File;
public static final String ALARM_CHANNEL_KEY = "ALARM_CHANNEL_KEY";
- public static final String MSBAPIROOTDOMAIN = "/openoapi/microservices/v1/services";
+ public static final String MSBAPIROOTDOMAIN = "/api/microservices/v1/services";
//alarm
public static final int READ_TIMEOUT_MILLISECOND = 180000;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.ftp;
+package org.onap.nfvo.emsdriver.commons.ftp;
import java.io.IOException;
import java.io.InputStream;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.ftp;
+package org.onap.nfvo.emsdriver.commons.ftp;
import org.apache.commons.net.ftp.Configurable;
import org.apache.commons.net.ftp.FTPClientConfig;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.ftp;
+package org.onap.nfvo.emsdriver.commons.ftp;
public interface FTPInterface {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.ftp;
+package org.onap.nfvo.emsdriver.commons.ftp;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPReply;
-import org.openo.nfvo.emsdriver.commons.utils.StringUtil;
+import org.onap.nfvo.emsdriver.commons.utils.StringUtil;
public class FTPSrv implements FTPInterface{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.ftp;
+package org.onap.nfvo.emsdriver.commons.ftp;
public interface RemoteFile {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.ftp;
+package org.onap.nfvo.emsdriver.commons.ftp;
public class SFTPSrv implements FTPInterface{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.model;
+package org.onap.nfvo.emsdriver.commons.model;
public class CollectMsg {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.model;
+package org.onap.nfvo.emsdriver.commons.model;
/**
* @author boco
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.model;
+package org.onap.nfvo.emsdriver.commons.model;
import java.util.HashMap;
import java.util.Map;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.utils;
+package org.onap.nfvo.emsdriver.commons.utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.utils;
+package org.onap.nfvo.emsdriver.commons.utils;
import java.io.File;
import java.io.PrintWriter;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.utils;
+package org.onap.nfvo.emsdriver.commons.utils;
import java.io.File;
import java.io.FileOutputStream;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.utils;
+package org.onap.nfvo.emsdriver.commons.utils;
import java.io.IOException;
import java.io.InputStream;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.commons.utils;
+package org.onap.nfvo.emsdriver.commons.utils;
import java.io.File;
import java.io.FileInputStream;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.configmgr;
+package org.onap.nfvo.emsdriver.configmgr;
import java.util.List;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.model.EMSInfo;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.model.EMSInfo;
public class ConfigurationImp implements ConfigurationInterface{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.configmgr;
+package org.onap.nfvo.emsdriver.configmgr;
import java.util.List;
import java.util.Properties;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.model.EMSInfo;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.model.EMSInfo;
public interface ConfigurationInterface {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.configmgr;
+package org.onap.nfvo.emsdriver.configmgr;
import java.io.File;
import java.io.FileInputStream;
import org.jdom.Document;
import org.jdom.Element;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.model.EMSInfo;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.commons.utils.StringUtil;
-import org.openo.nfvo.emsdriver.commons.utils.XmlUtil;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.model.EMSInfo;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.commons.utils.StringUtil;
+import org.onap.nfvo.emsdriver.commons.utils.XmlUtil;
public class ConfigurationManager extends DriverThread{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.messagemgr;
+package org.onap.nfvo.emsdriver.messagemgr;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.messagemgr;
+package org.onap.nfvo.emsdriver.messagemgr;
import java.util.HashMap;
import java.util.Map;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.northbound.client;
+package org.onap.nfvo.emsdriver.northbound.client;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.northbound.client;
+package org.onap.nfvo.emsdriver.northbound.client;
import java.io.IOException;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.northbound.client;
+package org.onap.nfvo.emsdriver.northbound.client;
import java.util.Properties;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.configmgr.ConfigurationInterface;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannel;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannelFactory;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.configmgr.ConfigurationInterface;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannel;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannelFactory;
public class NorthMessageMgr extends DriverThread{
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.northbound.service;
+package org.onap.nfvo.emsdriver.northbound.service;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.northbound.service;
+package org.onap.nfvo.emsdriver.northbound.service;
import io.dropwizard.Application;
import io.dropwizard.jetty.HttpConnectorFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.serviceregister.MsbConfiguration;
-import org.openo.nfvo.emsdriver.serviceregister.MsbRestServiceProxy;
-import org.openo.nfvo.emsdriver.serviceregister.model.MsbRegisterVo;
-import org.openo.nfvo.emsdriver.serviceregister.model.ServiceNodeVo;
+import org.onap.nfvo.emsdriver.serviceregister.MsbConfiguration;
+import org.onap.nfvo.emsdriver.serviceregister.MsbRestServiceProxy;
+import org.onap.nfvo.emsdriver.serviceregister.model.MsbRegisterVo;
+import org.onap.nfvo.emsdriver.serviceregister.model.ServiceNodeVo;
public class EmsDriverApplication extends Application<EmsDriverConfiguration> {
List<ServiceNodeVo> nodeList = new ArrayList<ServiceNodeVo>();
nodeList.add(serviceNode);
registerVo.setServiceName("emsdriver");
- registerVo.setUrl("/openoapi/emsdriver/v1");
+ registerVo.setUrl("/api/emsdriver/v1");
registerVo.setNodes(nodeList);
MsbRestServiceProxy.registerService(registerVo);
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.northbound.service;
+package org.onap.nfvo.emsdriver.northbound.service;
import io.dropwizard.Configuration;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.serviceregister;
+package org.onap.nfvo.emsdriver.serviceregister;
public class MsbConfiguration {
protected static String msbAddress;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.serviceregister;
+package org.onap.nfvo.emsdriver.serviceregister;
import java.util.ArrayList;
import java.util.List;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.northbound.client.HttpClientUtil;
-import org.openo.nfvo.emsdriver.serviceregister.model.MsbRegisterVo;
-import org.openo.nfvo.emsdriver.serviceregister.model.ServiceNodeVo;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.northbound.client.HttpClientUtil;
+import org.onap.nfvo.emsdriver.serviceregister.model.MsbRegisterVo;
+import org.onap.nfvo.emsdriver.serviceregister.model.ServiceNodeVo;
import com.alibaba.fastjson.JSON;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.serviceregister.model;
+package org.onap.nfvo.emsdriver.serviceregister.model;
import java.util.List;
public class MsbRegisterVo {
private String serviceName = "emsdriver";
private String version = "v1";
- private String url = "/openoapi/emsdriver/v1";
+ private String url = "/api/emsdriver/v1";
private String protocol = "REST";
private String visualRange = "1";
private List<ServiceNodeVo> nodes;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.serviceregister.model;
+package org.onap.nfvo.emsdriver.serviceregister.model;
public class ServiceNodeVo {
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.taskscheduler;
+package org.onap.nfvo.emsdriver.taskscheduler;
import java.util.ArrayList;
import java.util.List;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.model.EMSInfo;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.configmgr.ConfigurationInterface;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.model.EMSInfo;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.configmgr.ConfigurationInterface;
import org.quartz.Job;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.taskscheduler;
+package org.onap.nfvo.emsdriver.taskscheduler;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.constant.Constant;
-import org.openo.nfvo.emsdriver.commons.model.CollectMsg;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
-import org.openo.nfvo.emsdriver.commons.utils.DriverThread;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannel;
-import org.openo.nfvo.emsdriver.messagemgr.MessageChannelFactory;
+import org.onap.nfvo.emsdriver.commons.constant.Constant;
+import org.onap.nfvo.emsdriver.commons.model.CollectMsg;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.utils.DriverThread;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannel;
+import org.onap.nfvo.emsdriver.messagemgr.MessageChannelFactory;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
/**
- * Copyright 2017 BOCO Corporation.
+ * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.openo.nfvo.emsdriver.taskscheduler;
+package org.onap.nfvo.emsdriver.taskscheduler;
import java.text.ParseException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.openo.nfvo.emsdriver.commons.model.CollectVo;
+import org.onap.nfvo.emsdriver.commons.model.CollectVo;
import org.quartz.CronTrigger;
import org.quartz.Job;
import org.quartz.JobDetail;