1. 剔除掉多余的文档以及标记
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
<description>
|
||||
<!-- TODO @芋艿:注释 -->
|
||||
<!-- TODO @ZT:注释 -->
|
||||
物联网 插件 模块 - 通用功能
|
||||
</description>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备配置设置 Vertx Handler
|
||||
*
|
||||
* 芋道源码
|
||||
* ZT源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -17,7 +17,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备 OTA 升级 Vertx Handler
|
||||
* <p>
|
||||
* 芋道源码
|
||||
* ZT源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备服务获取 Vertx Handler
|
||||
*
|
||||
* 芋道源码
|
||||
* ZT源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设置设备属性 Vertx Handler
|
||||
*
|
||||
* 芋道源码
|
||||
* ZT源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备服务调用 Vertx Handler
|
||||
*
|
||||
* 芋道源码
|
||||
* ZT源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// TODO @芋艿:注释
|
||||
// TODO @ZT:注释
|
||||
package com.zt.plat.module.iot.plugin.common;
|
||||
@@ -2,7 +2,7 @@ package com.zt.plat.module.iot.plugin.common.pojo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
// TODO @芋艿:1)后续考虑,要不要叫 IoT 网关之类的 Response;2)包名 pojo
|
||||
// TODO @ZT:1)后续考虑,要不要叫 IoT 网关之类的 Response;2)包名 pojo
|
||||
/**
|
||||
* IoT 标准协议响应实体类
|
||||
* <p>
|
||||
|
||||
@@ -39,19 +39,19 @@ public class IotDeviceUpstreamClient implements IotDeviceUpstreamApi {
|
||||
return doPost(url, reportReqDTO);
|
||||
}
|
||||
|
||||
// TODO @芋艿:待实现
|
||||
// TODO @ZT:待实现
|
||||
@Override
|
||||
public CommonResult<Boolean> registerDevice(IotDeviceRegisterReqDTO registerReqDTO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// TODO @芋艿:待实现
|
||||
// TODO @ZT:待实现
|
||||
@Override
|
||||
public CommonResult<Boolean> registerSubDevice(IotDeviceRegisterSubReqDTO registerReqDTO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// TODO @芋艿:待实现
|
||||
// TODO @ZT:待实现
|
||||
@Override
|
||||
public CommonResult<Boolean> addDeviceTopology(IotDeviceTopologyAddReqDTO addReqDTO) {
|
||||
return null;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<version>1.0.0</version>
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
<!-- TODO @芋艿:待整理 -->
|
||||
<!-- TODO @ZT:待整理 -->
|
||||
<description>
|
||||
物联网 插件模块 - emqx 插件
|
||||
</description>
|
||||
|
||||
@@ -50,7 +50,7 @@ public class IotEmqxPlugin extends SpringPlugin {
|
||||
// 继续使用插件自己的 ClassLoader 以加载插件内部的类
|
||||
pluginContext.setClassLoader(getWrapper().getPluginClassLoader());
|
||||
// 扫描当前插件的自动配置包
|
||||
// TODO @芋艿:是不是要配置下包
|
||||
// TODO @ZT:是不是要配置下包
|
||||
pluginContext.scan("com.zt.plat.module.iot.plugin.emqx.config");
|
||||
pluginContext.refresh();
|
||||
return pluginContext;
|
||||
|
||||
@@ -108,7 +108,7 @@ public class IotDeviceUpstreamServer {
|
||||
|
||||
// 3. 等待所有服务启动完成
|
||||
CompletableFuture.allOf(httpFuture, mqttFuture)
|
||||
.orTimeout(CONNECTION_TIMEOUT_MS, TimeUnit.MILLISECONDS) // TODO @芋艿:JDK8 不兼容
|
||||
.orTimeout(CONNECTION_TIMEOUT_MS, TimeUnit.MILLISECONDS) // TODO @ZT:JDK8 不兼容
|
||||
.whenComplete((result, error) -> {
|
||||
if (error != null) {
|
||||
log.error("[start][服务启动失败]", error);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
<description>
|
||||
<!-- TODO @芋艿:注释 -->
|
||||
<!-- TODO @ZT:注释 -->
|
||||
物联网 插件模块 - http 插件
|
||||
</description>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.pf4j.spring.SpringPlugin;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
||||
|
||||
// TODO @芋艿:完善注释
|
||||
// TODO @ZT:完善注释
|
||||
/**
|
||||
* 负责插件的启动和停止,与 Vert.x 的生命周期管理
|
||||
*/
|
||||
@@ -41,7 +41,7 @@ public class IotHttpVertxPlugin extends SpringPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO @芋艿:思考下,未来要不要。。。
|
||||
// TODO @ZT:思考下,未来要不要。。。
|
||||
@Override
|
||||
protected ApplicationContext createApplicationContext() {
|
||||
// 创建插件自己的 ApplicationContext
|
||||
@@ -51,7 +51,7 @@ public class IotHttpVertxPlugin extends SpringPlugin {
|
||||
// 继续使用插件自己的 ClassLoader 以加载插件内部的类
|
||||
pluginContext.setClassLoader(getWrapper().getPluginClassLoader());
|
||||
// 扫描当前插件的自动配置包
|
||||
// TODO @芋艿:后续看看,怎么配置类包
|
||||
// TODO @ZT:后续看看,怎么配置类包
|
||||
pluginContext.scan("com.zt.plat.module.iot.plugin.http.config");
|
||||
pluginContext.refresh();
|
||||
return pluginContext;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<artifactId>zt-module-iot-plugin-mqtt</artifactId>
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
<!-- TODO @芋艿:待整理 -->
|
||||
<!-- TODO @ZT:待整理 -->
|
||||
<description>
|
||||
物联网 插件模块 - mqtt 插件
|
||||
</description>
|
||||
|
||||
@@ -4,7 +4,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.pf4j.Plugin;
|
||||
import org.pf4j.PluginWrapper;
|
||||
|
||||
// TODO @芋艿:暂未实现
|
||||
// TODO @ZT:暂未实现
|
||||
@Slf4j
|
||||
public class MqttPlugin extends Plugin {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
// TODO @芋艿:暂未实现
|
||||
// TODO @ZT:暂未实现
|
||||
/**
|
||||
* 根据官方示例,整合常见 MQTT 功能到 PF4J 的 Extension 类中
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user