public class NameRule extends Object
| Constructor and Description |
|---|
NameRule() |
| Modifier and Type | Method and Description |
|---|---|
NameRule |
addApplicationNameRuleItem(ApplicationNameRule applicationNameRuleItem) |
NameRule |
addAppNameRuleItem(AppNameRule appNameRuleItem) |
boolean |
equals(Object o) |
List<ApplicationNameRule> |
getApplicationNameRule()
应用命名部分。 nameType取值cmdLine时args格式为[\"start\",\"end\"],表示抽取命令行中start、end之间的字符。 nameType取值cmdLine时args格式为 [\"aa\"],表示抽取环境变量名为aa对应的环境变量值。 nameType取值str时,args格式为[\"fix\"],表示服务名称最后拼接固定文字fix。 nameType取值cmdLineHash时,args格式为[\"0001\"],value格式为[\"ser\"],表示当启动命令是0001时,应用名称为ser。
|
List<AppNameRule> |
getAppNameRule()
服务命名部分,数组中有多个对象时表示将每个对象抽取到的字符串拼接作为服务的名称。 nameType取值cmdLine时args格式为[\"start\",\"end\"],表示抽取命令行中start、end之间的字符。 nameType取值cmdLine时args格式为[\"aa\"],表示抽取环境变量名为aa对应的环境变量值。 nameType取值str时,args格式为[\"fix\"],表示服务名称最后拼接固定文字fix。 nameType取值cmdLineHash时,args格式为[\"0001\"],value格式为[\"ser\"],表示当启动命令是0001时,服务名称为ser。
|
int |
hashCode() |
void |
setApplicationNameRule(List<ApplicationNameRule> applicationNameRule) |
void |
setAppNameRule(List<AppNameRule> appNameRule) |
String |
toString() |
NameRule |
withApplicationNameRule(java.util.function.Consumer<List<ApplicationNameRule>> applicationNameRuleSetter) |
NameRule |
withApplicationNameRule(List<ApplicationNameRule> applicationNameRule) |
NameRule |
withAppNameRule(java.util.function.Consumer<List<AppNameRule>> appNameRuleSetter) |
NameRule |
withAppNameRule(List<AppNameRule> appNameRule) |
public NameRule withAppNameRule(List<AppNameRule> appNameRule)
public NameRule addAppNameRuleItem(AppNameRule appNameRuleItem)
public NameRule withAppNameRule(java.util.function.Consumer<List<AppNameRule>> appNameRuleSetter)
public List<AppNameRule> getAppNameRule()
public void setAppNameRule(List<AppNameRule> appNameRule)
public NameRule withApplicationNameRule(List<ApplicationNameRule> applicationNameRule)
public NameRule addApplicationNameRuleItem(ApplicationNameRule applicationNameRuleItem)
public NameRule withApplicationNameRule(java.util.function.Consumer<List<ApplicationNameRule>> applicationNameRuleSetter)
public List<ApplicationNameRule> getApplicationNameRule()
public void setApplicationNameRule(List<ApplicationNameRule> applicationNameRule)
Copyright © 2022. All rights reserved.