forked from sermant-io/Sermant
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a465c3
commit eb012fb
Showing
68 changed files
with
2,232 additions
and
183 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
sermant-agentcore/sermant-agentcore-config/config/config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sermant-agentcore/sermant-agentcore-config/config/test/config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...ter-common/src/main/java/com/huaweicloud/sermant/router/common/config/TransmitConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright (C) 2021-2022 Huawei Technologies Co., Ltd. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.huaweicloud.sermant.router.common.config; | ||
|
||
import com.huaweicloud.sermant.core.config.common.ConfigFieldKey; | ||
import com.huaweicloud.sermant.core.config.common.ConfigTypeKey; | ||
import com.huaweicloud.sermant.core.plugin.config.PluginConfig; | ||
|
||
/** | ||
* 路由配置 | ||
* | ||
* @author provenceee | ||
* @since 2021-11-18 | ||
*/ | ||
@ConfigTypeKey("transmit.plugin") | ||
public class TransmitConfig implements PluginConfig { | ||
/** | ||
* 是否在直接new Thread时传递标签 | ||
*/ | ||
@ConfigFieldKey("enabled-thread") | ||
private boolean enabledThread; | ||
|
||
/** | ||
* 是否在非定时线程池中传递标签 | ||
*/ | ||
@ConfigFieldKey("enabled-thread-pool") | ||
private boolean enabledThreadPool; | ||
|
||
/** | ||
* 是否在定时线程池的schedule/scheduleAtFixedRate/scheduleWithFixedDelay方法中传递标签 | ||
*/ | ||
@ConfigFieldKey("enabled-scheduler") | ||
private boolean enabledScheduler; | ||
|
||
public boolean isEnabledThread() { | ||
return enabledThread; | ||
} | ||
|
||
public void setEnabledThread(boolean enabledThread) { | ||
this.enabledThread = enabledThread; | ||
} | ||
|
||
public boolean isEnabledThreadPool() { | ||
return enabledThreadPool; | ||
} | ||
|
||
public void setEnabledThreadPool(boolean enabledThreadPool) { | ||
this.enabledThreadPool = enabledThreadPool; | ||
} | ||
|
||
public boolean isEnabledScheduler() { | ||
return enabledScheduler; | ||
} | ||
|
||
public void setEnabledScheduler(boolean enabledScheduler) { | ||
this.enabledScheduler = enabledScheduler; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.