Package io.datarouter.storage.setting
Class DefaultSettingValue<T>
java.lang.Object
io.datarouter.storage.setting.DefaultSettingValue<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue(DatarouterEnvironmentType environmentType, String environmentCategoryName, String environmentName, ServerType serverType, String serviceName, String serverName, List<DatarouterSettingTag> settingTags) getValue(DatarouterEnvironmentType environmentType, String environmentCategoryName, String environmentName, String serverTypeString, String serviceName, String serverName, List<DatarouterSettingTag> settingTags) getValue(String environmentTypeString, String environmentCategoryName, String environmentName, ServerType serverType, String serviceName, String serverName, List<DatarouterSettingTag> settingTags) getValueByEnvironmentCategoryName(DatarouterEnvironmentType environmentType) getValueByEnvironmentName(DatarouterEnvironmentType environmentType) getValueByServerName(DatarouterEnvironmentType environmentType) getValueByServerType(DatarouterEnvironmentType environmentType) getValueByServiceName(DatarouterEnvironmentType environmentType) setGlobalDefault(T value) withEnvironmentCategoryName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String categoryName, T value) withEnvironmentName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String environment, T value) withEnvironmentType(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, T value) withServerName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String serverName, T value) withServerType(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, ServerType serverType, T value) withServiceName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String serviceName, T value) withTag(Supplier<DatarouterSettingTag> tagTypeSupplier, Supplier<T> value)
-
Constructor Details
-
DefaultSettingValue
-
-
Method Details
-
withEnvironmentType
public DefaultSettingValue<T> withEnvironmentType(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, T value) -
withEnvironmentName
public DefaultSettingValue<T> withEnvironmentName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String environment, T value) -
withEnvironmentCategoryName
public DefaultSettingValue<T> withEnvironmentCategoryName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String categoryName, T value) -
withServerType
public DefaultSettingValue<T> withServerType(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, ServerType serverType, T value) -
withServiceName
public DefaultSettingValue<T> withServiceName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String serviceName, T value) -
withServerName
public DefaultSettingValue<T> withServerName(Supplier<DatarouterEnvironmentType> environmentTypeSupplier, String serverName, T value) -
withTag
public DefaultSettingValue<T> withTag(Supplier<DatarouterSettingTag> tagTypeSupplier, Supplier<T> value) -
setGlobalDefault
-
getValueByServerTypeByEnvironmentType
-
getValueByServerNameByEnvironmentType
-
getValueByServiceNameByEnvironmentType
-
getValueByEnvironmentNameByEnvironmentType
-
getValueByEnvironmentCategoryNameByEnvironmentType
public Map<DatarouterEnvironmentType,Map<String, getValueByEnvironmentCategoryNameByEnvironmentType()T>> -
getValueByEnvironmentType
-
getValueBySettingTag
-
getValueByServerName
-
getValueByServerType
-
getValueByServiceName
-
getValueByEnvironmentName
-
getValueByEnvironmentCategoryName
-
getGlobalDefault
-
getValue
public T getValue(String environmentTypeString, String environmentCategoryName, String environmentName, ServerType serverType, String serviceName, String serverName, List<DatarouterSettingTag> settingTags) -
getValue
public T getValue(DatarouterEnvironmentType environmentType, String environmentCategoryName, String environmentName, ServerType serverType, String serviceName, String serverName, List<DatarouterSettingTag> settingTags) -
getValue
public T getValue(DatarouterEnvironmentType environmentType, String environmentCategoryName, String environmentName, String serverTypeString, String serviceName, String serverName, List<DatarouterSettingTag> settingTags) -
getDefaultSettingValueWinner
-