--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java">
+ <attributes>
+ <attribute name="optional" value="true"/>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java">
+ <attributes>
+ <attribute name="optional" value="true"/>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8.0_144">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
</dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.7.5</version>
+ </dependency>
</dependencies>
</project>
if (parseResult){
log.info("parser "+tempfile+" sucess");
+ tempfile.delete();
}else {
log.info("parser "+tempfile+" fail");
}
try {
File decompressFile = deGz(fileName);
filelist.add(decompressFile);
+ new File(fileName).delete();
} catch (IOException e) {
log.error("decompressed is fail "+StringUtil.getStackTrace(e));
}
{
try {
File[] files = deZip(new File(fileName));
+ new File(fileName).delete();
for(File temp :files){
filelist.add(temp);
}
import com.alibaba.fastjson.JSONObject;
import evel_javalibrary.att.com.AgentMain;
+import evel_javalibrary.att.com.AgentMain.EVEL_ERR_CODES;
import evel_javalibrary.att.com.EvelFault;
import evel_javalibrary.att.com.EvelFault.EVEL_SEVERITIES;
import evel_javalibrary.att.com.EvelFault.EVEL_SOURCE_TYPES;
log.info("AgentMain.evel_initialize start event_api_url=["+event_api_url+"]port=["+port+"]path=["+path+"]"
+ "topic=["+topic+"]username=["+username+"]password=["+password+"]level=["+level+"]");
try{
- AgentMain.evel_initialize(event_api_url, Integer.parseInt(port),
+ EVEL_ERR_CODES evecode = AgentMain.evel_initialize(event_api_url, Integer.parseInt(port),
path,topic,
username,
password,
level);
- log.info("AgentMain.evel_initialize sucess ");
+ log.info("AgentMain.evel_initialize sucess EVEL_ERR_CODES="+evecode);
} catch( Exception e ){
log.error("AgentMain.evel_initialize fail ",e);
}catch( Error e1 ){
new CollectMessageRecv().start();
- log.error("NorthMessageMgr start sucess ");
+ log.info("NorthMessageMgr start sucess ");
}
private EvelScalingMeasurement resultEvelScalingMeasurement(Map<String,String> reMap) {
String evname = "Mfvs_"+reMap.get("ElementType")+reMap.get("ObjectType");
- String evid = reMap.get("startTime")+reMap.get("ObjectType")+reMap.get("rmUID");
+ String evid = reMap.get("StartTime")+reMap.get("ObjectType")+reMap.get("rmUID");
int Period = Integer.parseInt(reMap.get("Period")!=null?reMap.get("Period"):"15");
EvelScalingMeasurement sm = new EvelScalingMeasurement(Period,evname, evid);
-# Copyright 2017 CMCC Technologies Co., Ltd
+# Copyright 2017 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.
archivedLogFilenamePattern: ./logs/emsdriver-%d{yyyyMMdd}-%d{HHmm}-%d{ssSSS}.log.gz
archivedFileCount: 7
timeZone: PRC
+ - type: file
+ threshold: ERROR
+ logFormat: "%-4level [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%thread] %logger{5} - %X{code} %msg %n"
+ currentLogFilename: ./logs/error.log
+ archivedLogFilenamePattern: ./logs/error-%d{yyyyMMdd}-%d{HHmm}-%d{ssSSS}.log.gz
+ archivedFileCount: 7
+ timeZone: PRC