|  |  | 
 |  |  |  | 
 |  |  | import com.dy.common.mw.UnitAdapterInterface; | 
 |  |  | import com.dy.common.mw.UnitInterface; | 
 |  |  | import com.dy.common.mw.UnitStartedCallbackInterface; | 
 |  |  | import com.dy.common.mw.UnitCallbackInterface; | 
 |  |  | import com.dy.rtuMw.resource.rtuLog.RtuLogManager; | 
 |  |  | import com.dy.common.util.DateTime; | 
 |  |  |  | 
 |  |  | 
 |  |  |       ResourceUnit.springContext = springContext ; | 
 |  |  |    } | 
 |  |  |    @Override | 
 |  |  |    public void start(UnitStartedCallbackInterface callback) throws Exception { | 
 |  |  |    public void start(UnitCallbackInterface callback) throws Exception { | 
 |  |  |       if(ResourceUnit.springContext == null){ | 
 |  |  |          throw new Exception("Spring上下文对象未设置!") ; | 
 |  |  |       } | 
 |  |  | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    @Override | 
 |  |  |    public void stop(UnitStartedCallbackInterface callback) { | 
 |  |  |    public void stop(UnitCallbackInterface callback) { | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  | 
 |  |  |     | 
 |  |  |    /** | 
 |  |  |     * 得到一个日志文件 | 
 |  |  |     * @param fileName 文件名称 | 
 |  |  |     * @param fileName 文件名称([rtuAddr].log) | 
 |  |  |     */ | 
 |  |  |    @SuppressWarnings("unused") | 
 |  |  |    public File getLogFile(String fileName){ |