EHPC SDK Auto Released By qianzheng.llc,Version:1.36.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -33,7 +33,7 @@ int SetAutoScaleConfigRequest::getShrinkIdleTimes()const
|
||||
void SetAutoScaleConfigRequest::setShrinkIdleTimes(int shrinkIdleTimes)
|
||||
{
|
||||
shrinkIdleTimes_ = shrinkIdleTimes;
|
||||
setParameter("ShrinkIdleTimes", std::to_string(shrinkIdleTimes));
|
||||
setCoreParameter("ShrinkIdleTimes", std::to_string(shrinkIdleTimes));
|
||||
}
|
||||
|
||||
int SetAutoScaleConfigRequest::getGrowTimeoutInMinutes()const
|
||||
@@ -44,7 +44,7 @@ int SetAutoScaleConfigRequest::getGrowTimeoutInMinutes()const
|
||||
void SetAutoScaleConfigRequest::setGrowTimeoutInMinutes(int growTimeoutInMinutes)
|
||||
{
|
||||
growTimeoutInMinutes_ = growTimeoutInMinutes;
|
||||
setParameter("GrowTimeoutInMinutes", std::to_string(growTimeoutInMinutes));
|
||||
setCoreParameter("GrowTimeoutInMinutes", std::to_string(growTimeoutInMinutes));
|
||||
}
|
||||
|
||||
std::string SetAutoScaleConfigRequest::getClusterId()const
|
||||
@@ -55,7 +55,7 @@ std::string SetAutoScaleConfigRequest::getClusterId()const
|
||||
void SetAutoScaleConfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
bool SetAutoScaleConfigRequest::getEnableAutoGrow()const
|
||||
@@ -66,7 +66,7 @@ bool SetAutoScaleConfigRequest::getEnableAutoGrow()const
|
||||
void SetAutoScaleConfigRequest::setEnableAutoGrow(bool enableAutoGrow)
|
||||
{
|
||||
enableAutoGrow_ = enableAutoGrow;
|
||||
setParameter("EnableAutoGrow", std::to_string(enableAutoGrow));
|
||||
setCoreParameter("EnableAutoGrow", enableAutoGrow ? "true" : "false");
|
||||
}
|
||||
|
||||
float SetAutoScaleConfigRequest::getSpotPriceLimit()const
|
||||
@@ -77,7 +77,7 @@ float SetAutoScaleConfigRequest::getSpotPriceLimit()const
|
||||
void SetAutoScaleConfigRequest::setSpotPriceLimit(float spotPriceLimit)
|
||||
{
|
||||
spotPriceLimit_ = spotPriceLimit;
|
||||
setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
|
||||
setCoreParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
|
||||
}
|
||||
|
||||
bool SetAutoScaleConfigRequest::getEnableAutoShrink()const
|
||||
@@ -88,7 +88,7 @@ bool SetAutoScaleConfigRequest::getEnableAutoShrink()const
|
||||
void SetAutoScaleConfigRequest::setEnableAutoShrink(bool enableAutoShrink)
|
||||
{
|
||||
enableAutoShrink_ = enableAutoShrink;
|
||||
setParameter("EnableAutoShrink", std::to_string(enableAutoShrink));
|
||||
setCoreParameter("EnableAutoShrink", enableAutoShrink ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAutoScaleConfigRequest::getAccessKeyId()const
|
||||
@@ -99,7 +99,7 @@ std::string SetAutoScaleConfigRequest::getAccessKeyId()const
|
||||
void SetAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SetAutoScaleConfigRequest::getSpotStrategy()const
|
||||
@@ -110,7 +110,7 @@ std::string SetAutoScaleConfigRequest::getSpotStrategy()const
|
||||
void SetAutoScaleConfigRequest::setSpotStrategy(const std::string& spotStrategy)
|
||||
{
|
||||
spotStrategy_ = spotStrategy;
|
||||
setParameter("SpotStrategy", spotStrategy);
|
||||
setCoreParameter("SpotStrategy", spotStrategy);
|
||||
}
|
||||
|
||||
int SetAutoScaleConfigRequest::getMaxNodesInCluster()const
|
||||
@@ -121,7 +121,7 @@ int SetAutoScaleConfigRequest::getMaxNodesInCluster()const
|
||||
void SetAutoScaleConfigRequest::setMaxNodesInCluster(int maxNodesInCluster)
|
||||
{
|
||||
maxNodesInCluster_ = maxNodesInCluster;
|
||||
setParameter("MaxNodesInCluster", std::to_string(maxNodesInCluster));
|
||||
setCoreParameter("MaxNodesInCluster", std::to_string(maxNodesInCluster));
|
||||
}
|
||||
|
||||
std::string SetAutoScaleConfigRequest::getExcludeNodes()const
|
||||
@@ -132,7 +132,7 @@ std::string SetAutoScaleConfigRequest::getExcludeNodes()const
|
||||
void SetAutoScaleConfigRequest::setExcludeNodes(const std::string& excludeNodes)
|
||||
{
|
||||
excludeNodes_ = excludeNodes;
|
||||
setParameter("ExcludeNodes", excludeNodes);
|
||||
setCoreParameter("ExcludeNodes", excludeNodes);
|
||||
}
|
||||
|
||||
int SetAutoScaleConfigRequest::getShrinkIntervalInMinutes()const
|
||||
@@ -143,7 +143,7 @@ int SetAutoScaleConfigRequest::getShrinkIntervalInMinutes()const
|
||||
void SetAutoScaleConfigRequest::setShrinkIntervalInMinutes(int shrinkIntervalInMinutes)
|
||||
{
|
||||
shrinkIntervalInMinutes_ = shrinkIntervalInMinutes;
|
||||
setParameter("ShrinkIntervalInMinutes", std::to_string(shrinkIntervalInMinutes));
|
||||
setCoreParameter("ShrinkIntervalInMinutes", std::to_string(shrinkIntervalInMinutes));
|
||||
}
|
||||
|
||||
std::vector<SetAutoScaleConfigRequest::Queues> SetAutoScaleConfigRequest::getQueues()const
|
||||
@@ -158,12 +158,13 @@ void SetAutoScaleConfigRequest::setQueues(const std::vector<Queues>& queues)
|
||||
for(int i = 0; i!= queues.size(); i++) {
|
||||
auto obj = queues.at(i);
|
||||
std::string str ="Queues."+ std::to_string(i);
|
||||
setParameter(str + ".SpotStrategy", obj.spotStrategy);
|
||||
setParameter(str + ".QueueName", obj.queueName);
|
||||
setParameter(str + ".InstanceType", obj.instanceType);
|
||||
setParameter(str + ".EnableAutoGrow", std::to_string(obj.enableAutoGrow));
|
||||
setParameter(str + ".SpotPriceLimit", std::to_string(obj.spotPriceLimit));
|
||||
setParameter(str + ".EnableAutoShrink", std::to_string(obj.enableAutoShrink));
|
||||
setCoreParameter(str + ".SpotStrategy", obj.spotStrategy);
|
||||
setCoreParameter(str + ".QueueName", obj.queueName);
|
||||
setCoreParameter(str + ".InstanceTypes", std::to_string(obj.instanceTypes));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".EnableAutoGrow", obj.enableAutoGrow ? "true" : "false");
|
||||
setCoreParameter(str + ".SpotPriceLimit", std::to_string(obj.spotPriceLimit));
|
||||
setCoreParameter(str + ".EnableAutoShrink", obj.enableAutoShrink ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +176,7 @@ int SetAutoScaleConfigRequest::getExtraNodesGrowRatio()const
|
||||
void SetAutoScaleConfigRequest::setExtraNodesGrowRatio(int extraNodesGrowRatio)
|
||||
{
|
||||
extraNodesGrowRatio_ = extraNodesGrowRatio;
|
||||
setParameter("ExtraNodesGrowRatio", std::to_string(extraNodesGrowRatio));
|
||||
setCoreParameter("ExtraNodesGrowRatio", std::to_string(extraNodesGrowRatio));
|
||||
}
|
||||
|
||||
int SetAutoScaleConfigRequest::getGrowIntervalInMinutes()const
|
||||
@@ -186,7 +187,7 @@ int SetAutoScaleConfigRequest::getGrowIntervalInMinutes()const
|
||||
void SetAutoScaleConfigRequest::setGrowIntervalInMinutes(int growIntervalInMinutes)
|
||||
{
|
||||
growIntervalInMinutes_ = growIntervalInMinutes;
|
||||
setParameter("GrowIntervalInMinutes", std::to_string(growIntervalInMinutes));
|
||||
setCoreParameter("GrowIntervalInMinutes", std::to_string(growIntervalInMinutes));
|
||||
}
|
||||
|
||||
int SetAutoScaleConfigRequest::getGrowRatio()const
|
||||
@@ -197,6 +198,6 @@ int SetAutoScaleConfigRequest::getGrowRatio()const
|
||||
void SetAutoScaleConfigRequest::setGrowRatio(int growRatio)
|
||||
{
|
||||
growRatio_ = growRatio;
|
||||
setParameter("GrowRatio", std::to_string(growRatio));
|
||||
setCoreParameter("GrowRatio", std::to_string(growRatio));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user