测试是否能获得oracle连接线程

web_backend_develope
chenlw 9 years ago
parent c188cbea05
commit fe773a6fc3

@ -0,0 +1,45 @@
package com.platform.service.thread;
import com.base.Custom4exception;
import com.base.CustomException;
import com.platform.entities.oracleForm;
import com.platform.service.IOracleExtractService;
/** oracle
* @author chen
*
*/
public class ThreadGainOracleConnect extends Thread {
private boolean isConnect = false;
private IOracleExtractService OracleExtract;
private oracleForm form;
/** oracle
* @param form
* @param OracleExtract
*/
public ThreadGainOracleConnect(oracleForm form, IOracleExtractService OracleExtract) {
this.form = form;
this.OracleExtract= OracleExtract;
}
@Override
public void run() {
try {
this.isConnect = OracleExtract.isConnectTotalOracle(form.getTarget());
} catch (Exception e) {
new CustomException(Custom4exception.connect_Oracle_Except,e,form,OracleExtract);
}
}
/**
* @return the isConnect true:
*/
public boolean isConnect() {
return isConnect;
}
}
Loading…
Cancel
Save