if (!helpOption) { builder.withVipAddress(cli.getOptionValue("n")); builder.withDataCenterType(DataCenterType.valueOf(cli.getOptionValue("d", "Basic")));
this.vipAddress = vipAddress == null ? this.vipAddress : vipAddress; this.readClusterVipAddress = readClusterVipAddress == null ? this.readClusterVipAddress : readClusterVipAddress; this.dataCenterType = dataCenterType == null ? this.dataCenterType : dataCenterType.name(); this.dataCenterResolveIntervalSec = dataCenterResolveIntervalSec; this.httpPort = httpPort;
if (!helpOption) { builder.withVipAddress(cli.getOptionValue("n")); builder.withDataCenterType(DataCenterType.valueOf(cli.getOptionValue("d", "Basic")));
protected EurekaCommonConfig( ResolverType resolverType, String[] serverList, Codec codec, String appName, String vipAddress, LocalDataCenterInfo.DataCenterType dataCenterType, Integer shutDownPort, Integer webAdminPort ) { this.resolverType = resolverType == null ? this.resolverType : resolverType.name(); this.serverList = serverList == null ? this.serverList : serverList; this.codec = codec == null ? this.codec : codec.name(); this.appName = appName == null ? this.appName : appName; this.vipAddress = vipAddress == null ? this.vipAddress : vipAddress; this.dataCenterType = dataCenterType == null ? this.dataCenterType : dataCenterType.name(); this.shutDownPort = shutDownPort == null ? this.shutDownPort : shutDownPort; this.webAdminPort = webAdminPort == null ? this.webAdminPort : webAdminPort; }
public LocalDataCenterInfo.DataCenterType getMyDataCenterType() { LocalDataCenterInfo.DataCenterType result; try { result = LocalDataCenterInfo.DataCenterType.valueOf(dataCenterType); } catch (Exception e) { result = LocalDataCenterInfo.DataCenterType.Basic; } return result; }
public LocalDataCenterInfo.DataCenterType getMyDataCenterType() { LocalDataCenterInfo.DataCenterType result; try { result = LocalDataCenterInfo.DataCenterType.valueOf(dataCenterType); } catch (Exception e) { result = LocalDataCenterInfo.DataCenterType.Basic; } return result; }