|
@@ -20,7 +20,6 @@ import com.rometools.rome.io.SyndFeedInput;
|
|
|
import com.rometools.rome.io.XmlReader;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.slf4j.MDC;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.w3c.dom.Element;
|
|
@@ -82,8 +81,6 @@ public class FrcsService extends AbstractXmlService {
|
|
|
}
|
|
|
|
|
|
String sysTime = SysUtils.getSysTimeStr();
|
|
|
- String keyData = "frcs";
|
|
|
- MDC.put("id", keyData);
|
|
|
log.info("FrcsService doJob Start...");
|
|
|
|
|
|
//load();
|
|
@@ -95,7 +92,7 @@ public class FrcsService extends AbstractXmlService {
|
|
|
FrcsZoneVo obj = e.getValue();
|
|
|
if (obj.getDEL_YN().equals("Y")) continue;
|
|
|
|
|
|
- log.info("FrcsService.doJob: {}-{}", obj.getVILG_FRCS_ZONE_CD(), obj.getVILG_FRCS_ZONE_NM());
|
|
|
+ //log.info("FrcsService.doJob: {}-{}", obj.getVILG_FRCS_ZONE_CD(), obj.getVILG_FRCS_ZONE_NM());
|
|
|
try {
|
|
|
AppRepository.getInstance().getFrcsZoneMap().get(obj.getVILG_FRCS_ZONE_CD()).setRequestTime(SysUtils.getSysTimeStr());
|
|
|
|
|
@@ -134,7 +131,7 @@ public class FrcsService extends AbstractXmlService {
|
|
|
try {
|
|
|
Thread.sleep(10000);
|
|
|
} catch (InterruptedException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("FrcsService InterruptedException thread sleep exception");
|
|
|
}
|
|
|
|
|
|
for (Map.Entry<String, FrcsZoneVo> e : AppRepository.getInstance().getFrcsZoneMap().entrySet()) {
|
|
@@ -171,8 +168,6 @@ public class FrcsService extends AbstractXmlService {
|
|
|
}
|
|
|
}
|
|
|
log.info("FrcsService doJob ..End...");
|
|
|
- MDC.remove(keyData);
|
|
|
- MDC.clear();
|
|
|
|
|
|
MainUI UI = MainUI.getInstance();
|
|
|
if (UI != null) {
|
|
@@ -194,7 +189,7 @@ public class FrcsService extends AbstractXmlService {
|
|
|
try {
|
|
|
Node wid = list.item(0); // <wid> 하나만 존재함
|
|
|
NodeList widList = wid.getChildNodes();
|
|
|
- log.info("widList: {}, {}, {} EA", wid.getNodeType(), wid.getNodeName(), widList.getLength());
|
|
|
+ //log.info("widList: {}, {}, {} EA", wid.getNodeType(), wid.getNodeName(), widList.getLength());
|
|
|
String tm = "";
|
|
|
for (int ii = 0; ii < widList.getLength(); ii++) {
|
|
|
Node node = widList.item(ii);
|
|
@@ -206,7 +201,7 @@ public class FrcsService extends AbstractXmlService {
|
|
|
String x = header.getElementsByTagName("x").item(0).getTextContent().trim();
|
|
|
String y = header.getElementsByTagName("y").item(0).getTextContent().trim();
|
|
|
|
|
|
- log.info("header: {}, {}, {}, {}", tm, ts, x, y);
|
|
|
+ //log.info("header: {}, {}, {}, {}", tm, ts, x, y);
|
|
|
}
|
|
|
else if (tag.equals("body")) {
|
|
|
NodeList body = node.getChildNodes();
|
|
@@ -249,7 +244,7 @@ public class FrcsService extends AbstractXmlService {
|
|
|
tmp = data.getElementsByTagName("s06").item(0).getTextContent(); if (tmp != null) stts.setESTM_SNOW_AMUT_6HH(tmp.trim());
|
|
|
|
|
|
sttsList.add(stts);
|
|
|
- log.debug("{}, seq: {}, {}", jj, data.getAttributes().item(0).getTextContent(), stts.toString());
|
|
|
+ //log.debug("{}, seq: {}, {}", jj, data.getAttributes().item(0).getTextContent(), stts.toString());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -315,20 +310,20 @@ public class FrcsService extends AbstractXmlService {
|
|
|
try {
|
|
|
url = new URL(urlBuilder.toString());
|
|
|
} catch (MalformedURLException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("getXmlString MalformedURLException exception");
|
|
|
}
|
|
|
|
|
|
HttpURLConnection conn = null;
|
|
|
try {
|
|
|
conn = (HttpURLConnection) url.openConnection();
|
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("getXmlString IOException");
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
conn.setRequestMethod("GET");
|
|
|
} catch (ProtocolException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("getXmlString ProtocolException");
|
|
|
}
|
|
|
conn.setRequestProperty("Content-type", "application/json");
|
|
|
|
|
@@ -346,7 +341,7 @@ public class FrcsService extends AbstractXmlService {
|
|
|
}
|
|
|
rd.close();
|
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("getXmlString IOException");
|
|
|
}
|
|
|
conn.disconnect();
|
|
|
log.error(sb.toString());
|