package org.ts.ddcs.DataSaveProcesser;

import org.ts.ddcs.DataTemplate.DataTemplateInterface;
import org.ts.ddcs.Entity.CommandEntity;
import org.ts.ddcs.log.LogHelper;
import org.ts.ddcs.Tool.BytesHelp;
import org.ts.ddcs.Worker.DataProcessHolder;

import java.util.concurrent.LinkedBlockingQueue;

public class DataSaveProcesserC46  extends DataSaveProcesser   {
    @Override
    public void Save(DataTemplateInterface dataTemplateInterface) {
        super.Save(dataTemplateInterface);
        String rtucode = BytesHelp.byte2HexStr(dataTemplateInterface.RtuCode());
        LogHelper.info("SAVE:" + rtucode +" "+dataTemplateInterface.GetFeture());
//        LinkedBlockingQueue<CommandEntity> datagramlist = DataProcessHolder.newInstance().dataProcess.relpayCommandToRtu.get(rtucode);
//        datagramlist.poll();
//        DataProcessHolder.newInstance().dataProcess.SubmitRelayManageTask(dataTemplateInterface);
    }
}
