[*] 结构调整

This commit is contained in:
acgist
2023-02-02 19:43:26 +08:00
parent 1de076ae16
commit d09a9dbc1f
201 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
# 集群
## 实现逻辑
1. 集群启动时加载所有节点,同步节点信息,定时监测节点状态。
2. 设备注册同步设备信息到直连节点,其他信令处理完成以后在发送设备时分发。

View File

@@ -0,0 +1,22 @@
<?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>com.acgist</groupId>
<artifactId>taoyao</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>taoyao-node</artifactId>
<packaging>jar</packaging>
<name>taoyao-node</name>
<description>集群服务:集群服务</description>
<dependencies>
</dependencies>
</project>

View File

@@ -0,0 +1,45 @@
package com.acgist.taoyao.node.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
/**
* 集群自动配置
*
* @author acgist
*/
@Configuration
@ConditionalOnProperty(prefix = "taoyao.node", name = "enabled", havingValue = "true", matchIfMissing = false)
public class NodeAutoConfiguration {
// @Bean
// @ConditionalOnMissingBean
// public MediaPublishListener mediaPublishListener() {
// return new MediaPublishListener();
// }
//
// @Bean
// @ConditionalOnMissingBean
// public MediaSubscribeListener mediaSubscribeListener() {
// return new MediaSubscribeListener();
// }
//
// @Bean
// @ConditionalOnMissingBean
// public MediaOfferListener mediaOfferListener() {
// return new MediaOfferListener();
// }
//
// @Bean
// @ConditionalOnMissingBean
// public MediaAnswerListener mediaAnswerListener() {
// return new MediaAnswerListener();
// }
//
// @Bean
// @ConditionalOnMissingBean
// public MediaCandidateListener mediaCandidateListener() {
// return new MediaCandidateListener();
// }
}

View File

@@ -0,0 +1 @@
com.acgist.taoyao.node.config.NodeAutoConfiguration