Compare commits

..

No commits in common. "5c019b2c1695e7ad9a186790f41c95201872723f" and "82c636571ea77d3f4ac3c22f68981d298610bf00" have entirely different histories.

1 changed files with 9 additions and 8 deletions

View File

@ -5,12 +5,17 @@ import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.bocloud.cmp.domain.Butler; import com.bocloud.cmp.domain.Butler;
import com.bocloud.ctstack.plugin.domain.model.*; import com.bocloud.ctstack.plugin.domain.model.*;
import com.bocloud.ctstack.plugin.domain.model.container.ContainerClusterModel;
import com.bocloud.ctstack.plugin.domain.model.container.ContainerNodeModel;
import com.bocloud.ctstack.plugin.domain.model.container.ContainerNodePoolModel;
import com.bocloud.ctstack.plugin.domain.model.database.ProjectModel; import com.bocloud.ctstack.plugin.domain.model.database.ProjectModel;
import com.bocloud.ctstack.plugin.domain.model.database.RdsModel; import com.bocloud.ctstack.plugin.domain.model.database.RdsModel;
import com.bocloud.ctstack.plugin.provider.TianyiProvider; import com.bocloud.ctstack.plugin.provider.TianyiProvider;
import com.bocloud.ctstack.plugin.provider.compute.TianyiImageProvider; import com.bocloud.ctstack.plugin.provider.compute.TianyiImageProvider;
import com.bocloud.ctstack.plugin.provider.compute.TianyiPhysicalProvider; import com.bocloud.ctstack.plugin.provider.compute.TianyiPhysicalProvider;
import com.bocloud.ctstack.plugin.provider.compute.TianyiServerProvider; import com.bocloud.ctstack.plugin.provider.compute.TianyiServerProvider;
import com.bocloud.ctstack.plugin.provider.container.TianYiContainerClusterProvider;
import com.bocloud.ctstack.plugin.provider.container.TianYiContainerNodeProvider;
import com.bocloud.ctstack.plugin.provider.database.TianyiRdsProvider; import com.bocloud.ctstack.plugin.provider.database.TianyiRdsProvider;
import com.bocloud.ctstack.plugin.provider.network.TianyiFloatingIpProvider; import com.bocloud.ctstack.plugin.provider.network.TianyiFloatingIpProvider;
import com.bocloud.ctstack.plugin.provider.network.TianyiSecurityGroupProvider; import com.bocloud.ctstack.plugin.provider.network.TianyiSecurityGroupProvider;
@ -30,11 +35,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -298,7 +299,7 @@ public class TianyiLocationProvider extends TianyiProvider {
// 同步容器 // 同步容器
log.info("获取容器信息..."); log.info("获取容器信息...");
/*TianYiContainerClusterProvider tianYiContainerClusterProvider = new TianYiContainerClusterProvider(this.getButler()); TianYiContainerClusterProvider tianYiContainerClusterProvider = new TianYiContainerClusterProvider(this.getButler());
GeneralResult containerClusterList = tianYiContainerClusterProvider.list(); GeneralResult containerClusterList = tianYiContainerClusterProvider.list();
log.info("同步容器结果:{}",containerClusterList.isSuccess()); log.info("同步容器结果:{}",containerClusterList.isSuccess());
if (containerClusterList.isSuccess()) { if (containerClusterList.isSuccess()) {
@ -314,7 +315,7 @@ public class TianyiLocationProvider extends TianyiProvider {
} }
} }
syncModel.setContainerClusterModels(containerClusterModels); syncModel.setContainerClusterModels(containerClusterModels);
}*/ }
// 同步云硬盘 // 同步云硬盘
log.info("获取云硬盘信息..."); log.info("获取云硬盘信息...");
@ -382,7 +383,7 @@ public class TianyiLocationProvider extends TianyiProvider {
} }
log.info("同步资源池信息:{}",poolModelGeneralResult.isSuccess()); log.info("同步资源池信息:{}",poolModelGeneralResult.isSuccess());
//syncRds(syncModel); syncRds(syncModel);
log.info("end sync ... current region is " + this.getRegionId()); log.info("end sync ... current region is " + this.getRegionId());
return new GeneralResult(true, syncModel, "数据同步成功!"); return new GeneralResult(true, syncModel, "数据同步成功!");