|
|
|
@ -57,9 +57,10 @@ public class OracleExtractServiceImpl implements IOracleExtractService {
|
|
|
|
|
data.setId(Integer.valueOf(collectOracle.getDataId()));
|
|
|
|
|
data.setExtractStatus(1);
|
|
|
|
|
dataInfoDao.updateExtract(data);
|
|
|
|
|
String replicasName = collectOracle.getName();
|
|
|
|
|
collectOracle.setName("J" + collectOracle.getName().replace("-", "_"));
|
|
|
|
|
String cmd = "kubectl label --overwrite rc "
|
|
|
|
|
+ collectOracle.getName() + " isExtract=1";
|
|
|
|
|
+ replicasName + " isExtract=1";
|
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
|
@ -73,7 +74,7 @@ public class OracleExtractServiceImpl implements IOracleExtractService {
|
|
|
|
|
oracleExtract.extractColleDB(conn, collectOracle);//执行抽取
|
|
|
|
|
// client.updateOrAddReplicasLabelById(collectOracle.getName(), "isExtract", "2"); //更新oracle汇总状态,0标示为未汇总,1标示汇总中,2标示汇总完成
|
|
|
|
|
cmd = "kubectl label --overwrite rc "
|
|
|
|
|
+ collectOracle.getName() + " isExtract=2";
|
|
|
|
|
+ replicasName + " isExtract=2";
|
|
|
|
|
rList = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
|
|
|
|
|
sb = new StringBuffer();
|
|
|
|
|
for (String string : rList)
|
|
|
|
|