docs: Add translations for some entities in PowerJob-common.

This commit is contained in:
jiangjining 2021-01-07 20:35:55 +08:00
parent 36e258012e
commit d5ab77ddbd
7 changed files with 42 additions and 13 deletions

View File

@ -25,7 +25,7 @@ import java.util.Objects;
import static com.github.kfcfans.powerjob.client.TypeStore.*;
/**
* OpenAPI Client.
* OhMyClient, the client for OpenAPI.
*
* @author tjq
* @since 2020/4/15

View File

@ -1,7 +1,7 @@
package com.github.kfcfans.powerjob.common;
/**
* 容器常量
* Container constants.
*
* @author tjq
* @since 2020/5/15
@ -9,13 +9,16 @@ package com.github.kfcfans.powerjob.common;
public class ContainerConstant {
/**
* spring-context 配置文件名称
* Spring-context configuration file name of the container.
*/
public static final String SPRING_CONTEXT_FILE_NAME = "oms-worker-container-spring-context.xml";
/**
* container 属性文件名称
* Property file name of the container.
*/
public static final String CONTAINER_PROPERTIES_FILE_NAME = "oms-worker-container.properties";
/**
* Package name of the container.
*/
public static final String CONTAINER_PACKAGE_NAME_KEY = "PACKAGE_NAME";
}

View File

@ -1,13 +1,22 @@
package com.github.kfcfans.powerjob.common;
/**
* 部署环境
* Environment Enum class.
*
* @author tjq
* @since 2020/5/3
*/
public enum Env {
/**
* Development or test environment.
*/
DAILY,
/**
* Pre-release environment.
*/
PRE,
/**
* Production environment.
*/
PRODUCT
}

View File

@ -4,7 +4,7 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 任务执行类型
* Execution type.
*
* @author tjq
* @since 2020/3/17
@ -12,8 +12,17 @@ import lombok.Getter;
@Getter
@AllArgsConstructor
public enum ExecuteType {
/**
* Standalone type of task.
*/
STANDALONE(1, "单机执行"),
/**
* Broadcast type of task.
*/
BROADCAST(2, "广播执行"),
/**
* MapReduce type of task.
*/
MAP_REDUCE(3, "MapReduce"),
MAP(4, "Map");

View File

@ -1,7 +1,7 @@
package com.github.kfcfans.powerjob.common;
/**
* 公共常量
* Common constants.
*
* @author tjq
* @since 2020/5/31

View File

@ -3,7 +3,7 @@ package com.github.kfcfans.powerjob.common;
import java.io.Serializable;
/**
* PowerJob 序列化标记接口
* PowerJob serializable interface.
*
* @author tjq
* @since 2020/4/16

View File

@ -6,7 +6,7 @@ import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 任务实例日志对象
* Log instance model.
*
* @author tjq
* @since 2020/4/21
@ -16,13 +16,21 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class InstanceLogContent implements OmsSerializable {
// 实例ID
/**
* Id of instance.
*/
private long instanceId;
// 日志提交时间
/**
* Submitted time of the log.
*/
private long logTime;
// 级别
/**
* Level of the log.
*/
private int logLevel;
// 日志内容
/**
* Content of the log.
*/
private String logContent;
}