package com.ld.igds.io.notify; import com.ld.igds.models.DeviceSer; /** * 服务通知程序调用,用于通知分机上线和离线处理 * @author Andy * */ public interface ServerNotifyInvoker { public static final String BEAN_ID = "serverNotifyInvoker"; /** * 连接被销毁后通知信息 * @param businessKey TCP业务KEY * @param ip 设备IP * @param port 设备端口号 */ void connectDestory(String businessKey, String ip, Integer port); /** * 连接被激活的通知 * @param businessKey TCP业务KEY * @param address 设备IP * @param port 设备端口号 */ void connectActive(String businessKey, String address, Integer port); /** * 根据信息获取控制柜信息 * @param companyId * @param address * @param port * @return */ DeviceSer getDeviceSer(String companyId, String address, Integer port); }