1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| 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);
| }
|
|