mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
docs: Add translations for some entities in PowerJob-common.
This commit is contained in:
parent
36e258012e
commit
d5ab77ddbd
@ -25,7 +25,7 @@ import java.util.Objects;
|
|||||||
import static com.github.kfcfans.powerjob.client.TypeStore.*;
|
import static com.github.kfcfans.powerjob.client.TypeStore.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OpenAPI Client.
|
* OhMyClient, the client for OpenAPI.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/4/15
|
* @since 2020/4/15
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.github.kfcfans.powerjob.common;
|
package com.github.kfcfans.powerjob.common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 容器常量
|
* Container constants.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/5/15
|
* @since 2020/5/15
|
||||||
@ -9,13 +9,16 @@ package com.github.kfcfans.powerjob.common;
|
|||||||
public class ContainerConstant {
|
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";
|
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";
|
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";
|
public static final String CONTAINER_PACKAGE_NAME_KEY = "PACKAGE_NAME";
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,22 @@
|
|||||||
package com.github.kfcfans.powerjob.common;
|
package com.github.kfcfans.powerjob.common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 部署环境
|
* Environment Enum class.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/5/3
|
* @since 2020/5/3
|
||||||
*/
|
*/
|
||||||
public enum Env {
|
public enum Env {
|
||||||
|
/**
|
||||||
|
* Development or test environment.
|
||||||
|
*/
|
||||||
DAILY,
|
DAILY,
|
||||||
|
/**
|
||||||
|
* Pre-release environment.
|
||||||
|
*/
|
||||||
PRE,
|
PRE,
|
||||||
|
/**
|
||||||
|
* Production environment.
|
||||||
|
*/
|
||||||
PRODUCT
|
PRODUCT
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import lombok.AllArgsConstructor;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务执行类型
|
* Execution type.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/3/17
|
* @since 2020/3/17
|
||||||
@ -12,8 +12,17 @@ import lombok.Getter;
|
|||||||
@Getter
|
@Getter
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum ExecuteType {
|
public enum ExecuteType {
|
||||||
|
/**
|
||||||
|
* Standalone type of task.
|
||||||
|
*/
|
||||||
STANDALONE(1, "单机执行"),
|
STANDALONE(1, "单机执行"),
|
||||||
|
/**
|
||||||
|
* Broadcast type of task.
|
||||||
|
*/
|
||||||
BROADCAST(2, "广播执行"),
|
BROADCAST(2, "广播执行"),
|
||||||
|
/**
|
||||||
|
* MapReduce type of task.
|
||||||
|
*/
|
||||||
MAP_REDUCE(3, "MapReduce"),
|
MAP_REDUCE(3, "MapReduce"),
|
||||||
MAP(4, "Map");
|
MAP(4, "Map");
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.github.kfcfans.powerjob.common;
|
package com.github.kfcfans.powerjob.common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公共常量
|
* Common constants.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/5/31
|
* @since 2020/5/31
|
||||||
|
@ -3,7 +3,7 @@ package com.github.kfcfans.powerjob.common;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PowerJob 序列化标记接口
|
* PowerJob serializable interface.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/4/16
|
* @since 2020/4/16
|
||||||
|
@ -6,7 +6,7 @@ import lombok.Data;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务实例日志对象
|
* Log instance model.
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/4/21
|
* @since 2020/4/21
|
||||||
@ -16,13 +16,21 @@ import lombok.NoArgsConstructor;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class InstanceLogContent implements OmsSerializable {
|
public class InstanceLogContent implements OmsSerializable {
|
||||||
|
|
||||||
// 实例ID
|
/**
|
||||||
|
* Id of instance.
|
||||||
|
*/
|
||||||
private long instanceId;
|
private long instanceId;
|
||||||
// 日志提交时间
|
/**
|
||||||
|
* Submitted time of the log.
|
||||||
|
*/
|
||||||
private long logTime;
|
private long logTime;
|
||||||
// 级别
|
/**
|
||||||
|
* Level of the log.
|
||||||
|
*/
|
||||||
private int logLevel;
|
private int logLevel;
|
||||||
// 日志内容
|
/**
|
||||||
|
* Content of the log.
|
||||||
|
*/
|
||||||
private String logContent;
|
private String logContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user