import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;
-import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.onap.vfc.nfvo.emsdriver.messagemgr.MessageChannel;
import org.onap.vfc.nfvo.emsdriver.messagemgr.MessageChannelFactory;
-import com.alibaba.fastjson.JSONObject;
-
public class AlarmTaskThread extends Thread{
public Log log = LogFactory.getLog(AlarmTaskThread.class);
while (retString == null && !this.isStop) {
msg = MessageUtil.readOneMsg(is);
-
+ log.debug("msg = "+msg.toString(true));
+ log.info("msg.getMsgType().name = "+msg.getMsgType().name);
if("ackLoginAlarm".equalsIgnoreCase(msg.getMsgType().name)){
log.debug("receive login ack");
boolean suc = this.ackLoginAlarm(msg);
log.error(StringUtil.getStackTrace(e));
}
}
- log.debug("socket connect host=" + host + ", port=" + port);
+ log.info("socket connect host=" + host + ", port=" + port);
try {
int portInt = Integer.parseInt(port);
socket = new Socket(host, portInt);
close();
time++;
try {
- Thread.sleep(1000 * 10);
+ Thread.sleep(1000 * 30);
init();
return;
} catch (Exception e) {