diff --git a/iot-machine-data-command/pom.xml b/iot-machine-data-command/pom.xml new file mode 100644 index 0000000..263af16 --- /dev/null +++ b/iot-machine-data-command/pom.xml @@ -0,0 +1,89 @@ + + + + iot-machine-state-event-generator + com.qniao + 0.0.1-SNAPSHOT + + 4.0.0 + + iot-machine-data-command + + + UTF-8 + 1.15.0 + 1.8 + ${target.java.version} + ${target.java.version} + 2.17.2 + 1.18.24 + 2.13.3 + + + + + com.qniao + ddd-event + 0.0.1-SNAPSHOT + + + + + + org.apache.flink + flink-streaming-java + ${flink.version} + provided + + + org.apache.flink + flink-clients + ${flink.version} + provided + + + + org.apache.flink + flink-connector-kafka + ${flink.version} + + + + + + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 + ${jackson.version} + + + org.projectlombok + lombok + ${lombok.version} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 8 + 8 + + + + + + + + + maven-releases + Nexus releases Repository + http://120.78.76.88:8081/repository/maven-snapshots/ + + + + \ No newline at end of file diff --git a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/CompleteMachineOutputCommand.java b/iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/CompleteMachineOutputCommand.java similarity index 100% rename from iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/CompleteMachineOutputCommand.java rename to iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/CompleteMachineOutputCommand.java diff --git a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/PowerOffMachineCommand.java b/iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/PowerOffMachineCommand.java similarity index 100% rename from iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/PowerOffMachineCommand.java rename to iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/PowerOffMachineCommand.java diff --git a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/PowerOnMachineCommand.java b/iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/PowerOnMachineCommand.java similarity index 100% rename from iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/PowerOnMachineCommand.java rename to iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/PowerOnMachineCommand.java diff --git a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/StartMachineWorkingCommand.java b/iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/StartMachineWorkingCommand.java similarity index 100% rename from iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/StartMachineWorkingCommand.java rename to iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/StartMachineWorkingCommand.java diff --git a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/StopMachineWorkingCommand.java b/iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/StopMachineWorkingCommand.java similarity index 100% rename from iot-machine-data-event/src/main/java/com/qniao/iot/machine/command/StopMachineWorkingCommand.java rename to iot-machine-data-command/src/main/java/com/qniao/iot/machine/command/StopMachineWorkingCommand.java diff --git a/iot-machine-data-constant/pom.xml b/iot-machine-data-constant/pom.xml new file mode 100644 index 0000000..3d22f37 --- /dev/null +++ b/iot-machine-data-constant/pom.xml @@ -0,0 +1,89 @@ + + + + iot-machine-state-event-generator + com.qniao + 0.0.1-SNAPSHOT + + 4.0.0 + + iot-machine-data-constant + + + UTF-8 + 1.15.0 + 1.8 + ${target.java.version} + ${target.java.version} + 2.17.2 + 1.18.24 + 2.13.3 + + + + + com.qniao + ddd-event + 0.0.1-SNAPSHOT + + + + + + org.apache.flink + flink-streaming-java + ${flink.version} + provided + + + org.apache.flink + flink-clients + ${flink.version} + provided + + + + org.apache.flink + flink-connector-kafka + ${flink.version} + + + + + + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 + ${jackson.version} + + + org.projectlombok + lombok + ${lombok.version} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 8 + 8 + + + + + + + + + maven-releases + Nexus releases Repository + http://120.78.76.88:8081/repository/maven-snapshots/ + + + + \ No newline at end of file diff --git a/iot-machine-data-constant/src/main/java/com/qniao/iot/rc/constant/DataSource.java b/iot-machine-data-constant/src/main/java/com/qniao/iot/rc/constant/DataSource.java new file mode 100644 index 0000000..0478908 --- /dev/null +++ b/iot-machine-data-constant/src/main/java/com/qniao/iot/rc/constant/DataSource.java @@ -0,0 +1,17 @@ +package com.qniao.iot.rc.constant; + +/** + * @author Lzk + * @date 2022/7/2 + **/ + +public interface DataSource { + /** + * 树根云 + */ + Integer ROOT_CLOUD = 1; + /** + * 机智云 + */ + Integer TACT_CLOUD = 0; +} diff --git a/iot-machine-data-event/pom.xml b/iot-machine-data-event/pom.xml index 76418e6..78a4d0f 100644 --- a/iot-machine-data-event/pom.xml +++ b/iot-machine-data-event/pom.xml @@ -64,4 +64,26 @@ + + + + org.apache.maven.plugins + maven-compiler-plugin + + 8 + 8 + + + + + + + + + maven-releases + Nexus releases Repository + http://120.78.76.88:8081/repository/maven-snapshots/ + + + \ No newline at end of file diff --git a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/event/MachineIotDataReceivedEvent.java b/iot-machine-data-event/src/main/java/com/qniao/iot/machine/event/MachineIotDataReceivedEvent.java index 266c049..e8fc9eb 100644 --- a/iot-machine-data-event/src/main/java/com/qniao/iot/machine/event/MachineIotDataReceivedEvent.java +++ b/iot-machine-data-event/src/main/java/com/qniao/iot/machine/event/MachineIotDataReceivedEvent.java @@ -1,5 +1,6 @@ package com.qniao.iot.machine.event; + import lombok.Data; import java.io.Serializable; diff --git a/iot-machine-state-event-generator-job/dependency-reduced-pom.xml b/iot-machine-state-event-generator-job/dependency-reduced-pom.xml new file mode 100644 index 0000000..6eb25e6 --- /dev/null +++ b/iot-machine-state-event-generator-job/dependency-reduced-pom.xml @@ -0,0 +1,88 @@ + + + + iot-machine-state-event-generator + com.qniao + 0.0.1-SNAPSHOT + + 4.0.0 + iot-machine-state-event-generator-job + + + + maven-compiler-plugin + 3.1 + + ${target.java.version} + ${target.java.version} + + + + maven-shade-plugin + 3.1.1 + + + package + + shade + + + + + org.apache.flink:flink-shaded-force-shading + com.google.code.findbugs:jsr305 + org.slf4j:* + org.apache.logging.log4j:* + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + com.qniao.iot.machine.event.generator.job.IotMachineEventGeneratorJob + + + + + + + + + + + org.apache.logging.log4j + log4j-slf4j-impl + 2.17.2 + runtime + + + org.apache.logging.log4j + log4j-api + 2.17.2 + runtime + + + org.apache.logging.log4j + log4j-core + 2.17.2 + runtime + + + + 1.8 + 2.17.2 + 1.15.0 + ${target.java.version} + UTF-8 + ${target.java.version} + + diff --git a/pom.xml b/pom.xml index 683cba9..fcd5af0 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,8 @@ under the License. iot-machine-data-event iot-machine-state-event-generator-job + iot-machine-data-command + iot-machine-data-constant pom