QAUP_Management/doc/requirement/数据中台SDK问题.md

41 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 关于SDK的要了解的几个问题
## webService服务器的IP地址和端口号
这个是数据中台服务的 IP 地址和端口?问谁可以获取到?
## 调用路由接口需要的信息,从哪些事件获取?
包括:
inRunway :进港跑道编号 35
outRunway出港跑道编号 34
contactCross联络道口 F1
seat目的机位 138
文档中找到:
【动态航班机位分配变更事件CRAFTSEAT】中有机位信息
【动态航班本站到达事件ARR】有到达信息
【推出开车事件(AXOT)】有进出港标志
【跑道号分配变更事件(RUNWAY)】有进出港标志和跑道信息
没有找到:联络道口信息
## 如何接收我们需要的事件?
receiveMessage()会接收所有的事件,还是会只返回我们需要的事件?
业务上是否需要进行接口申请和授权的流程?
## 如何使用接收数据接口MessageResult receiveMessage()接口
为了持续获取航班进出港事件,是不是需要持续调用这个接口?类似:
```java
public void receiveLoop() {
while (true) {
Message message = receive(); // 接收消息
if (message != null) {
// 用新线程处理消息
new Thread(() -> handleMessage(message)).start();
}
}
}
```