| | |
| | | } |
| | | @Override |
| | | public void start(UnitStartedCallbackInterface callback) throws Exception { |
| | | if(confVo.enableSpringHibernate && ResourceUnit.springContext == null){ |
| | | if(ResourceUnit.springContext == null){ |
| | | throw new Exception("Spring上下文对象未设置!") ; |
| | | } |
| | | callback.call(null) ; |
| | |
| | | * @return 文件列表(文件名称,文件大小,文件最后修改时间) |
| | | */ |
| | | @SuppressWarnings("unused") |
| | | public TreeMap<String, String[]> listLogFiles(String rtuAddr){ |
| | | public TreeMap<String, String[]> listLogFilesName(String rtuAddr){ |
| | | File f = new File(ResourceUnit.confVo.rtuLogDir) ; |
| | | TreeMap<String, String[]> map = new TreeMap<>() ; |
| | | if(f.isDirectory()){ |