fix:1.修改来自于filesource的SOH、ALERT文件失败处理逻辑
This commit is contained in:
parent
ad90c521d0
commit
a27ddf6c2c
|
@ -243,7 +243,10 @@ public abstract class AbstractSpectrumHandler extends AbstractChain {
|
|||
}
|
||||
|
||||
/**
|
||||
* 处理解析失败的文件,上传到undeal目录
|
||||
* 处理解析失败的文件
|
||||
* 1.格式错误移动到errorfile
|
||||
* 2.filerepeat错误直接删除
|
||||
* 3.非filerepeat错误移动到undel
|
||||
* @throws FileNotFoundException
|
||||
*/
|
||||
protected void handleParseingFailFile(Exception e) throws FileNotFoundException {
|
||||
|
|
|
@ -89,6 +89,9 @@ public class AlertSpectrum extends AbstractSpectrumHandler{
|
|||
}catch (Exception e){
|
||||
//异常返回文件名称用于报错日志
|
||||
super.returnFileName.append(super.spectrumFile.getName());
|
||||
|
||||
//处理解析失败的文件
|
||||
super.handleParseingFailFile(e);
|
||||
throw e;
|
||||
}finally {
|
||||
//把流程日志保存到日志目录
|
||||
|
|
|
@ -91,6 +91,8 @@ public class HealthStatusSpectrum extends AbstractSpectrumHandler{
|
|||
}catch (Exception e){
|
||||
//异常返回文件名称用于报错日志
|
||||
super.returnFileName.append(super.spectrumFile.getName());
|
||||
//处理解析失败的文件
|
||||
super.handleParseingFailFile(e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user