import com.alibaba.dubbo.common.utils.StringUtils; //导入方法依赖的package包/类
private TransactionConfig(){
commitAddr=getConfig("transaction.ip",NetworkUtils.getLocalHost().getHostAddress())+":"+getConfig("transaction.port","8910");
contextCount=getConfig("transaction.contextCount", contextCount);
contextClass=getConfig("transaction.contextClass",contextClass);
commitOn=getConfig("transaction.commitOn",commitOn);
channelSize=getConfig("transaction.channelSize",channelSize);
bootstrapSize=getConfig("transaction.bootstrapSize",bootstrapSize);
executeWorkerSize=getConfig("transaction.executeWorkerSize",executeWorkerSize);
callModel=getConfig("transaction.callModel",callModel);
String callTimeoutPerLoopStr=getConfig("transaction.callTimeoutPerLoop",callTimeoutPerLoop+"");
String callTimeoutLoopsStr=getConfig("transaction.callTimeoutLoops",callTimeoutLoops+"");
if(null!=callTimeoutPerLoopStr&&!callTimeoutPerLoopStr.trim().isEmpty()&& StringUtils.isNumeric(callTimeoutPerLoopStr)){
callTimeoutPerLoop=Double.valueOf(callTimeoutPerLoopStr).intValue();
}
if(null!=callTimeoutLoopsStr && !callTimeoutLoopsStr.trim().isEmpty()&& StringUtils.isNumeric(callTimeoutLoopsStr)){
callTimeoutLoops=Double.valueOf(callTimeoutLoopsStr).intValue();
}
transactionProxy=Boolean.valueOf(getConfig("transaction.isProxy",DEFAULT_TRANSACTION_PROXY+""));
logger.info(this.toString());
}