Skip to content

Commit 18720bd

Browse files
authored
Merge pull request #1756 from SunJiFengPlus/develop
translation: sermant-agentcore module
2 parents aebae49 + 6029867 commit 18720bd

File tree

18 files changed

+25
-25
lines changed

18 files changed

+25
-25
lines changed

sermant-agentcore/sermant-agentcore-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<version>${byte.buddy.version}</version>
105105
</dependency>
106106

107-
<!-- 测试阶段使用的依赖,不会产生类冲突 -->
107+
<!-- Dependencies used in the test scope that will not cause class conflicts -->
108108
<dependency>
109109
<groupId>junit</groupId>
110110
<artifactId>junit</artifactId>

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/plugin/agent/declarer/AbstractPluginDescription.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.security.ProtectionDomain;
2424

2525
/**
26-
* 抽象的插件描述器,简化类的匹配方法,仅使用类的描述器匹配
2726
* AbstractPluginDescription, simplifies the matching method of the class, only using the class description matching
2827
*
2928
* @author HapThorin

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/plugin/agent/declarer/InterceptDeclarer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
public abstract class InterceptDeclarer {
3737
/**
38-
* 日志
38+
* Logger
3939
*/
4040
private static final Logger LOGGER = LoggerFactory.getLogger();
4141

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/plugin/agent/matcher/MethodMatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public boolean matches(MethodDescription methodDescription) {
5353
/**
5454
* Match methods with exact name
5555
*
56-
* @param methodName 方法名称
57-
* @return 方法匹配器对象
56+
* @param methodName method name
57+
* @return method matcher
5858
*/
5959
public static MethodMatcher nameEquals(String methodName) {
6060
return new MethodMatcher() {

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/plugin/common/PluginSchemaValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static void setDefaultVersion(String pluginName) {
6464
/**
6565
* Remove plugin version cache
6666
*
67-
* @param pluginName 插件名
67+
* @param pluginName plugin name
6868
*/
6969
public static void removePluginVersionCache(String pluginName) {
7070
PLUGIN_VERSION_MAP.remove(pluginName);

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/plugin/subscribe/AbstractGroupConfigSubscriber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static String createLabelGroup(Map<String, String> labels) {
142142
/**
143143
* Build group subscribers
144144
*
145-
* @return 订阅全集
145+
* @return All of subscriptions
146146
*/
147147
protected abstract Map<String, DynamicConfigListener> buildGroupSubscribers();
148148

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/utils/KeyGenerateUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ private KeyGenerateUtils() {
2929
/**
3030
* Use Class to generate keys that carry classloader information
3131
*
32-
* @param cls
33-
* @return
32+
* @param cls class
33+
* @return key
3434
*/
3535
public static String generateClassKeyWithClassLoader(Class<?> cls) {
3636
return cls.getName() + "@" + System.identityHashCode(cls.getClassLoader());

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/utils/ReflectUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private ReflectUtils() {
7777
*
7878
* @param target Target method
7979
* @param methodName Method name
80-
* @return 结果
80+
* @return invoke result
8181
*/
8282
public static Optional<Object> invokeMethodWithNoneParameter(Object target, String methodName) {
8383
return invokeMethod(target, methodName, null, null);

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/utils/ServicesMetaInfUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
import javax.tools.StandardLocation;
4545

4646
/**
47-
* 添加@HttpRouteMapping注解的类,在编译时自动生成io.sermant.core.service.httpserver.api.HttpRouteHandler的SPI
47+
* Classes annotated with @HttpRouteMapping will automatically generate SPI configuration for
48+
* io.sermant.core.service.httpserver.api.HttpRouteHandler during compile
4849
*
4950
* @author zwmagic
5051
* @since 2024-02-03

sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/utils/SpiLoadUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ private SpiLoadUtils() {
3737
}
3838

3939
/**
40-
* 从指定类加载起载入所有的服务
40+
* Loads all services from the specified class loader
4141
*
42-
* @param serviceClass SPI接口类
43-
* @param classLoader 类加载器,从指定的类加载加载服务
44-
* @param <T> 服务的具体类型
45-
* @return 服务列表
42+
* @param serviceClass SPI interface class
43+
* @param classLoader class loader that loads services from the specified class loader
44+
* @param <T> specific type of the service
45+
* @return service list
4646
*/
4747
public static <T> List<T> loadAll(Class<T> serviceClass, ClassLoader classLoader) {
4848
ServiceLoader<T> services = ServiceLoader.load(serviceClass, classLoader);

0 commit comments

Comments
 (0)