mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
Initial commit: reorganized source tree
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.) - frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts - scripts/: build, test-env, tools (Docker Compose, service templates, API parity) - docs/: AGENTS.md, superpowers specs, architecture docs - .gitignore: standard Java/Maven exclusions Moved from legacy maven-*/ root layout to backend/ organized structure.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.1.18.RELEASE</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-cloud-common</artifactId>
|
||||
<version>4.0.0-Brussels-SRX</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>cloudwalk-cloud-common (stub parent)</name>
|
||||
<description>本模块为 packaging=pom 的父坐标桩,刻意不含 src/main/java:上游 cloudwalk-cloud-common 即为 BOM 式父 POM,cw_lib 亦无对应 JAR。与 maven-cloudwalk-legacy-public 下 3.7.2 的 cloudwalk-cloud-common 为不同版本,勿混用。详见 docs/architecture/Maven聚合工程说明.md。</description>
|
||||
</project>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-cloud-reactor</artifactId>
|
||||
<version>4.0.0-Brussels-SRX</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>cloudwalk-common-event</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<description>云从科技-消息总线封装(源码已迁入本模块 src/main/java)</description>
|
||||
|
||||
<properties>
|
||||
<alibaba.eclipse.codestyle.path>${project.basedir}/../../docs/style/alibaba-eclipse-codestyle.xml</alibaba.eclipse.codestyle.path>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.kafka</groupId>
|
||||
<artifactId>kafka-clients</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cwos-sdk-event</artifactId>
|
||||
<!-- 旧版 cwos-sdk-event POM 依赖 reflections-maven,会解析到 JFrog 已下线构件,编译不需要 -->
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.reflections</groupId>
|
||||
<artifactId>reflections-maven</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code.formatter</groupId>
|
||||
<artifactId>formatter-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
+362
@@ -0,0 +1,362 @@
|
||||
package cn.cloudwalk.event;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.EventClient;
|
||||
import cn.cloudwalk.cwos.client.event.event.BaseEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.CustomEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.EventType;
|
||||
import cn.cloudwalk.cwos.client.event.handler.EventListener;
|
||||
import cn.cloudwalk.event.annotation.ConsumerGroup;
|
||||
import cn.cloudwalk.event.annotation.CustomTopic;
|
||||
import cn.cloudwalk.event.annotation.EventTopicSuffix;
|
||||
import cn.cloudwalk.event.autoconfig.EventProperties;
|
||||
import cn.cloudwalk.event.handler.CustomEventHandler;
|
||||
import cn.cloudwalk.event.handler.EventHandler;
|
||||
import cn.cloudwalk.event.handler.EventHandlerMapping;
|
||||
import cn.cloudwalk.event.handler.EventHandlerWorker;
|
||||
import cn.cloudwalk.event.handler.NamedThreadFactory;
|
||||
import cn.cloudwalk.event.listener.CloudwalkEventListener;
|
||||
import cn.cloudwalk.event.listener.GroupEventListener;
|
||||
import cn.cloudwalk.event.listener.GroupListnerClassMapping;
|
||||
import java.lang.reflect.ParameterizedType;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.SynchronousQueue;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* 应用启动阶段扫描 Spring 容器中的监听器与处理器,构建 {@link cn.cloudwalk.event.handler.EventHandlerMapping} 等运行时结构。
|
||||
*/
|
||||
public class CloudwalkEventInitializing implements CommandLineRunner {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CloudwalkEventInitializing.class);
|
||||
@Autowired(required = false)
|
||||
private List<EventHandler> eventHandlers;
|
||||
@Autowired
|
||||
private CloudwalkEventManager cloudwalkEventManager;
|
||||
@Autowired
|
||||
private Environment environment;
|
||||
private static final Pattern pattern = Pattern.compile("^\\$\\{(.*?)\\}$");
|
||||
private static final String DEFAULT_SUFFIX = "";
|
||||
private String defaultGroup;
|
||||
private EventClient defaultEventClient;
|
||||
private Map<String, EventClient> eventClientMap = new HashMap<>();
|
||||
private EventProperties eventProperties;
|
||||
private static boolean isHandlerEnable = false;
|
||||
|
||||
public void run(String... args) throws Exception {
|
||||
init();
|
||||
}
|
||||
|
||||
public void init() throws Exception {
|
||||
initEventClient();
|
||||
initHandlerMapping();
|
||||
initHandlerExecutor();
|
||||
subscribeEvent();
|
||||
}
|
||||
|
||||
public CloudwalkEventInitializing(EventProperties eventProperties) {
|
||||
this.eventProperties = eventProperties;
|
||||
}
|
||||
|
||||
private void initEventClient() throws ClassNotFoundException {
|
||||
String[] groupIds = this.eventProperties.getGroupId().split(",");
|
||||
if (groupIds.length == 0) {
|
||||
throw new IllegalArgumentException("消费组ID不能为空");
|
||||
}
|
||||
Map<String, String> listenerClassMap = this.eventProperties.getListenerClass();
|
||||
GroupListnerClassMapping groupListnerClassMapping = new GroupListnerClassMapping();
|
||||
for (int i = 0; i < groupIds.length; i++) {
|
||||
Class<? extends EventListener> listenerClass;
|
||||
boolean isFirst = (i == 0);
|
||||
String groupId = groupIds[i];
|
||||
if (null == listenerClassMap || StringUtils.isEmpty(listenerClassMap.get(groupId))) {
|
||||
if (isFirst) {
|
||||
listenerClass = CloudwalkEventListener.class;
|
||||
} else {
|
||||
throw new IllegalArgumentException(
|
||||
String.format("groupId[%s]缺少listener-class的配置", new Object[] {groupId}));
|
||||
}
|
||||
} else {
|
||||
listenerClass = (Class)Class.forName(listenerClassMap.get(groupId));
|
||||
}
|
||||
initEventClient(this.eventProperties.getBootstrapServers(), groupId, listenerClass, isFirst);
|
||||
groupListnerClassMapping.register(listenerClass, groupId);
|
||||
}
|
||||
this.cloudwalkEventManager.setGroupListnerClassMapping(groupListnerClassMapping);
|
||||
this.cloudwalkEventManager.setEventClient(this.defaultEventClient);
|
||||
}
|
||||
|
||||
@Autowired
|
||||
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
||||
GroupEventListener.applicationContext = applicationContext;
|
||||
}
|
||||
|
||||
private List<String> extractGroupIds(EventHandler eventHandler) {
|
||||
if (eventHandler.getClass().isAnnotationPresent((Class)ConsumerGroup.class)) {
|
||||
ConsumerGroup consumerGroup = eventHandler.getClass().<ConsumerGroup>getAnnotation(ConsumerGroup.class);
|
||||
List<String> groupIds = new LinkedList<>();
|
||||
for (String groupId : consumerGroup.groupIds()) {
|
||||
Matcher matcher = pattern.matcher(groupId);
|
||||
if (matcher.find()) {
|
||||
String propertyKey = groupId.substring(2, groupId.length() - 1).trim();
|
||||
String propertyValue = this.environment.getProperty(propertyKey);
|
||||
if (!StringUtils.isEmpty(propertyValue)) {
|
||||
groupId = propertyValue;
|
||||
}
|
||||
}
|
||||
groupIds.add(groupId);
|
||||
}
|
||||
return groupIds;
|
||||
}
|
||||
return new ArrayList<>(Collections.singletonList(this.defaultGroup));
|
||||
}
|
||||
|
||||
private void initHandlerMapping() {
|
||||
if (CollectionUtils.isEmpty(this.eventHandlers)) {
|
||||
return;
|
||||
}
|
||||
isHandlerEnable = true;
|
||||
EventHandlerMapping eventHandlerMapping = new EventHandlerMapping();
|
||||
for (EventHandler<BaseEvent> handler : this.eventHandlers) {
|
||||
if (handler.getClass().isAnnotationPresent((Class)EventTopicSuffix.class)) {
|
||||
Type type = handler.getClass().getGenericInterfaces()[0];
|
||||
ParameterizedType p = (ParameterizedType)type;
|
||||
Class<BaseEvent> eventClass = (Class)p.getActualTypeArguments()[0];
|
||||
EventTopicSuffix eventTopicSuffix =
|
||||
handler.getClass().<EventTopicSuffix>getAnnotation(EventTopicSuffix.class);
|
||||
registerHandlerMapping(eventHandlerMapping, handler, eventClass, eventTopicSuffix.value());
|
||||
continue;
|
||||
}
|
||||
if (handler.getClass().isAnnotationPresent((Class)CustomTopic.class)) {
|
||||
CustomTopic customTopic = handler.getClass().<CustomTopic>getAnnotation(CustomTopic.class);
|
||||
String topic = customTopic.topic();
|
||||
if (StringUtils.isEmpty(topic)) {
|
||||
continue;
|
||||
}
|
||||
registerCustomHandlerMapping(eventHandlerMapping, (EventHandler)handler, topic, customTopic.suffix());
|
||||
}
|
||||
}
|
||||
this.cloudwalkEventManager.setEventHandlerMapping(eventHandlerMapping);
|
||||
}
|
||||
|
||||
private void initHandlerExecutor() {
|
||||
if (isHandlerEnable) {
|
||||
EventHandlerWorker eventHandlerWorker = new EventHandlerWorker();
|
||||
EventProperties.HandlerExecutorConfig handlerExecutorConfig =
|
||||
this.eventProperties.getHandlerExecutorConfig();
|
||||
eventHandlerWorker
|
||||
.setPoolExecutor(new ThreadPoolExecutor(handlerExecutorConfig.getCorePoolSize().intValue(),
|
||||
handlerExecutorConfig.getMaximumPoolSize().intValue(), 1000L, TimeUnit.MILLISECONDS,
|
||||
new SynchronousQueue<>(),
|
||||
(ThreadFactory)new NamedThreadFactory(this.eventProperties.getWorkerNamePrefix()),
|
||||
new ThreadPoolExecutor.CallerRunsPolicy()));
|
||||
this.cloudwalkEventManager.setEventHandlerWorker(eventHandlerWorker);
|
||||
}
|
||||
}
|
||||
|
||||
private EventType getEventType(Class<? extends BaseEvent> eventClass) {
|
||||
for (EventType eventType : EventType.values()) {
|
||||
BaseEvent prototype = eventType.getEventClass();
|
||||
if (prototype != null && Objects.equals(eventClass, prototype.getClass())) {
|
||||
return eventType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private void subscribeEvent() throws IllegalAccessException, InstantiationException {
|
||||
EventHandlerMapping eventHandlerMapping = this.cloudwalkEventManager.getEventHandlerMapping();
|
||||
Map<String, Map<EventType, Set<String>>> subscribedMap = new HashMap<>();
|
||||
for (Map.Entry<String, Map<EventType, Map<String, List<EventHandler>>>> entry : (Iterable<
|
||||
Map.Entry<String, Map<EventType, Map<String, List<EventHandler>>>>>)eventHandlerMapping.getHandlerMap()
|
||||
.entrySet()) {
|
||||
for (Map.Entry<EventType, Map<String, List<EventHandler>>> eventTypeMapEntry : (Iterable<
|
||||
Map.Entry<EventType, Map<String, List<EventHandler>>>>)((Map)entry.getValue()).entrySet()) {
|
||||
for (Object serviceCodeObj : ((Map)eventTypeMapEntry.getValue()).keySet()) {
|
||||
String serviceCode = (String)serviceCodeObj;
|
||||
subscribe(subscribedMap, entry.getKey(), eventTypeMapEntry.getKey(), serviceCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Map<String, Map<String, Set<String>>> customSubscribedMap = new HashMap<>();
|
||||
for (Map.Entry<String, Map<String, Map<String, List<CustomEventHandler>>>> entry : (Iterable<
|
||||
Map.Entry<String, Map<String, Map<String, List<CustomEventHandler>>>>>)eventHandlerMapping
|
||||
.getCustomHandlerMap().entrySet()) {
|
||||
for (Map.Entry<String, Map<String, List<CustomEventHandler>>> subEntry : (Iterable<
|
||||
Map.Entry<String, Map<String, List<CustomEventHandler>>>>)((Map)entry.getValue()).entrySet()) {
|
||||
for (Map.Entry<String, List<CustomEventHandler>> handlerEntry : (Iterable<
|
||||
Map.Entry<String, List<CustomEventHandler>>>)((Map)subEntry.getValue()).entrySet()) {
|
||||
for (CustomEventHandler customEventHandler : handlerEntry.getValue()) {
|
||||
Type type = customEventHandler.getClass().getGenericInterfaces()[0];
|
||||
ParameterizedType p = (ParameterizedType)type;
|
||||
Class<? extends CustomEvent> eventClass = (Class)p.getActualTypeArguments()[0];
|
||||
customSubscribe(customSubscribedMap, entry.getKey(), subEntry.getKey(), handlerEntry.getKey(),
|
||||
eventClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void subscribe(Map<String, Map<EventType, Set<String>>> subscribedMap, String groupId, EventType eventType,
|
||||
String serviceCode) {
|
||||
if (StringUtils.isEmpty(groupId)) {
|
||||
groupId = this.defaultGroup;
|
||||
}
|
||||
Map<EventType, Set<String>> eventTypeServiceCodeMap = subscribedMap.get(groupId);
|
||||
if (null != eventTypeServiceCodeMap) {
|
||||
Set<String> serviceCodesSet = eventTypeServiceCodeMap.get(eventType);
|
||||
if (CollectionUtils.isEmpty(serviceCodesSet)) {
|
||||
eventTypeServiceCodeMap.put(eventType, new HashSet<>(Collections.singleton(serviceCode)));
|
||||
} else {
|
||||
serviceCodesSet.add(serviceCode);
|
||||
}
|
||||
} else {
|
||||
eventTypeServiceCodeMap = new HashMap<>();
|
||||
eventTypeServiceCodeMap.put(eventType, new HashSet<>(Collections.singleton(serviceCode)));
|
||||
subscribedMap.put(groupId, eventTypeServiceCodeMap);
|
||||
}
|
||||
((EventClient)this.eventClientMap.get(groupId)).subEvent(eventType, serviceCode);
|
||||
}
|
||||
|
||||
private void customSubscribe(Map<String, Map<String, Set<String>>> customSubscribedMap, String groupId,
|
||||
String topic, String serviceCode, Class<? extends CustomEvent> eventClass)
|
||||
throws IllegalAccessException, InstantiationException {
|
||||
if (StringUtils.isEmpty(groupId)) {
|
||||
groupId = this.defaultGroup;
|
||||
}
|
||||
Map<String, Set<String>> topicServiceCodeMap = customSubscribedMap.get(groupId);
|
||||
if (null != topicServiceCodeMap) {
|
||||
Set<String> serviceCodesSet = topicServiceCodeMap.get(topic);
|
||||
if (CollectionUtils.isEmpty(serviceCodesSet)) {
|
||||
topicServiceCodeMap.put(topic, new HashSet<>(Collections.singleton(serviceCode)));
|
||||
} else {
|
||||
serviceCodesSet.add(serviceCode);
|
||||
}
|
||||
} else {
|
||||
topicServiceCodeMap = new HashMap<>();
|
||||
topicServiceCodeMap.put(topic, new HashSet<>(Collections.singleton(serviceCode)));
|
||||
customSubscribedMap.put(groupId, topicServiceCodeMap);
|
||||
}
|
||||
EventClient eventClient = this.eventClientMap.get(groupId);
|
||||
if (null == eventClient) {
|
||||
throw new IllegalArgumentException(
|
||||
String.format("没有找到groupId[%s]对应的配置,请检查 ${cloudwalk.event.group-id} 配置", new Object[] {groupId}));
|
||||
}
|
||||
eventClient.subEvent(topic, serviceCode, eventClass.newInstance());
|
||||
}
|
||||
|
||||
private void initEventClient(String bootstrapServers, String groupId, Class<? extends EventListener> listenerClass,
|
||||
boolean isDefault) {
|
||||
EventClient eventClient = this.eventClientMap.get(groupId);
|
||||
if (null == eventClient) {
|
||||
eventClient = EventClient.getInstance(bootstrapServers, groupId);
|
||||
eventClient.init();
|
||||
if (null != this.eventProperties.getFetchDataWorkerNumber()) {
|
||||
eventClient.setWorkNum(this.eventProperties.getFetchDataWorkerNumber());
|
||||
}
|
||||
eventClient.setListenerClass(listenerClass);
|
||||
this.eventClientMap.put(groupId, eventClient);
|
||||
}
|
||||
if (isDefault) {
|
||||
this.defaultGroup = groupId;
|
||||
this.defaultEventClient = eventClient;
|
||||
}
|
||||
}
|
||||
|
||||
private <E extends BaseEvent> void registerHandlerMapping(EventHandlerMapping eventHandlerMapping,
|
||||
EventHandler<E> handler, Class<E> eventClass, String[] suffixes) {
|
||||
List<String> groupIds = extractGroupIds(handler);
|
||||
EventType eventType = getEventType(eventClass);
|
||||
for (String groupId : groupIds) {
|
||||
Map<String, List<EventHandler>> handlers =
|
||||
eventHandlerMapping.getServiceCodeHandlerListMap(groupId, eventType);
|
||||
if (CollectionUtils.isEmpty(handlers)) {
|
||||
handlers = new HashMap<>();
|
||||
if (null == suffixes || suffixes.length == 0) {
|
||||
handlers.put("", new ArrayList<EventHandler>(Collections.singletonList((EventHandler)handler)));
|
||||
} else {
|
||||
for (String suffix : suffixes) {
|
||||
handlers.put(suffix,
|
||||
new ArrayList<EventHandler>(Collections.singletonList((EventHandler)handler)));
|
||||
}
|
||||
}
|
||||
eventHandlerMapping.registerHandlers(groupId, eventType, handlers);
|
||||
continue;
|
||||
}
|
||||
if (null == suffixes || suffixes.length == 0) {
|
||||
List<EventHandler> currentHandlers = handlers.get("");
|
||||
if (CollectionUtils.isEmpty(currentHandlers)) {
|
||||
currentHandlers = new ArrayList<>();
|
||||
}
|
||||
currentHandlers.add(handler);
|
||||
handlers.put("", currentHandlers);
|
||||
continue;
|
||||
}
|
||||
for (String suffix : suffixes) {
|
||||
List<EventHandler> currentHandlers = handlers.get(suffix);
|
||||
if (CollectionUtils.isEmpty(currentHandlers)) {
|
||||
currentHandlers = new ArrayList<>();
|
||||
}
|
||||
currentHandlers.add(handler);
|
||||
handlers.put(suffix, currentHandlers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void registerCustomHandlerMapping(EventHandlerMapping eventHandlerMapping,
|
||||
EventHandler<? extends CustomEvent> handler, String topic, String serviceCode) {
|
||||
List<String> groupIds = extractGroupIds(handler);
|
||||
for (String groupId : groupIds) {
|
||||
Map<String, List<CustomEventHandler>> customHandlers =
|
||||
eventHandlerMapping.getServiceCodeCustomHandlerListMap(groupId, topic);
|
||||
if (null == customHandlers) {
|
||||
customHandlers = new HashMap<>();
|
||||
if (StringUtils.isEmpty(topic)) {
|
||||
customHandlers.put("",
|
||||
new ArrayList<CustomEventHandler>(Collections.singletonList((CustomEventHandler)handler)));
|
||||
} else {
|
||||
customHandlers.put(serviceCode,
|
||||
new ArrayList<CustomEventHandler>(Collections.singletonList((CustomEventHandler)handler)));
|
||||
}
|
||||
eventHandlerMapping.registerCustomHandlers(groupId, topic, customHandlers);
|
||||
continue;
|
||||
}
|
||||
if (StringUtils.isEmpty(serviceCode)) {
|
||||
List<CustomEventHandler> list = customHandlers.get("");
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
list = new ArrayList<>();
|
||||
}
|
||||
list.add((CustomEventHandler)handler);
|
||||
customHandlers.put("", list);
|
||||
continue;
|
||||
}
|
||||
List<CustomEventHandler> currentHandlers = customHandlers.get(serviceCode);
|
||||
if (CollectionUtils.isEmpty(currentHandlers)) {
|
||||
currentHandlers = new ArrayList<>();
|
||||
}
|
||||
currentHandlers.add((CustomEventHandler)handler);
|
||||
customHandlers.put(serviceCode, currentHandlers);
|
||||
}
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package cn.cloudwalk.event;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.EventClient;
|
||||
import cn.cloudwalk.cwos.client.event.event.BaseEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.CustomEvent;
|
||||
import cn.cloudwalk.event.handler.CustomEventHandler;
|
||||
import cn.cloudwalk.event.handler.EventHandler;
|
||||
import cn.cloudwalk.event.handler.EventHandlerMapping;
|
||||
import cn.cloudwalk.event.handler.EventHandlerWorker;
|
||||
import cn.cloudwalk.event.listener.GroupEventListener;
|
||||
import cn.cloudwalk.event.listener.GroupListnerClassMapping;
|
||||
import cn.cloudwalk.event.task.EventHandleTask;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* 事件派发入口:基于 {@link cn.cloudwalk.event.handler.EventHandlerMapping} 选择处理器并委托
|
||||
* {@link cn.cloudwalk.event.handler.EventHandlerWorker} 执行。
|
||||
*/
|
||||
public class CloudwalkEventManager {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CloudwalkEventManager.class);
|
||||
private EventHandlerMapping eventHandlerMapping;
|
||||
private EventHandlerWorker eventHandlerWorker;
|
||||
private GroupListnerClassMapping groupListnerClassMapping;
|
||||
private EventClient eventClient;
|
||||
|
||||
public void handle(Class<? extends GroupEventListener> eventListnerClass, BaseEvent baseEvent) {
|
||||
String groupId = this.groupListnerClassMapping.getGroupId(eventListnerClass);
|
||||
if (baseEvent instanceof CustomEvent) {
|
||||
Map<String, List<CustomEventHandler>> customByServiceCode = this.eventHandlerMapping
|
||||
.getServiceCodeCustomHandlerListMap(groupId, ((CustomEvent)baseEvent).getTopic());
|
||||
if (customByServiceCode == null) {
|
||||
customByServiceCode = Collections.emptyMap();
|
||||
}
|
||||
List<CustomEventHandler> customEventHandlers =
|
||||
(List<CustomEventHandler>)customByServiceCode.get(baseEvent.getServiceCode());
|
||||
eventHandle(baseEvent, customEventHandlers);
|
||||
return;
|
||||
}
|
||||
Map<String, List<EventHandler>> handlerByServiceCode =
|
||||
this.eventHandlerMapping.getServiceCodeHandlerListMap(groupId, baseEvent.getClass());
|
||||
if (handlerByServiceCode == null) {
|
||||
handlerByServiceCode = Collections.emptyMap();
|
||||
}
|
||||
List<EventHandler> handlerList = (List<EventHandler>)handlerByServiceCode.get(baseEvent.getServiceCode());
|
||||
eventHandle(baseEvent, handlerList);
|
||||
}
|
||||
|
||||
private <H extends EventHandler> void eventHandle(BaseEvent baseEvent, List<H> handlers) {
|
||||
if (CollectionUtils.isEmpty(handlers)) {
|
||||
LOGGER.error("没有相应的事件处理程序");
|
||||
return;
|
||||
}
|
||||
for (EventHandler eventHandler : handlers) {
|
||||
this.eventHandlerWorker.work(new EventHandleTask(baseEvent, eventHandler));
|
||||
}
|
||||
}
|
||||
|
||||
public void publish(BaseEvent baseEvent) {
|
||||
this.eventClient.pubEvent(baseEvent);
|
||||
}
|
||||
|
||||
public void setEventHandlerMapping(EventHandlerMapping eventHandlerMapping) {
|
||||
this.eventHandlerMapping = eventHandlerMapping;
|
||||
}
|
||||
|
||||
public EventHandlerMapping getEventHandlerMapping() {
|
||||
return this.eventHandlerMapping;
|
||||
}
|
||||
|
||||
public void setEventHandlerWorker(EventHandlerWorker eventHandlerWorker) {
|
||||
this.eventHandlerWorker = eventHandlerWorker;
|
||||
}
|
||||
|
||||
public void setEventClient(EventClient eventClient) {
|
||||
this.eventClient = eventClient;
|
||||
}
|
||||
|
||||
public void setGroupListnerClassMapping(GroupListnerClassMapping groupListnerClassMapping) {
|
||||
this.groupListnerClassMapping = groupListnerClassMapping;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package cn.cloudwalk.event;
|
||||
|
||||
import cn.cloudwalk.event.autoconfig.EventConfiguration;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
/**
|
||||
* 启用云从事件总线自动配置,导入 {@link EventConfiguration} 并绑定 {@code cloudwalk.event.*} 配置项。
|
||||
*/
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Import({EventConfiguration.class})
|
||||
public @interface EnableCloudwalkEvent {}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package cn.cloudwalk.event.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* 声明类型级 Kafka 消费组标识,用于与事件监听/路由配置对齐。
|
||||
*/
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface ConsumerGroup {
|
||||
/** 消费组 ID 列表,与平台侧配置保持一致。 */
|
||||
String[] groupIds() default {};
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package cn.cloudwalk.event.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
/**
|
||||
* 为自定义事件主题提供显式 {@code topic},并通过 {@link EventTopicSuffix} 组合后缀。
|
||||
*/
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@EventTopicSuffix
|
||||
public @interface CustomTopic {
|
||||
/** 逻辑主题名。 */
|
||||
String topic();
|
||||
|
||||
/**
|
||||
* 与 {@link EventTopicSuffix#suffix()} 互为别名,用于拼接完整主题。
|
||||
*/
|
||||
@AliasFor(annotation = EventTopicSuffix.class)
|
||||
String suffix() default "";
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package cn.cloudwalk.event.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
/**
|
||||
* 为主题名追加可配置后缀,避免多环境/多租户下 Kafka Topic 冲突。
|
||||
*/
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface EventTopicSuffix {
|
||||
/** 与 {@link #suffix()} 互为别名。 */
|
||||
@AliasFor(attribute = "suffix")
|
||||
String[] value() default {};
|
||||
|
||||
/** 追加在基础主题后的后缀片段。 */
|
||||
@AliasFor(attribute = "value")
|
||||
String[] suffix() default {};
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package cn.cloudwalk.event.autoconfig;
|
||||
|
||||
import cn.cloudwalk.event.CloudwalkEventInitializing;
|
||||
import cn.cloudwalk.event.CloudwalkEventManager;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 事件模块 Spring 配置:注册 {@link cn.cloudwalk.event.CloudwalkEventManager} 与初始化组件。
|
||||
*/
|
||||
@Configuration
|
||||
@EnableConfigurationProperties({EventProperties.class})
|
||||
public class EventConfiguration {
|
||||
@Bean
|
||||
public CloudwalkEventManager cloudwalkEventManager() {
|
||||
return new CloudwalkEventManager();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public CloudwalkEventInitializing cloudwalkEventInitializing(EventProperties eventProperties) {
|
||||
return new CloudwalkEventInitializing(eventProperties);
|
||||
}
|
||||
}
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
package cn.cloudwalk.event.autoconfig;
|
||||
|
||||
import java.util.Map;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
* {@code cloudwalk.event} 前缀下的绑定配置:Kafka 地址、消费组、监听器映射与线程池等。
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "cloudwalk.event")
|
||||
public class EventProperties {
|
||||
protected static final String CONF_PREFIX = "cloudwalk.event";
|
||||
private String bootstrapServers;
|
||||
private String groupId;
|
||||
private Map<String, String> listenerClass;
|
||||
private Integer fetchDataWorkerNumber;
|
||||
private String workerNamePrefix;
|
||||
private HandlerExecutorConfig handlerExecutorConfig =
|
||||
new HandlerExecutorConfig(Integer.valueOf(5), Integer.valueOf(10));
|
||||
|
||||
public static class HandlerExecutorConfig {
|
||||
private Integer corePoolSize;
|
||||
private Integer maximumPoolSize;
|
||||
|
||||
public HandlerExecutorConfig(Integer corePoolSize, Integer maximumPoolSize) {
|
||||
this.corePoolSize = corePoolSize;
|
||||
this.maximumPoolSize = maximumPoolSize;
|
||||
}
|
||||
|
||||
public Integer getCorePoolSize() {
|
||||
return this.corePoolSize;
|
||||
}
|
||||
|
||||
public void setCorePoolSize(Integer corePoolSize) {
|
||||
this.corePoolSize = corePoolSize;
|
||||
}
|
||||
|
||||
public Integer getMaximumPoolSize() {
|
||||
return this.maximumPoolSize;
|
||||
}
|
||||
|
||||
public void setMaximumPoolSize(Integer maximumPoolSize) {
|
||||
this.maximumPoolSize = maximumPoolSize;
|
||||
}
|
||||
}
|
||||
|
||||
public String getBootstrapServers() {
|
||||
return this.bootstrapServers;
|
||||
}
|
||||
|
||||
public void setBootstrapServers(String bootstrapServers) {
|
||||
this.bootstrapServers = bootstrapServers;
|
||||
}
|
||||
|
||||
public String getGroupId() {
|
||||
return this.groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(String groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Map<String, String> getListenerClass() {
|
||||
return this.listenerClass;
|
||||
}
|
||||
|
||||
public void setListenerClass(Map<String, String> listenerClass) {
|
||||
this.listenerClass = listenerClass;
|
||||
}
|
||||
|
||||
public Integer getFetchDataWorkerNumber() {
|
||||
return this.fetchDataWorkerNumber;
|
||||
}
|
||||
|
||||
public void setFetchDataWorkerNumber(Integer fetchDataWorkerNumber) {
|
||||
this.fetchDataWorkerNumber = fetchDataWorkerNumber;
|
||||
}
|
||||
|
||||
public HandlerExecutorConfig getHandlerExecutorConfig() {
|
||||
return this.handlerExecutorConfig;
|
||||
}
|
||||
|
||||
public void setHandlerExecutorConfig(HandlerExecutorConfig handlerExecutorConfig) {
|
||||
this.handlerExecutorConfig = handlerExecutorConfig;
|
||||
}
|
||||
|
||||
public String getWorkerNamePrefix() {
|
||||
return this.workerNamePrefix;
|
||||
}
|
||||
|
||||
public void setWorkerNamePrefix(String workerNamePrefix) {
|
||||
this.workerNamePrefix = workerNamePrefix;
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package cn.cloudwalk.event.client;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.event.EventType;
|
||||
import cn.cloudwalk.event.handler.EventHandler;
|
||||
import java.util.List;
|
||||
|
||||
public class EventSubscribeHandlers {
|
||||
private EventType eventType;
|
||||
private String serviceCode;
|
||||
private List<EventHandler> eventHandlerList;
|
||||
|
||||
public EventType getEventType() {
|
||||
return this.eventType;
|
||||
}
|
||||
|
||||
public void setEventType(EventType eventType) {
|
||||
this.eventType = eventType;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public List<EventHandler> getEventHandlerList() {
|
||||
return this.eventHandlerList;
|
||||
}
|
||||
|
||||
public void setEventHandlerList(List<EventHandler> eventHandlerList) {
|
||||
this.eventHandlerList = eventHandlerList;
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package cn.cloudwalk.event.handler;
|
||||
|
||||
public interface CustomEventHandler<E extends cn.cloudwalk.cwos.client.event.event.CustomEvent>
|
||||
extends EventHandler<E> {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package cn.cloudwalk.event.handler;
|
||||
|
||||
public interface EventHandler<E extends cn.cloudwalk.cwos.client.event.event.BaseEvent> {
|
||||
void onEvent(E paramE);
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
package cn.cloudwalk.event.handler;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.event.BaseEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.EventType;
|
||||
import cn.cloudwalk.cwos.client.event.handler.EventListener;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
public class EventHandlerMapping {
|
||||
private final Map<String, Map<EventType, Map<String, List<EventHandler>>>> handlerMap = new HashMap<>();
|
||||
private final Map<String, Map<String, Map<String, List<CustomEventHandler>>>> customHandlerMap = new HashMap<>();
|
||||
private final Map<Class<? extends EventListener>, String> listenerClassGroupMap = new HashMap<>();
|
||||
|
||||
public void registerHandlers(String groupId, EventType eventType, Map<String, List<EventHandler>> handlers) {
|
||||
Map<EventType, Map<String, List<EventHandler>>> map = this.handlerMap.get(groupId);
|
||||
if (null == map) {
|
||||
map = new HashMap<>();
|
||||
map.put(eventType, handlers);
|
||||
this.handlerMap.put(groupId, map);
|
||||
} else {
|
||||
map.put(eventType, handlers);
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, List<EventHandler>> getServiceCodeHandlerListMap(String groupId,
|
||||
Class<? extends BaseEvent> eventClass) {
|
||||
for (EventType eventType : EventType.values()) {
|
||||
BaseEvent prototype = eventType.getEventClass();
|
||||
if (prototype != null && Objects.equals(eventClass, prototype.getClass())) {
|
||||
return getServiceCodeHandlerListMap(groupId, eventType);
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("没有找到合适的事件类型");
|
||||
}
|
||||
|
||||
public Map<String, List<EventHandler>> getServiceCodeHandlerListMap(String groupId, EventType eventType) {
|
||||
Map<EventType, Map<String, List<EventHandler>>> map = this.handlerMap.get(groupId);
|
||||
if (null != map) {
|
||||
return map.get(eventType);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Map<String, List<CustomEventHandler>> getServiceCodeCustomHandlerListMap(String groupId, String topic) {
|
||||
Map<String, Map<String, List<CustomEventHandler>>> map = this.customHandlerMap.get(groupId);
|
||||
if (null != map) {
|
||||
return map.get(topic);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void registerCustomHandlers(String groupId, String topic, Map<String, List<CustomEventHandler>> handlers) {
|
||||
Map<String, Map<String, List<CustomEventHandler>>> map = this.customHandlerMap.get(groupId);
|
||||
if (null == map) {
|
||||
map = new HashMap<>();
|
||||
map.put(topic, handlers);
|
||||
this.customHandlerMap.put(groupId, map);
|
||||
} else {
|
||||
map.put(topic, handlers);
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, Map<EventType, Map<String, List<EventHandler>>>> getHandlerMap() {
|
||||
return Collections.unmodifiableMap(this.handlerMap);
|
||||
}
|
||||
|
||||
public Map<String, Map<String, Map<String, List<CustomEventHandler>>>> getCustomHandlerMap() {
|
||||
return Collections.unmodifiableMap(this.customHandlerMap);
|
||||
}
|
||||
|
||||
public Map<Class<? extends EventListener>, String> getListenerClassGroupMap() {
|
||||
return Collections.unmodifiableMap(this.listenerClassGroupMap);
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package cn.cloudwalk.event.handler;
|
||||
|
||||
import cn.cloudwalk.event.task.EventHandleTask;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
|
||||
public class EventHandlerWorker {
|
||||
private ThreadPoolExecutor poolExecutor;
|
||||
|
||||
public void setPoolExecutor(ThreadPoolExecutor poolExecutor) {
|
||||
this.poolExecutor = poolExecutor;
|
||||
}
|
||||
|
||||
public Future<String> work(final EventHandleTask task) {
|
||||
return this.poolExecutor.submit(new Callable<String>() {
|
||||
public String call() throws Exception {
|
||||
return task.start();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package cn.cloudwalk.event.handler;
|
||||
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class NamedThreadFactory implements ThreadFactory {
|
||||
private static final String DEFAULT_POOL_NAME = "cloudwalk-common-event";
|
||||
protected static final AtomicInteger POOL_SEQ = new AtomicInteger(1);
|
||||
private final AtomicInteger threadNumber = new AtomicInteger(1);
|
||||
private final String namePrefix;
|
||||
private final ThreadGroup threadGroup;
|
||||
|
||||
public NamedThreadFactory() {
|
||||
this("cloudwalk-common-event");
|
||||
}
|
||||
|
||||
public NamedThreadFactory(String namePrefix) {
|
||||
SecurityManager s = System.getSecurityManager();
|
||||
this.threadGroup = (s != null) ? s.getThreadGroup() : Thread.currentThread().getThreadGroup();
|
||||
if (null == namePrefix || "".equals(namePrefix.trim())) {
|
||||
namePrefix = "cloudwalk-common-event";
|
||||
}
|
||||
this.namePrefix = namePrefix + "-" + POOL_SEQ.getAndIncrement() + "-thread-";
|
||||
}
|
||||
|
||||
public Thread newThread(Runnable r) {
|
||||
Thread t = new Thread(this.threadGroup, r, this.namePrefix + this.threadNumber.getAndIncrement(), 0L);
|
||||
if (t.isDaemon()) {
|
||||
t.setDaemon(false);
|
||||
}
|
||||
if (t.getPriority() != 5) {
|
||||
t.setPriority(5);
|
||||
}
|
||||
return t;
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package cn.cloudwalk.event.listener;
|
||||
|
||||
public class CloudwalkEventListener extends GroupEventListener {}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package cn.cloudwalk.event.listener;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.event.BaseEvent;
|
||||
import cn.cloudwalk.cwos.client.event.handler.EventListener;
|
||||
import cn.cloudwalk.event.CloudwalkEventManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
public abstract class GroupEventListener implements EventListener {
|
||||
public static ApplicationContext applicationContext;
|
||||
protected final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
public void messageListener(BaseEvent baseEvent) throws RuntimeException {
|
||||
try {
|
||||
CloudwalkEventManager cloudwalkEventManager =
|
||||
(CloudwalkEventManager)applicationContext.getBean(CloudwalkEventManager.class);
|
||||
cloudwalkEventManager.handle(getClass(), baseEvent);
|
||||
} catch (BeansException e) {
|
||||
this.logger.error("事件处理出现异常(容器 Bean 解析失败),原因:", e);
|
||||
throw new RuntimeException(e);
|
||||
} catch (RuntimeException e) {
|
||||
this.logger.error("事件处理出现异常,原因:", e);
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
this.logger.error("事件处理出现异常,原因:", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package cn.cloudwalk.event.listener;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.handler.EventListener;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 监听类型与 Kafka 消费组 ID 的注册表。
|
||||
* <p>
|
||||
* 类名中的 {@code Listner} 为历史产物,与既有字节码/配置引用保持一致,请勿随意重命名。
|
||||
*/
|
||||
public class GroupListnerClassMapping {
|
||||
private final Map<Class<? extends EventListener>, String> mapping = new HashMap<>();
|
||||
|
||||
public void register(Class<? extends EventListener> eventListnerClass, String groupId) {
|
||||
if (this.mapping.containsKey(eventListnerClass)) {
|
||||
throw new IllegalArgumentException(
|
||||
String.format("eventListnerClass[%s]已经存在,不允许重复", new Object[] {eventListnerClass.toString()}));
|
||||
}
|
||||
this.mapping.put(eventListnerClass, groupId);
|
||||
}
|
||||
|
||||
public String getGroupId(Class<? extends EventListener> eventListnerClass) {
|
||||
return this.mapping.get(eventListnerClass);
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* 云从消息总线(Kafka)封装:监听器注册、事件处理链、与 CWOS SDK 的集成。
|
||||
* <p>
|
||||
* 入口:在 Spring Boot 启动类或配置类上使用 {@link cn.cloudwalk.event.EnableCloudwalkEvent}, 通过 {@code cloudwalk.event.*} 配置项(参见
|
||||
* {@link cn.cloudwalk.event.autoconfig.EventProperties})完成连接与线程池等参数绑定。
|
||||
*/
|
||||
package cn.cloudwalk.event;
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package cn.cloudwalk.event.task;
|
||||
|
||||
import cn.cloudwalk.cwos.client.event.event.BaseEvent;
|
||||
import cn.cloudwalk.event.handler.EventHandler;
|
||||
|
||||
public class EventHandleTask<E extends BaseEvent> {
|
||||
private E event;
|
||||
private EventHandler<E> handler;
|
||||
|
||||
public EventHandleTask(E event, EventHandler<E> handler) {
|
||||
this.event = event;
|
||||
this.handler = handler;
|
||||
}
|
||||
|
||||
public String start() {
|
||||
this.handler.onEvent(this.event);
|
||||
return this.event.getMessageId();
|
||||
}
|
||||
|
||||
public E getEvent() {
|
||||
return this.event;
|
||||
}
|
||||
|
||||
public void setEvent(E event) {
|
||||
this.event = event;
|
||||
}
|
||||
|
||||
public EventHandler<E> getHandler() {
|
||||
return this.handler;
|
||||
}
|
||||
|
||||
public void setHandler(EventHandler<E> handler) {
|
||||
this.handler = handler;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
Archiver-Version: Plexus Archiver
|
||||
Built-By: hechunjie
|
||||
Created-By: Apache Maven 3.6.0
|
||||
Build-Jdk: 1.8.0_191
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"hints": [],
|
||||
"groups": [
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event",
|
||||
"type": "cn.cloudwalk.event.autoconfig.EventProperties"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event.handler-executor-config",
|
||||
"sourceMethod": "getHandlerExecutorConfig()",
|
||||
"type": "cn.cloudwalk.event.autoconfig.EventProperties$HandlerExecutorConfig"
|
||||
}
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event.bootstrap-servers",
|
||||
"description": "服务器地址",
|
||||
"type": "java.lang.String"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event.fetch-data-worker-number",
|
||||
"description": "获取数据的工作线程数",
|
||||
"type": "java.lang.Integer"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event.group-id",
|
||||
"description": "组ID",
|
||||
"type": "java.lang.String"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties$HandlerExecutorConfig",
|
||||
"name": "cloudwalk.event.handler-executor-config.core-pool-size",
|
||||
"type": "java.lang.Integer"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties$HandlerExecutorConfig",
|
||||
"name": "cloudwalk.event.handler-executor-config.maximum-pool-size",
|
||||
"type": "java.lang.Integer"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event.listener-class",
|
||||
"description": "组与EventListener对应关系",
|
||||
"type": "java.util.Map<java.lang.String,java.lang.String>"
|
||||
},
|
||||
{
|
||||
"sourceType": "cn.cloudwalk.event.autoconfig.EventProperties",
|
||||
"name": "cloudwalk.event.worker-name-prefix",
|
||||
"description": "工作线程名字前缀",
|
||||
"type": "java.lang.String"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-cloud-reactor</artifactId>
|
||||
<version>4.0.0-Brussels-SRX</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>cloudwalk-common-service</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<description>云从科技-公共组件 service 通用层(源码已迁入本模块 src/main/java)</description>
|
||||
|
||||
<properties>
|
||||
<alibaba.eclipse.codestyle.path>${project.basedir}/../../docs/style/alibaba-eclipse-codestyle.xml</alibaba.eclipse.codestyle.path>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-result</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-aop</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-aspects</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-beans</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code.formatter</groupId>
|
||||
<artifactId>formatter-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package cn.cloudwalk.service.aop;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.Validator;
|
||||
import javax.validation.groups.Default;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.aspectj.lang.reflect.MethodSignature;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 对标注了 {@link cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate} 的入口进行 Bean Validation 校验。
|
||||
*/
|
||||
@Aspect
|
||||
@Order(-100)
|
||||
@Component
|
||||
public class CloudwalkParamsValidateAspect {
|
||||
private final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
@Autowired
|
||||
private MessageSource messageSource;
|
||||
|
||||
public String getMessage(String code) {
|
||||
return this.messageSource.getMessage(code, null, LocaleContextHolder.getLocale());
|
||||
}
|
||||
|
||||
@Pointcut("@annotation(cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate)")
|
||||
public void validatePointcut() {}
|
||||
|
||||
@Around("validatePointcut()")
|
||||
public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||
MethodSignature methodSignature = (MethodSignature)joinPoint.getSignature();
|
||||
Method targetMethod =
|
||||
joinPoint.getTarget().getClass().getMethod(methodSignature.getName(), methodSignature.getParameterTypes());
|
||||
this.logger.debug("正在进行对类{}中方法{}进行参数检查开始", joinPoint.getTarget().getClass().getName(), targetMethod.getName());
|
||||
CloudwalkParamsValidate paramsValidate =
|
||||
targetMethod.<CloudwalkParamsValidate>getAnnotation(CloudwalkParamsValidate.class);
|
||||
if (paramsValidate == null) {
|
||||
return joinPoint.proceed();
|
||||
}
|
||||
int[] needCheckParamIndexs = paramsValidate.argsIndexs();
|
||||
if (needCheckParamIndexs == null) {
|
||||
return joinPoint.proceed();
|
||||
}
|
||||
Class<?>[] groupsClazz = paramsValidate.groups();
|
||||
if (groupsClazz == null) {
|
||||
groupsClazz = new Class[] {Default.class};
|
||||
}
|
||||
Object[] args = joinPoint.getArgs();
|
||||
for (int index : needCheckParamIndexs) {
|
||||
Object arg = args[index];
|
||||
Set<ConstraintViolation<Object>> constraintViolationSet = this.validator.validate(arg, groupsClazz);
|
||||
if (constraintViolationSet != null && constraintViolationSet.size() > 0) {
|
||||
Iterator<ConstraintViolation<Object>> iterator = constraintViolationSet.iterator();
|
||||
if (iterator.hasNext()) {
|
||||
ConstraintViolation<Object> constraintViolation = iterator.next();
|
||||
String code = constraintViolation.getMessage();
|
||||
return CloudwalkResult.fail(code, getMessage(code));
|
||||
}
|
||||
}
|
||||
}
|
||||
this.logger.debug("正在进行对类{}中方法{}进行参数检查通过", joinPoint.getTarget().getClass().getName(), targetMethod.getName());
|
||||
return joinPoint.proceed();
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package cn.cloudwalk.service.config;
|
||||
|
||||
import javax.validation.Validation;
|
||||
import javax.validation.Validator;
|
||||
import javax.validation.ValidatorFactory;
|
||||
import org.hibernate.validator.HibernateValidator;
|
||||
import org.hibernate.validator.HibernateValidatorConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
|
||||
|
||||
/**
|
||||
* Hibernate Validator 与 Spring {@link org.springframework.validation.beanvalidation.MethodValidationPostProcessor} 注册。
|
||||
*/
|
||||
@Configuration
|
||||
public class ValidatorConfig {
|
||||
@Bean
|
||||
public Validator validator() {
|
||||
ValidatorFactory validatorFactory =
|
||||
((HibernateValidatorConfiguration)Validation.byProvider(HibernateValidator.class).configure())
|
||||
.failFast(true).buildValidatorFactory();
|
||||
return validatorFactory.getValidator();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public MethodValidationPostProcessor methodValidationPostProcessor() {
|
||||
MethodValidationPostProcessor postProcessor = new MethodValidationPostProcessor();
|
||||
postProcessor.setValidator(validator());
|
||||
return postProcessor;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* 云从公共 Web/Service 横切能力:参数校验 AOP、校验器与 Spring 集成等。
|
||||
* <p>
|
||||
* 典型用法:在依赖了 {@code cloudwalk-common-result} 的应用中注册切面与 {@link org.springframework.validation.Validator}。
|
||||
*/
|
||||
package cn.cloudwalk.service;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
Archiver-Version: Plexus Archiver
|
||||
Built-By: hechunjie
|
||||
Created-By: Apache Maven 3.6.0
|
||||
Build-Jdk: 1.8.0_191
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.1.18.RELEASE</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-cloud-reactor</artifactId>
|
||||
<version>4.0.0-Brussels-SRX</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>cloudwalk-cloud (Maven reactor)</name>
|
||||
<description>聚合模块:cloudwalk-common-event、cloudwalk-common-service。原父 POM cloudwalk-cloud-common 缺失,由本工程继承 Spring Boot 并集中管理云从内部构件版本。</description>
|
||||
|
||||
<modules>
|
||||
<!-- 先安装到本地 ~/.m2,供其它工程解析私服 JAR 的 parent(cloudwalk-cloud-common) -->
|
||||
<module>cloudwalk-cloud-common</module>
|
||||
<module>cloudwalk-common-event</module>
|
||||
<module>cloudwalk-common-service</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<spring-cloud.version>Greenwich.SR6</spring-cloud.version>
|
||||
<cloudwalk.internal.version>4.0.0-Brussels-SRX</cloudwalk.internal.version>
|
||||
<!-- 未迁入本仓库、私服仍为历史 GAV 的云从公共 JAR(如 common-result),与反应堆版本解耦 -->
|
||||
<cloudwalk.legacy.public.version>3.7.2-Brussels-SRX</cloudwalk.legacy.public.version>
|
||||
<!-- 与 V1 运行包 lib 内 cwos-sdk-event 一致(私服常见为 1.5.0-SNAPSHOT,非 4.0.0 坐标) -->
|
||||
<cwos.sdk.event.version>1.5.0-SNAPSHOT</cwos.sdk.event.version>
|
||||
<!-- Nexus UI: http://192.168.3.12/#browse/welcome -->
|
||||
<nexus.baseUrl>http://192.168.3.12</nexus.baseUrl>
|
||||
<nexus.public.repo>${nexus.baseUrl}/repository/maven-public/</nexus.public.repo>
|
||||
<formatter.maven.plugin.version>2.24.1</formatter.maven.plugin.version>
|
||||
<!-- P3C Eclipse 码风格(阿里巴巴 Java 开发手册配套),文件见 ../docs/style/alibaba-eclipse-codestyle.xml -->
|
||||
<alibaba.eclipse.codestyle.path>${project.basedir}/../docs/style/alibaba-eclipse-codestyle.xml</alibaba.eclipse.codestyle.path>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${spring-cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-result</artifactId>
|
||||
<version>${cloudwalk.legacy.public.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cwos-sdk-event</artifactId>
|
||||
<version>${cwos.sdk.event.version}</version>
|
||||
</dependency>
|
||||
<!-- 子模块未写版本;Boot 父 POM 对部分坐标未集中管理,在此补齐 -->
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
<version>6.0.22.Final</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>nexus-public</id>
|
||||
<name>Nexus maven-public</name>
|
||||
<url>${nexus.public.repo}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>nexus-public-plugins</id>
|
||||
<name>Nexus maven-public</name>
|
||||
<url>${nexus.public.repo}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code.formatter</groupId>
|
||||
<artifactId>formatter-maven-plugin</artifactId>
|
||||
<version>${formatter.maven.plugin.version}</version>
|
||||
<configuration>
|
||||
<configFile>${alibaba.eclipse.codestyle.path}</configFile>
|
||||
<lineEnding>LF</lineEnding>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>3.4.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-jdk8</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireJavaVersion>
|
||||
<version>[1.8,1.9)</version>
|
||||
<message>与原始运行包一致须使用 JDK 8 启动 Maven;见 docs/build/ORIGINAL_BUILD_JDK.txt</message>
|
||||
</requireJavaVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-device-manager</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>cloudwalk-device-manager-common</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>cloudwalk-device-manager-common</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-result</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceAttrDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = 7532219742072618468L;
|
||||
private String deviceId;
|
||||
private List<String> ids;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceAttrEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -5488036695068583600L;
|
||||
private String deviceTypeId;
|
||||
private String deviceId;
|
||||
private String commandCode;
|
||||
private String attrCode;
|
||||
private String attrDisplay;
|
||||
private String attrValue;
|
||||
private Integer orderBy;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getCommandCode() {
|
||||
return this.commandCode;
|
||||
}
|
||||
|
||||
public void setCommandCode(String commandCode) {
|
||||
this.commandCode = commandCode;
|
||||
}
|
||||
|
||||
public String getAttrCode() {
|
||||
return this.attrCode;
|
||||
}
|
||||
|
||||
public void setAttrCode(String attrCode) {
|
||||
this.attrCode = attrCode;
|
||||
}
|
||||
|
||||
public String getAttrDisplay() {
|
||||
return this.attrDisplay;
|
||||
}
|
||||
|
||||
public void setAttrDisplay(String attrDisplay) {
|
||||
this.attrDisplay = attrDisplay;
|
||||
}
|
||||
|
||||
public String getAttrValue() {
|
||||
return this.attrValue;
|
||||
}
|
||||
|
||||
public void setAttrValue(String attrValue) {
|
||||
this.attrValue = attrValue;
|
||||
}
|
||||
|
||||
public Integer getOrderBy() {
|
||||
return this.orderBy;
|
||||
}
|
||||
|
||||
public void setOrderBy(Integer orderBy) {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceAttrGetsDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 4291055216656240573L;
|
||||
private List<String> deviceIds;
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceAttrQueryDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 4291055216656240573L;
|
||||
private String deviceId;
|
||||
private String commandCode;
|
||||
private String attrCode;
|
||||
private String deviceTypeId;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getCommandCode() {
|
||||
return this.commandCode;
|
||||
}
|
||||
|
||||
public void setCommandCode(String commandCode) {
|
||||
this.commandCode = commandCode;
|
||||
}
|
||||
|
||||
public String getAttrCode() {
|
||||
return this.attrCode;
|
||||
}
|
||||
|
||||
public void setAttrCode(String attrCode) {
|
||||
this.attrCode = attrCode;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceAttrResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 8188846432568002619L;
|
||||
private String attrCode;
|
||||
private String commandCode;
|
||||
private String attrDisplay;
|
||||
private String attrValue;
|
||||
private String deviceId;
|
||||
private String deviceTypeId;
|
||||
private Integer orderBy;
|
||||
|
||||
public String getAttrCode() {
|
||||
return this.attrCode;
|
||||
}
|
||||
|
||||
public void setAttrCode(String attrCode) {
|
||||
this.attrCode = attrCode;
|
||||
}
|
||||
|
||||
public String getCommandCode() {
|
||||
return this.commandCode;
|
||||
}
|
||||
|
||||
public void setCommandCode(String commandCode) {
|
||||
this.commandCode = commandCode;
|
||||
}
|
||||
|
||||
public String getAttrDisplay() {
|
||||
return this.attrDisplay;
|
||||
}
|
||||
|
||||
public void setAttrDisplay(String attrDisplay) {
|
||||
this.attrDisplay = attrDisplay;
|
||||
}
|
||||
|
||||
public String getAttrValue() {
|
||||
return this.attrValue;
|
||||
}
|
||||
|
||||
public void setAttrValue(String attrValue) {
|
||||
this.attrValue = attrValue;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public Integer getOrderBy() {
|
||||
return this.orderBy;
|
||||
}
|
||||
|
||||
public void setOrderBy(Integer orderBy) {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceDeleteDTO implements Serializable {
|
||||
private static final long serialVersionUID = 4291055216656240573L;
|
||||
private List<String> ids;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 119541598673489550L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String businessId;
|
||||
private String crowServiceId;
|
||||
private String custId;
|
||||
private String deviceCode;
|
||||
private String parentCode;
|
||||
private String deviceModel;
|
||||
private String deviceName;
|
||||
private String deviceGroupId;
|
||||
private String deviceTypeId;
|
||||
private String latitude;
|
||||
private String longitude;
|
||||
private String altitude;
|
||||
private Long lastPositionTime;
|
||||
private Long lastHeartbeatTime;
|
||||
private Short status;
|
||||
private String remark;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getCrowServiceId() {
|
||||
return this.crowServiceId;
|
||||
}
|
||||
|
||||
public void setCrowServiceId(String crowServiceId) {
|
||||
this.crowServiceId = crowServiceId;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceModel() {
|
||||
return this.deviceModel;
|
||||
}
|
||||
|
||||
public void setDeviceModel(String deviceModel) {
|
||||
this.deviceModel = deviceModel;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceGroupId() {
|
||||
return this.deviceGroupId;
|
||||
}
|
||||
|
||||
public void setDeviceGroupId(String deviceGroupId) {
|
||||
this.deviceGroupId = deviceGroupId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return this.latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return this.longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Long getLastPositionTime() {
|
||||
return this.lastPositionTime;
|
||||
}
|
||||
|
||||
public void setLastPositionTime(Long lastPositionTime) {
|
||||
this.lastPositionTime = lastPositionTime;
|
||||
}
|
||||
|
||||
public Long getLastHeartbeatTime() {
|
||||
return this.lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public Short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getParentCode() {
|
||||
return this.parentCode;
|
||||
}
|
||||
|
||||
public void setParentCode(String parentCode) {
|
||||
this.parentCode = parentCode;
|
||||
}
|
||||
|
||||
public String getAltitude() {
|
||||
return this.altitude;
|
||||
}
|
||||
|
||||
public void setAltitude(String altitude) {
|
||||
this.altitude = altitude;
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceGetsDTO implements Serializable {
|
||||
private static final long serialVersionUID = -2921717570593806012L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String businessId;
|
||||
private List<String> ids;
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceInGroupDTO implements Serializable {
|
||||
private static final long serialVersionUID = -4459032093856725871L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private List<String> deviceGroupIds;
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public List<String> getDeviceGroupIds() {
|
||||
return this.deviceGroupIds;
|
||||
}
|
||||
|
||||
public void setDeviceGroupIds(List<String> deviceGroupIds) {
|
||||
this.deviceGroupIds = deviceGroupIds;
|
||||
}
|
||||
}
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceQueryDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -8810015855541368017L;
|
||||
private String deviceCode;
|
||||
private String parentCode;
|
||||
private List<String> deviceCodes;
|
||||
private String deviceModel;
|
||||
private String deviceName;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String businessId;
|
||||
private String custId;
|
||||
private List<String> custIds;
|
||||
private String deviceGroupId;
|
||||
private String deviceTypeId;
|
||||
private Short status;
|
||||
private List<String> deviceTypeIds;
|
||||
private List<String> crowServiceIds;
|
||||
private Long lastHeartTimeBeginTime;
|
||||
private Long lastHeartTimeEndTime;
|
||||
private List<String> deviceGroupIds;
|
||||
|
||||
public DeviceQueryDTO() {
|
||||
}
|
||||
|
||||
public DeviceQueryDTO(List<String> deviceTypeIds) {
|
||||
setDeviceTypeIds(deviceTypeIds);
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceModel() {
|
||||
return this.deviceModel;
|
||||
}
|
||||
|
||||
public void setDeviceModel(String deviceModel) {
|
||||
this.deviceModel = deviceModel;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
|
||||
public List<String> getCustIds() {
|
||||
return this.custIds;
|
||||
}
|
||||
|
||||
public void setCustIds(List<String> custIds) {
|
||||
this.custIds = custIds;
|
||||
}
|
||||
|
||||
public List<String> getCrowServiceIds() {
|
||||
return this.crowServiceIds;
|
||||
}
|
||||
|
||||
public void setCrowServiceIds(List<String> crowServiceIds) {
|
||||
this.crowServiceIds = crowServiceIds;
|
||||
}
|
||||
|
||||
public String getDeviceGroupId() {
|
||||
return this.deviceGroupId;
|
||||
}
|
||||
|
||||
public void setDeviceGroupId(String deviceGroupId) {
|
||||
this.deviceGroupId = deviceGroupId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public List<String> getDeviceTypeIds() {
|
||||
return this.deviceTypeIds;
|
||||
}
|
||||
|
||||
public void setDeviceTypeIds(List<String> deviceTypeIds) {
|
||||
this.deviceTypeIds = deviceTypeIds;
|
||||
}
|
||||
|
||||
public Short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getLastHeartTimeBeginTime() {
|
||||
return this.lastHeartTimeBeginTime;
|
||||
}
|
||||
|
||||
public void setLastHeartTimeBeginTime(Long lastHeartTimeBeginTime) {
|
||||
this.lastHeartTimeBeginTime = lastHeartTimeBeginTime;
|
||||
}
|
||||
|
||||
public Long getLastHeartTimeEndTime() {
|
||||
return this.lastHeartTimeEndTime;
|
||||
}
|
||||
|
||||
public void setLastHeartTimeEndTime(Long lastHeartTimeEndTime) {
|
||||
this.lastHeartTimeEndTime = lastHeartTimeEndTime;
|
||||
}
|
||||
|
||||
public List<String> getDeviceCodes() {
|
||||
return this.deviceCodes;
|
||||
}
|
||||
|
||||
public void setDeviceCodes(List<String> deviceCodes) {
|
||||
this.deviceCodes = deviceCodes;
|
||||
}
|
||||
|
||||
public List<String> getDeviceGroupIds() {
|
||||
return this.deviceGroupIds;
|
||||
}
|
||||
|
||||
public void setDeviceGroupIds(List<String> deviceGroupIds) {
|
||||
this.deviceGroupIds = deviceGroupIds;
|
||||
}
|
||||
|
||||
public String getParentCode() {
|
||||
return this.parentCode;
|
||||
}
|
||||
|
||||
public void setParentCode(String parentCode) {
|
||||
this.parentCode = parentCode;
|
||||
}
|
||||
}
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -2916997451783405867L;
|
||||
private String deviceCode;
|
||||
private String parentCode;
|
||||
private String deviceModel;
|
||||
private String deviceName;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String businessId;
|
||||
private String deviceGroupId;
|
||||
private String deviceTypeId;
|
||||
private Integer status;
|
||||
private String crowServiceId;
|
||||
private String custId;
|
||||
private String latitude;
|
||||
private String longitude;
|
||||
private String altitude;
|
||||
private Long lastPositionTime;
|
||||
private Long lastHeartbeatTime;
|
||||
private String remark;
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceModel() {
|
||||
return this.deviceModel;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getDeviceGroupId() {
|
||||
return this.deviceGroupId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public String getCrowServiceId() {
|
||||
return this.crowServiceId;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public Long getLastHeartbeatTime() {
|
||||
return this.lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceModel(String deviceModel) {
|
||||
this.deviceModel = deviceModel;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setDeviceGroupId(String deviceGroupId) {
|
||||
this.deviceGroupId = deviceGroupId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public void setCrowServiceId(String crowServiceId) {
|
||||
this.crowServiceId = crowServiceId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return this.latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return this.longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Long getLastPositionTime() {
|
||||
return this.lastPositionTime;
|
||||
}
|
||||
|
||||
public void setLastPositionTime(Long lastPositionTime) {
|
||||
this.lastPositionTime = lastPositionTime;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getParentCode() {
|
||||
return this.parentCode;
|
||||
}
|
||||
|
||||
public void setParentCode(String parentCode) {
|
||||
this.parentCode = parentCode;
|
||||
}
|
||||
|
||||
public String getAltitude() {
|
||||
return this.altitude;
|
||||
}
|
||||
|
||||
public void setAltitude(String altitude) {
|
||||
this.altitude = altitude;
|
||||
}
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package cn.cloudwalk.common.device.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceStatusDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -8554490421352274975L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private List<String> ids;
|
||||
private String businessId;
|
||||
private Short status;
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Short status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package cn.cloudwalk.common.device.bean.group.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceGroupDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = 2242182134134213630L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private List<String> ids;
|
||||
private String custId;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.group.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceGroupEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -3080305257082849370L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String custId;
|
||||
private String groupCode;
|
||||
private String groupName;
|
||||
private String nodeId;
|
||||
private String remark;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
|
||||
public String getGroupCode() {
|
||||
return this.groupCode;
|
||||
}
|
||||
|
||||
public void setGroupCode(String groupCode) {
|
||||
this.groupCode = groupCode;
|
||||
}
|
||||
|
||||
public String getGroupName() {
|
||||
return this.groupName;
|
||||
}
|
||||
|
||||
public void setGroupName(String groupName) {
|
||||
this.groupName = groupName;
|
||||
}
|
||||
|
||||
public String getNodeId() {
|
||||
return this.nodeId;
|
||||
}
|
||||
|
||||
public void setNodeId(String nodeId) {
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package cn.cloudwalk.common.device.bean.group.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceGroupGetsDTO implements Serializable {
|
||||
private static final long serialVersionUID = -4946078252471693189L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private List<String> ids;
|
||||
private String custId;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package cn.cloudwalk.common.device.bean.group.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBasePeriod;
|
||||
|
||||
public class DeviceGroupQueryDTO extends CloudwalkBasePeriod {
|
||||
private static final long serialVersionUID = -1353911852214721671L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String groupCode;
|
||||
private String groupName;
|
||||
private String custId;
|
||||
private String nodeId;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getGroupCode() {
|
||||
return this.groupCode;
|
||||
}
|
||||
|
||||
public void setGroupCode(String groupCode) {
|
||||
this.groupCode = groupCode;
|
||||
}
|
||||
|
||||
public String getGroupName() {
|
||||
return this.groupName;
|
||||
}
|
||||
|
||||
public void setGroupName(String groupName) {
|
||||
this.groupName = groupName;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
|
||||
public String getNodeId() {
|
||||
return this.nodeId;
|
||||
}
|
||||
|
||||
public void setNodeId(String nodeId) {
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.group.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceGroupResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 9222437812227606075L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String groupCode;
|
||||
private String groupName;
|
||||
private String custId;
|
||||
private String nodeId;
|
||||
private String remark;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public String getGroupCode() {
|
||||
return this.groupCode;
|
||||
}
|
||||
|
||||
public void setGroupCode(String groupCode) {
|
||||
this.groupCode = groupCode;
|
||||
}
|
||||
|
||||
public String getGroupName() {
|
||||
return this.groupName;
|
||||
}
|
||||
|
||||
public void setGroupName(String groupName) {
|
||||
this.groupName = groupName;
|
||||
}
|
||||
|
||||
public String getCustId() {
|
||||
return this.custId;
|
||||
}
|
||||
|
||||
public void setCustId(String custId) {
|
||||
this.custId = custId;
|
||||
}
|
||||
|
||||
public String getNodeId() {
|
||||
return this.nodeId;
|
||||
}
|
||||
|
||||
public void setNodeId(String nodeId) {
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package cn.cloudwalk.common.device.bean.group.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.util.List;
|
||||
|
||||
public class DevicesAndGroupDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 1191366313600834800L;
|
||||
private List<String> ids;
|
||||
private String deviceGroupId;
|
||||
private String serviceCode;
|
||||
private String applicationId;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getDeviceGroupId() {
|
||||
return this.deviceGroupId;
|
||||
}
|
||||
|
||||
public void setDeviceGroupId(String deviceGroupId) {
|
||||
this.deviceGroupId = deviceGroupId;
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceBaseDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1108100822726258384L;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Long reportTime;
|
||||
|
||||
public static long getSerialversionuid() {
|
||||
return 1108100822726258384L;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceCpuDTO implements Serializable {
|
||||
private static final long serialVersionUID = -6318524975099901695L;
|
||||
private String id;
|
||||
private String logId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String cpuName;
|
||||
private Integer numberOfProcessors;
|
||||
private Integer processorArchitecture;
|
||||
private Integer processorType;
|
||||
private Integer cpuRatio;
|
||||
private Long runTime;
|
||||
private Long reportTime;
|
||||
private Integer temperature;
|
||||
|
||||
public String getLogId() {
|
||||
return this.logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getCpuName() {
|
||||
return this.cpuName;
|
||||
}
|
||||
|
||||
public void setCpuName(String cpuName) {
|
||||
this.cpuName = cpuName;
|
||||
}
|
||||
|
||||
public Integer getNumberOfProcessors() {
|
||||
return this.numberOfProcessors;
|
||||
}
|
||||
|
||||
public void setNumberOfProcessors(Integer numberOfProcessors) {
|
||||
this.numberOfProcessors = numberOfProcessors;
|
||||
}
|
||||
|
||||
public Integer getProcessorArchitecture() {
|
||||
return this.processorArchitecture;
|
||||
}
|
||||
|
||||
public void setProcessorArchitecture(Integer processorArchitecture) {
|
||||
this.processorArchitecture = processorArchitecture;
|
||||
}
|
||||
|
||||
public Integer getProcessorType() {
|
||||
return this.processorType;
|
||||
}
|
||||
|
||||
public void setProcessorType(Integer processorType) {
|
||||
this.processorType = processorType;
|
||||
}
|
||||
|
||||
public Integer getCpuRatio() {
|
||||
return this.cpuRatio;
|
||||
}
|
||||
|
||||
public void setCpuRatio(Integer cpuRatio) {
|
||||
this.cpuRatio = cpuRatio;
|
||||
}
|
||||
|
||||
public Long getRunTime() {
|
||||
return this.runTime;
|
||||
}
|
||||
|
||||
public void setRunTime(Long runTime) {
|
||||
this.runTime = runTime;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public Integer getTemperature() {
|
||||
return this.temperature;
|
||||
}
|
||||
|
||||
public void setTemperature(Integer temperature) {
|
||||
this.temperature = temperature;
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceCpuResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -3397842969194037972L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String cpuName;
|
||||
private Integer numberOfProcessors;
|
||||
private Integer processorArchitecture;
|
||||
private Integer processorType;
|
||||
private Integer cpuRatio;
|
||||
private Long runTime;
|
||||
private Long reportTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getCpuName() {
|
||||
return this.cpuName;
|
||||
}
|
||||
|
||||
public void setCpuName(String cpuName) {
|
||||
this.cpuName = cpuName;
|
||||
}
|
||||
|
||||
public Integer getNumberOfProcessors() {
|
||||
return this.numberOfProcessors;
|
||||
}
|
||||
|
||||
public void setNumberOfProcessors(Integer numberOfProcessors) {
|
||||
this.numberOfProcessors = numberOfProcessors;
|
||||
}
|
||||
|
||||
public Integer getProcessorArchitecture() {
|
||||
return this.processorArchitecture;
|
||||
}
|
||||
|
||||
public void setProcessorArchitecture(Integer processorArchitecture) {
|
||||
this.processorArchitecture = processorArchitecture;
|
||||
}
|
||||
|
||||
public Integer getProcessorType() {
|
||||
return this.processorType;
|
||||
}
|
||||
|
||||
public void setProcessorType(Integer processorType) {
|
||||
this.processorType = processorType;
|
||||
}
|
||||
|
||||
public Integer getCpuRatio() {
|
||||
return this.cpuRatio;
|
||||
}
|
||||
|
||||
public void setCpuRatio(Integer cpuRatio) {
|
||||
this.cpuRatio = cpuRatio;
|
||||
}
|
||||
|
||||
public Long getRunTime() {
|
||||
return this.runTime;
|
||||
}
|
||||
|
||||
public void setRunTime(Long runTime) {
|
||||
this.runTime = runTime;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
}
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceDiskDTO implements Serializable {
|
||||
private static final long serialVersionUID = 5658143125988588067L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String rootPathName;
|
||||
private Long totalNumberOfBytes;
|
||||
private Long freeBytes;
|
||||
private Integer isInstall;
|
||||
private Long reportTime;
|
||||
private Long inodeTotal;
|
||||
private Long inodeUsed;
|
||||
private Integer iops;
|
||||
private Integer throughput;
|
||||
private Long waitTime;
|
||||
private Double electricVoltage;
|
||||
private Double electricCurrent;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getRootPathName() {
|
||||
return this.rootPathName;
|
||||
}
|
||||
|
||||
public void setRootPathName(String rootPathName) {
|
||||
this.rootPathName = rootPathName;
|
||||
}
|
||||
|
||||
public Long getTotalNumberOfBytes() {
|
||||
return this.totalNumberOfBytes;
|
||||
}
|
||||
|
||||
public void setTotalNumberOfBytes(Long totalNumberOfBytes) {
|
||||
this.totalNumberOfBytes = totalNumberOfBytes;
|
||||
}
|
||||
|
||||
public Long getFreeBytes() {
|
||||
return this.freeBytes;
|
||||
}
|
||||
|
||||
public void setFreeBytes(Long freeBytes) {
|
||||
this.freeBytes = freeBytes;
|
||||
}
|
||||
|
||||
public Integer getIsInstall() {
|
||||
return this.isInstall;
|
||||
}
|
||||
|
||||
public void setIsInstall(Integer isInstall) {
|
||||
this.isInstall = isInstall;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public Long getInodeTotal() {
|
||||
return this.inodeTotal;
|
||||
}
|
||||
|
||||
public void setInodeTotal(Long inodeTotal) {
|
||||
this.inodeTotal = inodeTotal;
|
||||
}
|
||||
|
||||
public Long getInodeUsed() {
|
||||
return this.inodeUsed;
|
||||
}
|
||||
|
||||
public void setInodeUsed(Long inodeUsed) {
|
||||
this.inodeUsed = inodeUsed;
|
||||
}
|
||||
|
||||
public Integer getIops() {
|
||||
return this.iops;
|
||||
}
|
||||
|
||||
public void setIops(Integer iops) {
|
||||
this.iops = iops;
|
||||
}
|
||||
|
||||
public Integer getThroughput() {
|
||||
return this.throughput;
|
||||
}
|
||||
|
||||
public void setThroughput(Integer throughput) {
|
||||
this.throughput = throughput;
|
||||
}
|
||||
|
||||
public Long getWaitTime() {
|
||||
return this.waitTime;
|
||||
}
|
||||
|
||||
public void setWaitTime(Long waitTime) {
|
||||
this.waitTime = waitTime;
|
||||
}
|
||||
|
||||
public Double getElectricVoltage() {
|
||||
return this.electricVoltage;
|
||||
}
|
||||
|
||||
public void setElectricVoltage(Double electricVoltage) {
|
||||
this.electricVoltage = electricVoltage;
|
||||
}
|
||||
|
||||
public Double getElectricCurrent() {
|
||||
return this.electricCurrent;
|
||||
}
|
||||
|
||||
public void setElectricCurrent(Double electricCurrent) {
|
||||
this.electricCurrent = electricCurrent;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceDiskResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -5539935836946079741L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String rootPathName;
|
||||
private Long totalNumberOfBytes;
|
||||
private Long freeBytes;
|
||||
private Integer isInstall;
|
||||
private Long reportTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getRootPathName() {
|
||||
return this.rootPathName;
|
||||
}
|
||||
|
||||
public void setRootPathName(String rootPathName) {
|
||||
this.rootPathName = rootPathName;
|
||||
}
|
||||
|
||||
public Long getTotalNumberOfBytes() {
|
||||
return this.totalNumberOfBytes;
|
||||
}
|
||||
|
||||
public void setTotalNumberOfBytes(Long totalNumberOfBytes) {
|
||||
this.totalNumberOfBytes = totalNumberOfBytes;
|
||||
}
|
||||
|
||||
public Long getFreeBytes() {
|
||||
return this.freeBytes;
|
||||
}
|
||||
|
||||
public void setFreeBytes(Long freeBytes) {
|
||||
this.freeBytes = freeBytes;
|
||||
}
|
||||
|
||||
public Integer getIsInstall() {
|
||||
return this.isInstall;
|
||||
}
|
||||
|
||||
public void setIsInstall(Integer isInstall) {
|
||||
this.isInstall = isInstall;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceGpuDTO implements Serializable {
|
||||
private static final long serialVersionUID = -6318524975099901695L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String gpuName;
|
||||
private Integer gpuRatio;
|
||||
private Integer videoMemory;
|
||||
private Long reportTime;
|
||||
private Long runTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getGpuName() {
|
||||
return this.gpuName;
|
||||
}
|
||||
|
||||
public void setGpuName(String gpuName) {
|
||||
this.gpuName = gpuName;
|
||||
}
|
||||
|
||||
public Integer getGpuRatio() {
|
||||
return this.gpuRatio;
|
||||
}
|
||||
|
||||
public void setGpuRatio(Integer gpuRatio) {
|
||||
this.gpuRatio = gpuRatio;
|
||||
}
|
||||
|
||||
public Integer getVideoMemory() {
|
||||
return this.videoMemory;
|
||||
}
|
||||
|
||||
public void setVideoMemory(Integer videoMemory) {
|
||||
this.videoMemory = videoMemory;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public Long getRunTime() {
|
||||
return this.runTime;
|
||||
}
|
||||
|
||||
public void setRunTime(Long runTime) {
|
||||
this.runTime = runTime;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceGpuResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -6318524975099901695L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String gpuName;
|
||||
private Integer gpuRatio;
|
||||
private Integer videoMemory;
|
||||
private Long reportTime;
|
||||
private Long runTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getGpuName() {
|
||||
return this.gpuName;
|
||||
}
|
||||
|
||||
public void setGpuName(String gpuName) {
|
||||
this.gpuName = gpuName;
|
||||
}
|
||||
|
||||
public Integer getGpuRatio() {
|
||||
return this.gpuRatio;
|
||||
}
|
||||
|
||||
public void setGpuRatio(Integer gpuRatio) {
|
||||
this.gpuRatio = gpuRatio;
|
||||
}
|
||||
|
||||
public Integer getVideoMemory() {
|
||||
return this.videoMemory;
|
||||
}
|
||||
|
||||
public void setVideoMemory(Integer videoMemory) {
|
||||
this.videoMemory = videoMemory;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public Long getRunTime() {
|
||||
return this.runTime;
|
||||
}
|
||||
|
||||
public void setRunTime(Long runTime) {
|
||||
this.runTime = runTime;
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceHealthDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 4433517125984061668L;
|
||||
public List<String> deviceCodes;
|
||||
private Long lastHeartbeatTime;
|
||||
|
||||
public DeviceHealthDTO() {
|
||||
}
|
||||
|
||||
public DeviceHealthDTO(List<String> deviceCodes) {
|
||||
setDeviceCodes(deviceCodes);
|
||||
}
|
||||
|
||||
public List<String> getDeviceCodes() {
|
||||
return this.deviceCodes;
|
||||
}
|
||||
|
||||
public void setDeviceCodes(List<String> deviceCodes) {
|
||||
this.deviceCodes = deviceCodes;
|
||||
}
|
||||
|
||||
public Long getLastHeartbeatTime() {
|
||||
return this.lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceMemoryDTO implements Serializable {
|
||||
private static final long serialVersionUID = -1830579546560579033L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Integer memoryLoad;
|
||||
private Long availPhys;
|
||||
private Long totalPhys;
|
||||
private Long reportTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getMemoryLoad() {
|
||||
return this.memoryLoad;
|
||||
}
|
||||
|
||||
public void setMemoryLoad(Integer memoryLoad) {
|
||||
this.memoryLoad = memoryLoad;
|
||||
}
|
||||
|
||||
public Long getAvailPhys() {
|
||||
return this.availPhys;
|
||||
}
|
||||
|
||||
public void setAvailPhys(Long availPhys) {
|
||||
this.availPhys = availPhys;
|
||||
}
|
||||
|
||||
public Long getTotalPhys() {
|
||||
return this.totalPhys;
|
||||
}
|
||||
|
||||
public void setTotalPhys(Long totalPhys) {
|
||||
this.totalPhys = totalPhys;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceMemoryResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -972964577831168328L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Integer memoryLoad;
|
||||
private Long availPhys;
|
||||
private Long totalPhys;
|
||||
private Long reportTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getMemoryLoad() {
|
||||
return this.memoryLoad;
|
||||
}
|
||||
|
||||
public void setMemoryLoad(Integer memoryLoad) {
|
||||
this.memoryLoad = memoryLoad;
|
||||
}
|
||||
|
||||
public Long getAvailPhys() {
|
||||
return this.availPhys;
|
||||
}
|
||||
|
||||
public void setAvailPhys(Long availPhys) {
|
||||
this.availPhys = availPhys;
|
||||
}
|
||||
|
||||
public Long getTotalPhys() {
|
||||
return this.totalPhys;
|
||||
}
|
||||
|
||||
public void setTotalPhys(Long totalPhys) {
|
||||
this.totalPhys = totalPhys;
|
||||
}
|
||||
|
||||
public Long getReportTime() {
|
||||
return this.reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Long reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.common.device.bean.health.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceNetworkDTO implements Serializable {
|
||||
private static final long serialVersionUID = -7378965470503823624L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Long runTime;
|
||||
private Integer throughput;
|
||||
private Integer bandWidth;
|
||||
private Long waitTime;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Long getRunTime() {
|
||||
return this.runTime;
|
||||
}
|
||||
|
||||
public void setRunTime(Long runTime) {
|
||||
this.runTime = runTime;
|
||||
}
|
||||
|
||||
public Integer getThroughput() {
|
||||
return this.throughput;
|
||||
}
|
||||
|
||||
public void setThroughput(Integer throughput) {
|
||||
this.throughput = throughput;
|
||||
}
|
||||
|
||||
public Integer getBandWidth() {
|
||||
return this.bandWidth;
|
||||
}
|
||||
|
||||
public void setBandWidth(Integer bandWidth) {
|
||||
this.bandWidth = bandWidth;
|
||||
}
|
||||
|
||||
public Long getWaitTime() {
|
||||
return this.waitTime;
|
||||
}
|
||||
|
||||
public void setWaitTime(Long waitTime) {
|
||||
this.waitTime = waitTime;
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AdvertisementResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -90797168574821354L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Integer shufflingInterval;
|
||||
private String advertisementId;
|
||||
private Integer showSwitch;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getShufflingInterval() {
|
||||
return this.shufflingInterval;
|
||||
}
|
||||
|
||||
public void setShufflingInterval(Integer shufflingInterval) {
|
||||
this.shufflingInterval = shufflingInterval;
|
||||
}
|
||||
|
||||
public String getAdvertisementId() {
|
||||
return this.advertisementId;
|
||||
}
|
||||
|
||||
public void setAdvertisementId(String advertisementId) {
|
||||
this.advertisementId = advertisementId;
|
||||
}
|
||||
|
||||
public Integer getShowSwitch() {
|
||||
return this.showSwitch;
|
||||
}
|
||||
|
||||
public void setShowSwitch(Integer showSwitch) {
|
||||
this.showSwitch = showSwitch;
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CompareModelResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -8486683753194585647L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Integer compareModel;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public void setCompareModel(Integer compareModel) {
|
||||
this.compareModel = compareModel;
|
||||
}
|
||||
|
||||
public Integer getCompareModel() {
|
||||
return this.compareModel;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class ControllerQueryDTO implements Serializable {
|
||||
private static final long serialVersionUID = -8415873401130917094L;
|
||||
private String deviceTypeId;
|
||||
private List<String> deviceCodes;
|
||||
private Set<String> deviceAttrCodes;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public List<String> getDeviceCodes() {
|
||||
return this.deviceCodes;
|
||||
}
|
||||
|
||||
public void setDeviceCodes(List<String> deviceCodes) {
|
||||
this.deviceCodes = deviceCodes;
|
||||
}
|
||||
|
||||
public Set<String> getDeviceAttrCodes() {
|
||||
return this.deviceAttrCodes;
|
||||
}
|
||||
|
||||
public void setDeviceAttrCodes(Set<String> deviceAttrCodes) {
|
||||
this.deviceAttrCodes = deviceAttrCodes;
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
public class DeviceAttrModifyDTO implements Serializable {
|
||||
private static final long serialVersionUID = 9102395805528283894L;
|
||||
private String deviceId;
|
||||
private Map<String, String> attrs;
|
||||
private Long time;
|
||||
private String userId;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Map<String, String> getAttrs() {
|
||||
return this.attrs;
|
||||
}
|
||||
|
||||
public void setAttrs(Map<String, String> attrs) {
|
||||
this.attrs = attrs;
|
||||
}
|
||||
|
||||
public Long getTime() {
|
||||
return this.time;
|
||||
}
|
||||
|
||||
public void setTime(Long time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
public class DeviceBaseInfoResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -8299801483967188097L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private String softwareVersion;
|
||||
private Integer networkType;
|
||||
private String networkBlock;
|
||||
private String algorithmVersion;
|
||||
private String modelVersion;
|
||||
private String firmwareVersion;
|
||||
private String osVersion;
|
||||
private String mac;
|
||||
private String ip;
|
||||
private String subnetMask;
|
||||
private String dns;
|
||||
private String gateway;
|
||||
private String simBlock;
|
||||
private Map<String, String> deviceAttrs;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getSoftwareVersion() {
|
||||
return this.softwareVersion;
|
||||
}
|
||||
|
||||
public void setSoftwareVersion(String softwareVersion) {
|
||||
this.softwareVersion = softwareVersion;
|
||||
}
|
||||
|
||||
public Integer getNetworkType() {
|
||||
return this.networkType;
|
||||
}
|
||||
|
||||
public void setNetworkType(Integer networkType) {
|
||||
this.networkType = networkType;
|
||||
}
|
||||
|
||||
public String getNetworkBlock() {
|
||||
return this.networkBlock;
|
||||
}
|
||||
|
||||
public void setNetworkBlock(String networkBlock) {
|
||||
this.networkBlock = networkBlock;
|
||||
}
|
||||
|
||||
public String getAlgorithmVersion() {
|
||||
return this.algorithmVersion;
|
||||
}
|
||||
|
||||
public void setAlgorithmVersion(String algorithmVersion) {
|
||||
this.algorithmVersion = algorithmVersion;
|
||||
}
|
||||
|
||||
public String getModelVersion() {
|
||||
return this.modelVersion;
|
||||
}
|
||||
|
||||
public void setModelVersion(String modelVersion) {
|
||||
this.modelVersion = modelVersion;
|
||||
}
|
||||
|
||||
public String getFirmwareVersion() {
|
||||
return this.firmwareVersion;
|
||||
}
|
||||
|
||||
public void setFirmwareVersion(String firmwareVersion) {
|
||||
this.firmwareVersion = firmwareVersion;
|
||||
}
|
||||
|
||||
public String getOsVersion() {
|
||||
return this.osVersion;
|
||||
}
|
||||
|
||||
public void setOsVersion(String osVersion) {
|
||||
this.osVersion = osVersion;
|
||||
}
|
||||
|
||||
public String getMac() {
|
||||
return this.mac;
|
||||
}
|
||||
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getSubnetMask() {
|
||||
return this.subnetMask;
|
||||
}
|
||||
|
||||
public void setSubnetMask(String subnetMask) {
|
||||
this.subnetMask = subnetMask;
|
||||
}
|
||||
|
||||
public String getDns() {
|
||||
return this.dns;
|
||||
}
|
||||
|
||||
public void setDns(String dns) {
|
||||
this.dns = dns;
|
||||
}
|
||||
|
||||
public String getGateway() {
|
||||
return this.gateway;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getSimBlock() {
|
||||
return this.simBlock;
|
||||
}
|
||||
|
||||
public void setSimBlock(String simBlock) {
|
||||
this.simBlock = simBlock;
|
||||
}
|
||||
|
||||
public Map<String, String> getDeviceAttrs() {
|
||||
return this.deviceAttrs;
|
||||
}
|
||||
|
||||
public void setDeviceAttrs(Map<String, String> deviceAttrs) {
|
||||
this.deviceAttrs = deviceAttrs;
|
||||
}
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import cn.cloudwalk.common.device.bean.device.dto.DeviceAttrEditDTO;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceInfoUploadDTO implements Serializable {
|
||||
private static final long serialVersionUID = -1953910941391342686L;
|
||||
private String deviceId;
|
||||
private String deviceTypeId;
|
||||
private String appVersion;
|
||||
private String osVersion;
|
||||
private String firmwareVersion;
|
||||
private List<VersionDataDTO> versionData;
|
||||
private List<NetworkDataDTO> networkData;
|
||||
private String userId;
|
||||
private Long currentTime;
|
||||
private String deviceName;
|
||||
private List<DeviceAttrEditDTO> deviceAttrEditDTOS;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return this.appVersion;
|
||||
}
|
||||
|
||||
public String getOsVersion() {
|
||||
return this.osVersion;
|
||||
}
|
||||
|
||||
public void setOsVersion(String osVersion) {
|
||||
this.osVersion = osVersion;
|
||||
}
|
||||
|
||||
public String getFirmwareVersion() {
|
||||
return this.firmwareVersion;
|
||||
}
|
||||
|
||||
public void setFirmwareVersion(String firmwareVersion) {
|
||||
this.firmwareVersion = firmwareVersion;
|
||||
}
|
||||
|
||||
public List<NetworkDataDTO> getNetworkData() {
|
||||
return this.networkData;
|
||||
}
|
||||
|
||||
public void setNetworkData(List<NetworkDataDTO> networkData) {
|
||||
this.networkData = networkData;
|
||||
}
|
||||
|
||||
public List<VersionDataDTO> getVersionData() {
|
||||
return this.versionData;
|
||||
}
|
||||
|
||||
public void setVersionData(List<VersionDataDTO> versionData) {
|
||||
this.versionData = versionData;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getCurrentTime() {
|
||||
return this.currentTime;
|
||||
}
|
||||
|
||||
public void setCurrentTime(Long currentTime) {
|
||||
this.currentTime = currentTime;
|
||||
}
|
||||
|
||||
public List<DeviceAttrEditDTO> getDeviceAttrEditDTOS() {
|
||||
return this.deviceAttrEditDTOS;
|
||||
}
|
||||
|
||||
public void setDeviceAttrEditDTOS(List<DeviceAttrEditDTO> deviceAttrEditDTOS) {
|
||||
this.deviceAttrEditDTOS = deviceAttrEditDTOS;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceRecognitionResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = 7766779808608180116L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Float thresholdOf1vN;
|
||||
private Float thresholdOf1v1;
|
||||
private Integer minFaceSize;
|
||||
private Float qualityScore;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Float getThresholdOf1vN() {
|
||||
return this.thresholdOf1vN;
|
||||
}
|
||||
|
||||
public void setThresholdOf1vN(Float thresholdOf1vN) {
|
||||
this.thresholdOf1vN = thresholdOf1vN;
|
||||
}
|
||||
|
||||
public Float getThresholdOf1v1() {
|
||||
return this.thresholdOf1v1;
|
||||
}
|
||||
|
||||
public void setThresholdOf1v1(Float thresholdOf1v1) {
|
||||
this.thresholdOf1v1 = thresholdOf1v1;
|
||||
}
|
||||
|
||||
public Integer getMinFaceSize() {
|
||||
return this.minFaceSize;
|
||||
}
|
||||
|
||||
public void setMinFaceSize(Integer minFaceSize) {
|
||||
this.minFaceSize = minFaceSize;
|
||||
}
|
||||
|
||||
public Float getQualityScore() {
|
||||
return this.qualityScore;
|
||||
}
|
||||
|
||||
public void setQualityScore(Float qualityScore) {
|
||||
this.qualityScore = qualityScore;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceRunningInfoResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = 8201741287337759412L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Float cpuUsage;
|
||||
private Float memoryUsage;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Float getCpuUsage() {
|
||||
return this.cpuUsage;
|
||||
}
|
||||
|
||||
public void setCpuUsage(Float cpuUsage) {
|
||||
this.cpuUsage = cpuUsage;
|
||||
}
|
||||
|
||||
public Float getMemoryUsage() {
|
||||
return this.memoryUsage;
|
||||
}
|
||||
|
||||
public void setMemoryUsage(Float memoryUsage) {
|
||||
this.memoryUsage = memoryUsage;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class EntranceGuardResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1060407061132042647L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Integer openInterval;
|
||||
private Integer switchModel;
|
||||
|
||||
public Integer getOpenInterval() {
|
||||
return this.openInterval;
|
||||
}
|
||||
|
||||
public void setOpenInterval(Integer openInterval) {
|
||||
this.openInterval = openInterval;
|
||||
}
|
||||
|
||||
public Integer getSwitchModel() {
|
||||
return this.switchModel;
|
||||
}
|
||||
|
||||
public void setSwitchModel(Integer switchModel) {
|
||||
this.switchModel = switchModel;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ExtendsResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = -5361189601157927490L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Integer panoramaSwitch;
|
||||
private Integer linkageVideoSwitch;
|
||||
private Integer linkageVideoAlarmInputSwitch;
|
||||
private Integer linkageVideoBitRate;
|
||||
private Integer preventAttacksSwitch;
|
||||
private Integer openLightThreshold;
|
||||
private Integer closeLightThreshold;
|
||||
private Integer subCameraSwitch;
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Integer getPanoramaSwitch() {
|
||||
return this.panoramaSwitch;
|
||||
}
|
||||
|
||||
public void setPanoramaSwitch(Integer panoramaSwitch) {
|
||||
this.panoramaSwitch = panoramaSwitch;
|
||||
}
|
||||
|
||||
public Integer getLinkageVideoSwitch() {
|
||||
return this.linkageVideoSwitch;
|
||||
}
|
||||
|
||||
public void setLinkageVideoSwitch(Integer linkageVideoSwitch) {
|
||||
this.linkageVideoSwitch = linkageVideoSwitch;
|
||||
}
|
||||
|
||||
public Integer getLinkageVideoAlarmInputSwitch() {
|
||||
return this.linkageVideoAlarmInputSwitch;
|
||||
}
|
||||
|
||||
public void setLinkageVideoAlarmInputSwitch(Integer linkageVideoAlarmInputSwitch) {
|
||||
this.linkageVideoAlarmInputSwitch = linkageVideoAlarmInputSwitch;
|
||||
}
|
||||
|
||||
public Integer getLinkageVideoBitRate() {
|
||||
return this.linkageVideoBitRate;
|
||||
}
|
||||
|
||||
public void setLinkageVideoBitRate(Integer linkageVideoBitRate) {
|
||||
this.linkageVideoBitRate = linkageVideoBitRate;
|
||||
}
|
||||
|
||||
public Integer getPreventAttacksSwitch() {
|
||||
return this.preventAttacksSwitch;
|
||||
}
|
||||
|
||||
public void setPreventAttacksSwitch(Integer preventAttacksSwitch) {
|
||||
this.preventAttacksSwitch = preventAttacksSwitch;
|
||||
}
|
||||
|
||||
public Integer getOpenLightThreshold() {
|
||||
return this.openLightThreshold;
|
||||
}
|
||||
|
||||
public void setOpenLightThreshold(Integer openLightThreshold) {
|
||||
this.openLightThreshold = openLightThreshold;
|
||||
}
|
||||
|
||||
public Integer getCloseLightThreshold() {
|
||||
return this.closeLightThreshold;
|
||||
}
|
||||
|
||||
public void setCloseLightThreshold(Integer closeLightThreshold) {
|
||||
this.closeLightThreshold = closeLightThreshold;
|
||||
}
|
||||
|
||||
public Integer getSubCameraSwitch() {
|
||||
return this.subCameraSwitch;
|
||||
}
|
||||
|
||||
public void setSubCameraSwitch(Integer subCameraSwitch) {
|
||||
this.subCameraSwitch = subCameraSwitch;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class NetworkDataDTO implements Serializable {
|
||||
private static final long serialVersionUID = -4270873297380849893L;
|
||||
private Integer networkType;
|
||||
private String networkBlock;
|
||||
private String mac;
|
||||
private String ip;
|
||||
private String subnetMask;
|
||||
private String gateway;
|
||||
private String dns;
|
||||
private String simBlock;
|
||||
|
||||
public Integer getNetworkType() {
|
||||
return this.networkType;
|
||||
}
|
||||
|
||||
public void setNetworkType(Integer networkType) {
|
||||
this.networkType = networkType;
|
||||
}
|
||||
|
||||
public String getNetworkBlock() {
|
||||
return this.networkBlock;
|
||||
}
|
||||
|
||||
public void setNetworkBlock(String networkBlock) {
|
||||
this.networkBlock = networkBlock;
|
||||
}
|
||||
|
||||
public String getMac() {
|
||||
return this.mac;
|
||||
}
|
||||
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getSubnetMask() {
|
||||
return this.subnetMask;
|
||||
}
|
||||
|
||||
public void setSubnetMask(String subnetMask) {
|
||||
this.subnetMask = subnetMask;
|
||||
}
|
||||
|
||||
public String getGateway() {
|
||||
return this.gateway;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getDns() {
|
||||
return this.dns;
|
||||
}
|
||||
|
||||
public void setDns(String dns) {
|
||||
this.dns = dns;
|
||||
}
|
||||
|
||||
public String getSimBlock() {
|
||||
return this.simBlock;
|
||||
}
|
||||
|
||||
public void setSimBlock(String simBlock) {
|
||||
this.simBlock = simBlock;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class OceanDeviceUpgradeConfigDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -6748187171256969226L;
|
||||
private String deviceTypeId;
|
||||
private String timeLimit;
|
||||
private Integer netLimit;
|
||||
private String remark;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getTimeLimit() {
|
||||
return this.timeLimit;
|
||||
}
|
||||
|
||||
public void setTimeLimit(String timeLimit) {
|
||||
this.timeLimit = timeLimit;
|
||||
}
|
||||
|
||||
public Integer getNetLimit() {
|
||||
return this.netLimit;
|
||||
}
|
||||
|
||||
public void setNetLimit(Integer netLimit) {
|
||||
this.netLimit = netLimit;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class OceanDeviceUpgradeDTO implements Serializable {
|
||||
private static final long serialVersionUID = -6936377827931036302L;
|
||||
private List<String> deviceIds;
|
||||
private String version;
|
||||
private String downloadUrl;
|
||||
private Integer updateType;
|
||||
private Long packageSize;
|
||||
private String userId;
|
||||
private Long createTime;
|
||||
private String remark;
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Long getPackageSize() {
|
||||
return this.packageSize;
|
||||
}
|
||||
|
||||
public void setPackageSize(Long packageSize) {
|
||||
this.packageSize = packageSize;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return this.version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Integer getUpdateType() {
|
||||
return this.updateType;
|
||||
}
|
||||
|
||||
public void setUpdateType(Integer updateType) {
|
||||
this.updateType = updateType;
|
||||
}
|
||||
|
||||
public String getDownloadUrl() {
|
||||
return this.downloadUrl;
|
||||
}
|
||||
|
||||
public void setDownloadUrl(String downloadUrl) {
|
||||
this.downloadUrl = downloadUrl;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class OceanDeviceUpgradeLogDTO extends CloudwalkBaseTimes implements Serializable {
|
||||
private static final long serialVersionUID = 7512308779995784680L;
|
||||
private String deviceId;
|
||||
private String deviceTypeId;
|
||||
private Long downloadBeginTime;
|
||||
private Long upgradeFinishTime;
|
||||
private Integer versionType;
|
||||
private String version;
|
||||
private Integer packageSize;
|
||||
private String upgradeCode;
|
||||
private String upgradeMessage;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return this.version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getUpgradeCode() {
|
||||
return this.upgradeCode;
|
||||
}
|
||||
|
||||
public void setUpgradeCode(String upgradeCode) {
|
||||
this.upgradeCode = upgradeCode;
|
||||
}
|
||||
|
||||
public String getUpgradeMessage() {
|
||||
return this.upgradeMessage;
|
||||
}
|
||||
|
||||
public void setUpgradeMessage(String upgradeMessage) {
|
||||
this.upgradeMessage = upgradeMessage;
|
||||
}
|
||||
|
||||
public Long getDownloadBeginTime() {
|
||||
return this.downloadBeginTime;
|
||||
}
|
||||
|
||||
public void setDownloadBeginTime(Long downloadBeginTime) {
|
||||
this.downloadBeginTime = downloadBeginTime;
|
||||
}
|
||||
|
||||
public Long getUpgradeFinishTime() {
|
||||
return this.upgradeFinishTime;
|
||||
}
|
||||
|
||||
public void setUpgradeFinishTime(Long upgradeFinishTime) {
|
||||
this.upgradeFinishTime = upgradeFinishTime;
|
||||
}
|
||||
|
||||
public Integer getPackageSize() {
|
||||
return this.packageSize;
|
||||
}
|
||||
|
||||
public void setPackageSize(Integer packageSize) {
|
||||
this.packageSize = packageSize;
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VersionDataDTO implements Serializable {
|
||||
private static final long serialVersionUID = -3852513152113413905L;
|
||||
private Integer modelType;
|
||||
private Integer modelIndex;
|
||||
private String modelVersion;
|
||||
|
||||
public Integer getModelType() {
|
||||
return this.modelType;
|
||||
}
|
||||
|
||||
public void setModelType(Integer modelType) {
|
||||
this.modelType = modelType;
|
||||
}
|
||||
|
||||
public Integer getModelIndex() {
|
||||
return this.modelIndex;
|
||||
}
|
||||
|
||||
public void setModelIndex(Integer modelIndex) {
|
||||
this.modelIndex = modelIndex;
|
||||
}
|
||||
|
||||
public String getModelVersion() {
|
||||
return this.modelVersion;
|
||||
}
|
||||
|
||||
public void setModelVersion(String modelVersion) {
|
||||
this.modelVersion = modelVersion;
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package cn.cloudwalk.common.device.bean.ocean.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VolumeResultDTO implements Serializable {
|
||||
private static final long serialVersionUID = 158957093802465975L;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private Integer volume;
|
||||
private Integer successSound;
|
||||
private Integer failSound;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return this.deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getVolume() {
|
||||
return this.volume;
|
||||
}
|
||||
|
||||
public void setVolume(Integer volume) {
|
||||
this.volume = volume;
|
||||
}
|
||||
|
||||
public Integer getSuccessSound() {
|
||||
return this.successSound;
|
||||
}
|
||||
|
||||
public void setSuccessSound(Integer successSound) {
|
||||
this.successSound = successSound;
|
||||
}
|
||||
|
||||
public Integer getFailSound() {
|
||||
return this.failSound;
|
||||
}
|
||||
|
||||
public void setFailSound(Integer failSound) {
|
||||
this.failSound = failSound;
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceUpgradeConfDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = -4416544335014356686L;
|
||||
private List<String> ids;
|
||||
private String deviceTypeId;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeConfEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -7296766479957095662L;
|
||||
private String deviceTypeId;
|
||||
private String timeLimit;
|
||||
private Integer netLimit;
|
||||
private Integer status;
|
||||
private String remark;
|
||||
private String name;
|
||||
private Long endTime;
|
||||
private String upgradeId;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getTimeLimit() {
|
||||
return this.timeLimit;
|
||||
}
|
||||
|
||||
public void setTimeLimit(String timeLimit) {
|
||||
this.timeLimit = timeLimit;
|
||||
}
|
||||
|
||||
public Integer getNetLimit() {
|
||||
return this.netLimit;
|
||||
}
|
||||
|
||||
public void setNetLimit(Integer netLimit) {
|
||||
this.netLimit = netLimit;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getUpgradeId() {
|
||||
return this.upgradeId;
|
||||
}
|
||||
|
||||
public void setUpgradeId(String upgradeId) {
|
||||
this.upgradeId = upgradeId;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceUpgradeConfGetsDTO implements Serializable {
|
||||
private static final long serialVersionUID = -3489874771160642749L;
|
||||
private String deviceTypeId;
|
||||
private String upgradeId;
|
||||
private List<String> ids;
|
||||
|
||||
public DeviceUpgradeConfGetsDTO() {
|
||||
}
|
||||
|
||||
public DeviceUpgradeConfGetsDTO(String deviceTypeId) {
|
||||
setDeviceTypeId(deviceTypeId);
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getUpgradeId() {
|
||||
return this.upgradeId;
|
||||
}
|
||||
|
||||
public void setUpgradeId(String upgradeId) {
|
||||
this.upgradeId = upgradeId;
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBasePeriod;
|
||||
|
||||
public class DeviceUpgradeConfQueryDTO extends CloudwalkBasePeriod {
|
||||
private static final long serialVersionUID = 267511602868594511L;
|
||||
private Integer status;
|
||||
private String deviceTypeId;
|
||||
private String name;
|
||||
private Long endTime;
|
||||
private String upgradeId;
|
||||
private String remark;
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getUpgradeId() {
|
||||
return this.upgradeId;
|
||||
}
|
||||
|
||||
public void setUpgradeId(String upgradeId) {
|
||||
this.upgradeId = upgradeId;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeConfResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -5754263044764274801L;
|
||||
private String deviceTypeId;
|
||||
private String timeLimit;
|
||||
private Integer netLimit;
|
||||
private Integer status;
|
||||
private String remark;
|
||||
private String name;
|
||||
private Long endTime;
|
||||
private String upgradeId;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getTimeLimit() {
|
||||
return this.timeLimit;
|
||||
}
|
||||
|
||||
public void setTimeLimit(String timeLimit) {
|
||||
this.timeLimit = timeLimit;
|
||||
}
|
||||
|
||||
public Integer getNetLimit() {
|
||||
return this.netLimit;
|
||||
}
|
||||
|
||||
public void setNetLimit(Integer netLimit) {
|
||||
this.netLimit = netLimit;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return -5754263044764274801L;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getUpgradeId() {
|
||||
return this.upgradeId;
|
||||
}
|
||||
|
||||
public void setUpgradeId(String upgradeId) {
|
||||
this.upgradeId = upgradeId;
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceUpgradeDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = 2398216105610822383L;
|
||||
private List<String> ids;
|
||||
private String currentVersion;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
return this.currentVersion;
|
||||
}
|
||||
|
||||
public void setCurrentVersion(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -1177727479066760378L;
|
||||
private String deviceTypeId;
|
||||
private String previousVersion;
|
||||
private String currentVersion;
|
||||
private Integer versionType;
|
||||
private Integer upgradeType;
|
||||
private String fullPkgUrl;
|
||||
private Integer fullPkgLength;
|
||||
private String fullPkgMd5;
|
||||
private String appendPkgUrl;
|
||||
private Integer appendPkgLength;
|
||||
private String appendPkgMd5;
|
||||
private Integer status;
|
||||
private String remark;
|
||||
private String name;
|
||||
private Integer packageType;
|
||||
private String modelVersion;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getPreviousVersion() {
|
||||
return this.previousVersion;
|
||||
}
|
||||
|
||||
public void setPreviousVersion(String previousVersion) {
|
||||
this.previousVersion = previousVersion;
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
return this.currentVersion;
|
||||
}
|
||||
|
||||
public void setCurrentVersion(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public Integer getUpgradeType() {
|
||||
return this.upgradeType;
|
||||
}
|
||||
|
||||
public void setUpgradeType(Integer upgradeType) {
|
||||
this.upgradeType = upgradeType;
|
||||
}
|
||||
|
||||
public String getFullPkgUrl() {
|
||||
return this.fullPkgUrl;
|
||||
}
|
||||
|
||||
public void setFullPkgUrl(String fullPkgUrl) {
|
||||
this.fullPkgUrl = fullPkgUrl;
|
||||
}
|
||||
|
||||
public Integer getFullPkgLength() {
|
||||
return this.fullPkgLength;
|
||||
}
|
||||
|
||||
public void setFullPkgLength(Integer fullPkgLength) {
|
||||
this.fullPkgLength = fullPkgLength;
|
||||
}
|
||||
|
||||
public String getFullPkgMd5() {
|
||||
return this.fullPkgMd5;
|
||||
}
|
||||
|
||||
public void setFullPkgMd5(String fullPkgMd5) {
|
||||
this.fullPkgMd5 = fullPkgMd5;
|
||||
}
|
||||
|
||||
public String getAppendPkgUrl() {
|
||||
return this.appendPkgUrl;
|
||||
}
|
||||
|
||||
public void setAppendPkgUrl(String appendPkgUrl) {
|
||||
this.appendPkgUrl = appendPkgUrl;
|
||||
}
|
||||
|
||||
public Integer getAppendPkgLength() {
|
||||
return this.appendPkgLength;
|
||||
}
|
||||
|
||||
public void setAppendPkgLength(Integer appendPkgLength) {
|
||||
this.appendPkgLength = appendPkgLength;
|
||||
}
|
||||
|
||||
public String getAppendPkgMd5() {
|
||||
return this.appendPkgMd5;
|
||||
}
|
||||
|
||||
public void setAppendPkgMd5(String appendPkgMd5) {
|
||||
this.appendPkgMd5 = appendPkgMd5;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getModelVersion() {
|
||||
return this.modelVersion;
|
||||
}
|
||||
|
||||
public void setModelVersion(String modelVersion) {
|
||||
this.modelVersion = modelVersion;
|
||||
}
|
||||
}
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceUpgradeGetsDTO implements Serializable {
|
||||
private static final long serialVersionUID = -6995233328095151965L;
|
||||
private List<String> ids;
|
||||
private String deviceTypeId;
|
||||
private String currentVersion;
|
||||
private String previousVersion;
|
||||
private String name;
|
||||
private Integer packageType;
|
||||
private String modelVersion;
|
||||
|
||||
public DeviceUpgradeGetsDTO() {
|
||||
}
|
||||
|
||||
public DeviceUpgradeGetsDTO(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
return this.currentVersion;
|
||||
}
|
||||
|
||||
public void setCurrentVersion(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
|
||||
public String getPreviousVersion() {
|
||||
return this.previousVersion;
|
||||
}
|
||||
|
||||
public void setPreviousVersion(String previousVersion) {
|
||||
this.previousVersion = previousVersion;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getModelVersion() {
|
||||
return this.modelVersion;
|
||||
}
|
||||
|
||||
public void setModelVersion(String modelVersion) {
|
||||
this.modelVersion = modelVersion;
|
||||
}
|
||||
}
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeQueryDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 2183893960573881657L;
|
||||
private String deviceTypeId;
|
||||
private String previousVersion;
|
||||
private String currentVersion;
|
||||
private Integer versionType;
|
||||
private Integer upgradeType;
|
||||
private Integer status;
|
||||
private String name;
|
||||
private Integer packageType;
|
||||
private String modelVersion;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getPreviousVersion() {
|
||||
return this.previousVersion;
|
||||
}
|
||||
|
||||
public void setPreviousVersion(String previousVersion) {
|
||||
this.previousVersion = previousVersion;
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
return this.currentVersion;
|
||||
}
|
||||
|
||||
public void setCurrentVersion(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public Integer getUpgradeType() {
|
||||
return this.upgradeType;
|
||||
}
|
||||
|
||||
public void setUpgradeType(Integer upgradeType) {
|
||||
this.upgradeType = upgradeType;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getModelVersion() {
|
||||
return this.modelVersion;
|
||||
}
|
||||
|
||||
public void setModelVersion(String modelVersion) {
|
||||
this.modelVersion = modelVersion;
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -1145134295579715029L;
|
||||
private String deviceTypeId;
|
||||
private String previousVersion;
|
||||
private String currentVersion;
|
||||
private Integer versionType;
|
||||
private Integer upgradeType;
|
||||
private String fullPkgUrl;
|
||||
private Integer fullPkgLength;
|
||||
private String fullPkgMd5;
|
||||
private String appendPkgUrl;
|
||||
private Integer appendPkgLength;
|
||||
private String appendPkgMd5;
|
||||
private Integer status;
|
||||
private String remark;
|
||||
private String name;
|
||||
private Integer packageType;
|
||||
private String modelVersion;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getPreviousVersion() {
|
||||
return this.previousVersion;
|
||||
}
|
||||
|
||||
public void setPreviousVersion(String previousVersion) {
|
||||
this.previousVersion = previousVersion;
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
return this.currentVersion;
|
||||
}
|
||||
|
||||
public void setCurrentVersion(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public Integer getUpgradeType() {
|
||||
return this.upgradeType;
|
||||
}
|
||||
|
||||
public void setUpgradeType(Integer upgradeType) {
|
||||
this.upgradeType = upgradeType;
|
||||
}
|
||||
|
||||
public String getFullPkgUrl() {
|
||||
return this.fullPkgUrl;
|
||||
}
|
||||
|
||||
public void setFullPkgUrl(String fullPkgUrl) {
|
||||
this.fullPkgUrl = fullPkgUrl;
|
||||
}
|
||||
|
||||
public Integer getFullPkgLength() {
|
||||
return this.fullPkgLength;
|
||||
}
|
||||
|
||||
public void setFullPkgLength(Integer fullPkgLength) {
|
||||
this.fullPkgLength = fullPkgLength;
|
||||
}
|
||||
|
||||
public String getFullPkgMd5() {
|
||||
return this.fullPkgMd5;
|
||||
}
|
||||
|
||||
public void setFullPkgMd5(String fullPkgMd5) {
|
||||
this.fullPkgMd5 = fullPkgMd5;
|
||||
}
|
||||
|
||||
public String getAppendPkgUrl() {
|
||||
return this.appendPkgUrl;
|
||||
}
|
||||
|
||||
public void setAppendPkgUrl(String appendPkgUrl) {
|
||||
this.appendPkgUrl = appendPkgUrl;
|
||||
}
|
||||
|
||||
public Integer getAppendPkgLength() {
|
||||
return this.appendPkgLength;
|
||||
}
|
||||
|
||||
public void setAppendPkgLength(Integer appendPkgLength) {
|
||||
this.appendPkgLength = appendPkgLength;
|
||||
}
|
||||
|
||||
public String getAppendPkgMd5() {
|
||||
return this.appendPkgMd5;
|
||||
}
|
||||
|
||||
public void setAppendPkgMd5(String appendPkgMd5) {
|
||||
this.appendPkgMd5 = appendPkgMd5;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getModelVersion() {
|
||||
return this.modelVersion;
|
||||
}
|
||||
|
||||
public void setModelVersion(String modelVersion) {
|
||||
this.modelVersion = modelVersion;
|
||||
}
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceUpgradeRevertDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = 4619505782651590689L;
|
||||
private List<String> ids;
|
||||
private String deviceTypeId;
|
||||
private Integer packageType;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String upgradeConfId;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getUpgradeConfId() {
|
||||
return this.upgradeConfId;
|
||||
}
|
||||
|
||||
public void setUpgradeConfId(String upgradeConfId) {
|
||||
this.upgradeConfId = upgradeConfId;
|
||||
}
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeRevertEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -8346334547356331042L;
|
||||
private String deviceId;
|
||||
private String deviceTypeId;
|
||||
private String deviceCode;
|
||||
private Integer packageType;
|
||||
private Long dowloadBeginTime;
|
||||
private Long upgradeFinishTime;
|
||||
private Integer versionType;
|
||||
private String currVersion;
|
||||
private String prevVersion;
|
||||
private String upgradeCode;
|
||||
private String upgradeMessage;
|
||||
private String upgradeConfId;
|
||||
private Integer status;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public Long getDowloadBeginTime() {
|
||||
return this.dowloadBeginTime;
|
||||
}
|
||||
|
||||
public void setDowloadBeginTime(Long dowloadBeginTime) {
|
||||
this.dowloadBeginTime = dowloadBeginTime;
|
||||
}
|
||||
|
||||
public Long getUpgradeFinishTime() {
|
||||
return this.upgradeFinishTime;
|
||||
}
|
||||
|
||||
public void setUpgradeFinishTime(Long upgradeFinishTime) {
|
||||
this.upgradeFinishTime = upgradeFinishTime;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public String getCurrVersion() {
|
||||
return this.currVersion;
|
||||
}
|
||||
|
||||
public void setCurrVersion(String currVersion) {
|
||||
this.currVersion = currVersion;
|
||||
}
|
||||
|
||||
public String getPrevVersion() {
|
||||
return this.prevVersion;
|
||||
}
|
||||
|
||||
public void setPrevVersion(String prevVersion) {
|
||||
this.prevVersion = prevVersion;
|
||||
}
|
||||
|
||||
public String getUpgradeCode() {
|
||||
return this.upgradeCode;
|
||||
}
|
||||
|
||||
public void setUpgradeCode(String upgradeCode) {
|
||||
this.upgradeCode = upgradeCode;
|
||||
}
|
||||
|
||||
public String getUpgradeMessage() {
|
||||
return this.upgradeMessage;
|
||||
}
|
||||
|
||||
public void setUpgradeMessage(String upgradeMessage) {
|
||||
this.upgradeMessage = upgradeMessage;
|
||||
}
|
||||
|
||||
public String getUpgradeConfId() {
|
||||
return this.upgradeConfId;
|
||||
}
|
||||
|
||||
public void setUpgradeConfId(String upgradeConfId) {
|
||||
this.upgradeConfId = upgradeConfId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceUpgradeRevertGetsDTO implements Serializable {
|
||||
private static final long serialVersionUID = -7284894053289050460L;
|
||||
private List<String> ids;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Integer packageType;
|
||||
private String deviceTypeId;
|
||||
private String upgradeConfId;
|
||||
private Integer status;
|
||||
private String prevVersion;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getUpgradeConfId() {
|
||||
return this.upgradeConfId;
|
||||
}
|
||||
|
||||
public void setUpgradeConfId(String upgradeConfId) {
|
||||
this.upgradeConfId = upgradeConfId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getPrevVersion() {
|
||||
return this.prevVersion;
|
||||
}
|
||||
|
||||
public void setPrevVersion(String prevVersion) {
|
||||
this.prevVersion = prevVersion;
|
||||
}
|
||||
}
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceUpgradeRevertQueryDTO implements Serializable {
|
||||
private static final long serialVersionUID = -1608782363317388371L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private Integer packageType;
|
||||
private String deviceTypeId;
|
||||
private String deviceCode;
|
||||
private String upgradeCode;
|
||||
private Integer versionType;
|
||||
private String currVersion;
|
||||
private String upgradeConfId;
|
||||
private Integer status;
|
||||
private String prevVersion;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getUpgradeCode() {
|
||||
return this.upgradeCode;
|
||||
}
|
||||
|
||||
public void setUpgradeCode(String upgradeCode) {
|
||||
this.upgradeCode = upgradeCode;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public String getCurrVersion() {
|
||||
return this.currVersion;
|
||||
}
|
||||
|
||||
public void setCurrVersion(String currVersion) {
|
||||
this.currVersion = currVersion;
|
||||
}
|
||||
|
||||
public String getUpgradeConfId() {
|
||||
return this.upgradeConfId;
|
||||
}
|
||||
|
||||
public void setUpgradeConfId(String upgradeConfId) {
|
||||
this.upgradeConfId = upgradeConfId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getPrevVersion() {
|
||||
return this.prevVersion;
|
||||
}
|
||||
|
||||
public void setPrevVersion(String prevVersion) {
|
||||
this.prevVersion = prevVersion;
|
||||
}
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceUpgradeRevertResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -3189452525168693376L;
|
||||
private String deviceId;
|
||||
private String deviceTypeId;
|
||||
private String deviceCode;
|
||||
private Integer packageType;
|
||||
private Long dowloadBeginTime;
|
||||
private Long upgradeFinishTime;
|
||||
private Integer versionType;
|
||||
private String currVersion;
|
||||
private String prevVersion;
|
||||
private String upgradeCode;
|
||||
private String upgradeMessage;
|
||||
private String upgradeConfId;
|
||||
private Integer status;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getPackageType() {
|
||||
return this.packageType;
|
||||
}
|
||||
|
||||
public void setPackageType(Integer packageType) {
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public Long getDowloadBeginTime() {
|
||||
return this.dowloadBeginTime;
|
||||
}
|
||||
|
||||
public void setDowloadBeginTime(Long dowloadBeginTime) {
|
||||
this.dowloadBeginTime = dowloadBeginTime;
|
||||
}
|
||||
|
||||
public Long getUpgradeFinishTime() {
|
||||
return this.upgradeFinishTime;
|
||||
}
|
||||
|
||||
public void setUpgradeFinishTime(Long upgradeFinishTime) {
|
||||
this.upgradeFinishTime = upgradeFinishTime;
|
||||
}
|
||||
|
||||
public Integer getVersionType() {
|
||||
return this.versionType;
|
||||
}
|
||||
|
||||
public void setVersionType(Integer versionType) {
|
||||
this.versionType = versionType;
|
||||
}
|
||||
|
||||
public String getCurrVersion() {
|
||||
return this.currVersion;
|
||||
}
|
||||
|
||||
public void setCurrVersion(String currVersion) {
|
||||
this.currVersion = currVersion;
|
||||
}
|
||||
|
||||
public String getPrevVersion() {
|
||||
return this.prevVersion;
|
||||
}
|
||||
|
||||
public void setPrevVersion(String prevVersion) {
|
||||
this.prevVersion = prevVersion;
|
||||
}
|
||||
|
||||
public String getUpgradeCode() {
|
||||
return this.upgradeCode;
|
||||
}
|
||||
|
||||
public void setUpgradeCode(String upgradeCode) {
|
||||
this.upgradeCode = upgradeCode;
|
||||
}
|
||||
|
||||
public String getUpgradeMessage() {
|
||||
return this.upgradeMessage;
|
||||
}
|
||||
|
||||
public void setUpgradeMessage(String upgradeMessage) {
|
||||
this.upgradeMessage = upgradeMessage;
|
||||
}
|
||||
|
||||
public String getUpgradeConfId() {
|
||||
return this.upgradeConfId;
|
||||
}
|
||||
|
||||
public void setUpgradeConfId(String upgradeConfId) {
|
||||
this.upgradeConfId = upgradeConfId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.common.device.bean.pkg.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class EdgeUpgradeQueryDTO implements Serializable {
|
||||
private static final long serialVersionUID = -688166171103870549L;
|
||||
private String deviceTypeId;
|
||||
private String previousVersion;
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getPreviousVersion() {
|
||||
return this.previousVersion;
|
||||
}
|
||||
|
||||
public void setPreviousVersion(String previousVersion) {
|
||||
this.previousVersion = previousVersion;
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package cn.cloudwalk.common.device.bean.position.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DevicePositionDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -2693850275949011303L;
|
||||
private String logId;
|
||||
private String deviceCode;
|
||||
private Long lastPositionTime;
|
||||
private String latitude;
|
||||
private String longitude;
|
||||
private String altitude;
|
||||
|
||||
public String getLogId() {
|
||||
return this.logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Long getLastPositionTime() {
|
||||
return this.lastPositionTime;
|
||||
}
|
||||
|
||||
public void setLastPositionTime(Long lastPositionTime) {
|
||||
this.lastPositionTime = lastPositionTime;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return this.latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return this.longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getAltitude() {
|
||||
return this.altitude;
|
||||
}
|
||||
|
||||
public void setAltitude(String altitude) {
|
||||
this.altitude = altitude;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package cn.cloudwalk.common.device.bean.power.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DevicePowerDeltDTO implements Serializable {
|
||||
private static final long serialVersionUID = 8278056756315506629L;
|
||||
private List<String> ids;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package cn.cloudwalk.common.device.bean.power.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DevicePowerEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -9161906023187076913L;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Integer restartFlag;
|
||||
private Long restartTime;
|
||||
private String reserveInfo;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getRestartFlag() {
|
||||
return this.restartFlag;
|
||||
}
|
||||
|
||||
public void setRestartFlag(Integer restartFlag) {
|
||||
this.restartFlag = restartFlag;
|
||||
}
|
||||
|
||||
public Long getRestartTime() {
|
||||
return this.restartTime;
|
||||
}
|
||||
|
||||
public void setRestartTime(Long restartTime) {
|
||||
this.restartTime = restartTime;
|
||||
}
|
||||
|
||||
public String getReserveInfo() {
|
||||
return this.reserveInfo;
|
||||
}
|
||||
|
||||
public void setReserveInfo(String reserveInfo) {
|
||||
this.reserveInfo = reserveInfo;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package cn.cloudwalk.common.device.bean.power.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DevicePowerGetsDTO implements Serializable {
|
||||
private static final long serialVersionUID = 5242382030233665743L;
|
||||
private List<String> ids;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.common.device.bean.power.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBasePeriod;
|
||||
|
||||
public class DevicePowerQueryDTO extends CloudwalkBasePeriod {
|
||||
private static final long serialVersionUID = -8246826216959001790L;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package cn.cloudwalk.common.device.bean.power.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DevicePowerResultDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = -4924946521614510024L;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Integer restartFlag;
|
||||
private Long restartTime;
|
||||
private String reserveInfo;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getRestartFlag() {
|
||||
return this.restartFlag;
|
||||
}
|
||||
|
||||
public void setRestartFlag(Integer restartFlag) {
|
||||
this.restartFlag = restartFlag;
|
||||
}
|
||||
|
||||
public Long getRestartTime() {
|
||||
return this.restartTime;
|
||||
}
|
||||
|
||||
public void setRestartTime(Long restartTime) {
|
||||
this.restartTime = restartTime;
|
||||
}
|
||||
|
||||
public String getReserveInfo() {
|
||||
return this.reserveInfo;
|
||||
}
|
||||
|
||||
public void setReserveInfo(String reserveInfo) {
|
||||
this.reserveInfo = reserveInfo;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.common.device.bean.power.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceRestartQueryDTO implements Serializable {
|
||||
private static final long serialVersionUID = 4984624529248357086L;
|
||||
private String deviceCode;
|
||||
private Long restartTime;
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Long getRestartTime() {
|
||||
return this.restartTime;
|
||||
}
|
||||
|
||||
public void setRestartTime(Long restartTime) {
|
||||
this.restartTime = restartTime;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package cn.cloudwalk.common.device.bean.sdk.dto;
|
||||
|
||||
public class DeviceNetworkDeltDTO extends DeviceSdkBasicDTO {
|
||||
private static final long serialVersionUID = 5100353341284761963L;
|
||||
|
||||
public DeviceNetworkDeltDTO() {
|
||||
}
|
||||
|
||||
public DeviceNetworkDeltDTO(String deviceCode) {
|
||||
setDeviceCode(deviceCode);
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package cn.cloudwalk.common.device.bean.sdk.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
|
||||
public class DeviceNetworkEditDTO extends CloudwalkBaseTimes {
|
||||
private static final long serialVersionUID = 2915158166073041367L;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private Integer networkType;
|
||||
private String networkBlock;
|
||||
private String mac;
|
||||
private String ip;
|
||||
private String subnetMask;
|
||||
private String gateWay;
|
||||
private String dns;
|
||||
private String simBlock;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public Integer getNetworkType() {
|
||||
return this.networkType;
|
||||
}
|
||||
|
||||
public void setNetworkType(Integer networkType) {
|
||||
this.networkType = networkType;
|
||||
}
|
||||
|
||||
public String getNetworkBlock() {
|
||||
return this.networkBlock;
|
||||
}
|
||||
|
||||
public void setNetworkBlock(String networkBlock) {
|
||||
this.networkBlock = networkBlock;
|
||||
}
|
||||
|
||||
public String getMac() {
|
||||
return this.mac;
|
||||
}
|
||||
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getSubnetMask() {
|
||||
return this.subnetMask;
|
||||
}
|
||||
|
||||
public void setSubnetMask(String subnetMask) {
|
||||
this.subnetMask = subnetMask;
|
||||
}
|
||||
|
||||
public String getGateWay() {
|
||||
return this.gateWay;
|
||||
}
|
||||
|
||||
public void setGateWay(String gateWay) {
|
||||
this.gateWay = gateWay;
|
||||
}
|
||||
|
||||
public String getDns() {
|
||||
return this.dns;
|
||||
}
|
||||
|
||||
public void setDns(String dns) {
|
||||
this.dns = dns;
|
||||
}
|
||||
|
||||
public String getSimBlock() {
|
||||
return this.simBlock;
|
||||
}
|
||||
|
||||
public void setSimBlock(String simBlock) {
|
||||
this.simBlock = simBlock;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user