Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate class description to english #1641

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.dromara.hertzbeat.manager.support.exception.AlertNoticeException;

/**
*
* AlertNotifyHandler interface
*/
public interface AlertNotifyHandler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@

/**
* 报警持久化
*
* Alarm persistence
*
*/
public interface AlertStoreHandler {

/**
* 持久化报警记录
* 需在持久化的同时对alert的标签信息tags关联赋值
*
* Persistent alarm records
* It is necessary to associate and assign values
* to the alert tag information tags while persisting.
* @param alert 报警
*/
void store(Alert alert);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import java.util.List;

/**
*
* Send alarm information through Discord robot
* Created by gcdd1993 on 2023/1/19
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import java.util.ResourceBundle;

/**
*
* Send alarm information through email
*/
@Component
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import java.util.concurrent.ConcurrentHashMap;

/**
*
* Send alarm information through Huawei CloudSmn
*/
@Component
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* Server酱发送
*
*
* Send alarm information through Server
*/
@Component
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.ResourceBundle;

/**
*
* Send alarm information through Sms
*/
@Component
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import com.google.gson.JsonParser;

/**
*
* Send alarm information through WeChat
*/
final class WeChatAlertNotifyHandlerImpl extends AbstractAlertNotifyHandlerImpl {
private static final Logger log = LoggerFactory.getLogger(WeChatAlertNotifyHandlerImpl.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import java.util.Map;

/**
*
* Send alarm information through WebHookAlter
*/
@Component
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/**
*
*
* SecurityCorsConfiguration class
*/
@Configuration
public class SecurityCorsConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.util.TimeZone;

/**
*
* SystemCommandLineRunner class
* @since 4/7/2023
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@
import org.springframework.stereotype.Component;

/**
* 公共服务端配置Dao
* Public server configuration Dao
* todo common config data cache
* <p>该接口继承了JpaRepository和JpaSpecificationExecutor两个接口,提供基本的CRUD操作和规范查询能力。</p>
*
* <p>This interface inherits the two interfaces JpaRepository and JpaSpecificationExecutor, providing basic CRUD operations and specification query capabilities.</p>
*
*/
@Component
public interface GeneralConfigDao extends JpaRepository<GeneralConfig, Long>, JpaSpecificationExecutor<GeneralConfig> {

/**
* 通过类型查询
* Query by type
*
* @param type 类型
* @return 返回查询到的配置信息
* @return 返回查询到的配置信息 Return the queried configuration information
*/
GeneralConfig findByType(String type);
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

/**
* NoticeRule数据库操作
*
* NoticeRule database operations
*
*/
public interface NoticeRuleDao extends JpaRepository<NoticeRule, Long>, JpaSpecificationExecutor<NoticeRule> {

/**
* 查询所有已启用的通知策略
* @return 通知策略
* Query all enabled notification policies
* @return notification policies
*/
List<NoticeRule> findNoticeRulesByEnableTrue();
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* NoticeTemplate数据库操作
*
* Query all enabled notification policies
*
*/
public interface NoticeTemplateDao extends JpaRepository<NoticeTemplate, Long>, JpaSpecificationExecutor<NoticeTemplate> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/**
* ParamDao 数据库操作
*
* ParamDao database operations
*
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import lombok.NoArgsConstructor;

/**
*
* AppCount class
*
*/
@AllArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* 大屏仪表盘统计信息
*
* Large screen dashboard statistics
*
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* 邮件账号配置dto
*
* Email account configuration dto
*
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* 文件存储
*
* File storage
*
* Created by gcdd1993 on 2023/9/13
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/**
* 文件存储容器
*
* file storage container
*
* Created by gcdd1993 on 2023/9/13
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* 参数定义传输实体
*
* Parameters define transfer entities
*
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/**
* 系统配置
*
* System Configuration
*
* @since 4/7/2023
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/**
* 分配的采集任务列表
*
* List of assigned collection tasks
*/
@Slf4j
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

/**
* 一致性hash实现的采集器与任务映射调度
* Collector and task mapping scheduling implemented by consistent hashing
*
*/
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

/**
* 监控管理服务
*
* Monitoring and management services
*
*/
public interface MonitorService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/**
* 消息通知转发接口
*
* Message notification forwarding interface
*
*/
public interface NoticeDispatchService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/**
* 文件存储服务
*
* File storage service
*
* Created by gcdd1993 on 2023/9/13
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

/**
* 标签服务
*
* tag service
*
*/
public interface TagService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import java.util.Collections;

/**
*
* class AbstractImExportServiceImpl
* Created by gcdd1993 on 2023/3/31
*/
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

/**
* 监控管理服务实现
*
* Monitoring and management service implementation
*
*/
@Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

/**
* 消息通知配置实现
*
* Message notification configuration implementation
*
*/
@Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

/**
* 文件存储配置服务
*
* File storage configuration service
*
* Created by gcdd1993 on 2023/9/13
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

/**
* 华为云存储服务
*
* Huawei cloud storage service
*
* Created by gcdd1993 on 2023/9/13
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/**
* 数据库操作异常
*
* Database operation exception
*
*/
public class MonitorDatabaseException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/**
* 探测失败异常
*
* Detection failure exception
*
*/
public class MonitorDetectException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/**
* 描述:监控指标异常
*
* Description: Abnormal monitoring indicators
*/
public class MonitorMetricsException extends RuntimeException {
public MonitorMetricsException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import java.util.concurrent.TimeUnit;

/**
* warehouse Worker thread pool
*
* warehouse 工作线程池
* warehouse worker thread pool
*
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.springframework.context.annotation.ComponentScan;

/**
* Warehouse Auto Configuration
* WarehouseAutoConfiguration class
* @version 2.1
* Created by Musk.Chen on 2023/1/14
*/
Expand Down
Loading
Loading