@Override protected Object doExecute() throws Exception { System.out.println(String.format(FORMAT, "Fabric Release:", emptyIfNull(FabricVersionUtils.getReleaseVersion()))); System.out.println(String.format(FORMAT, "Web Console:", emptyIfNull(fabricService.getWebConsoleUrl()))); System.out.println(String.format(FORMAT, "Rest API:", emptyIfNull(fabricService.getRestAPI()))); System.out.println(String.format(FORMAT, "Git URL:", emptyIfNull(fabricService.getGitUrl()))); if (fabricService.getCurrentContainer() != null) { System.out.println(String.format(FORMAT, "Jolokia URL:", emptyIfNull(fabricService.getCurrentContainer().getJolokiaUrl()))); } System.out.println(String.format(FORMAT, "ZooKeeper URI:", emptyIfNull(fabricService.getZookeeperUrl()))); System.out.println(String.format(FORMAT, "Maven Download URI:", fabricService.getMavenRepoURI())); System.out.println(String.format(FORMAT, "Maven Upload URI:", fabricService.getMavenRepoUploadURI())); return null; }
protected CreateSshContainerOptions.Builder createAutoScaleOptions(AutoScaleRequest request, FabricService fabricService, HostProfileCounter hostProfileCounter) { CreateSshContainerOptions.Builder builder = chooseHostContainerOptions(request, hostProfileCounter); if (builder == null) return null; String zookeeperUrl = fabricService.getZookeeperUrl(); String zookeeperPassword = fabricService.getZookeeperPassword(); if (builder.getProxyUri() == null) { builder.proxyUri(fabricService.getMavenRepoURI()); } return builder.zookeeperUrl(zookeeperUrl).zookeeperPassword(zookeeperPassword); }
public FabricDTO(FabricService fabricService) { this.zookeeperUrl = fabricService.getZookeeperUrl(); this.currentContainerName = fabricService.getCurrentContainerName(); this.defaultVersion = fabricService.getDefaultVersionId(); this.environment = fabricService.getEnvironment(); this.mavenRepoURI = asString(fabricService.getMavenRepoURI()); this.mavenRepoUploadURI = asString(fabricService.getMavenRepoUploadURI()); this.defaultJvmOptions = fabricService.getDefaultJvmOptions(); }
public FabricDTO(FabricService fabricService) { this.zookeeperUrl = fabricService.getZookeeperUrl(); this.currentContainerName = fabricService.getCurrentContainerName(); this.defaultVersion = fabricService.getDefaultVersionId(); this.environment = fabricService.getEnvironment(); this.mavenRepoURI = asString(fabricService.getMavenRepoURI()); this.mavenRepoUploadURI = asString(fabricService.getMavenRepoUploadURI()); this.defaultJvmOptions = fabricService.getDefaultJvmOptions(); }
.number(dto.requiredInstances()) .ensembleServer(false) .proxyUri(fabricService.getMavenRepoURI()) .jvmOpts(jvmOpts) .zookeeperUrl(fabricService.getZookeeperUrl())
.maximumPort(maximumPort) .password(password) .proxyUri(proxyUri != null ? proxyUri : fabricService.getMavenRepoURI()) .zookeeperUrl(fabricService.getZookeeperUrl()) .zookeeperPassword(isEnsembleServer && zookeeperPassword != null ? zookeeperPassword : fabricService.getZookeeperPassword())
.zookeeperUrl(fabricService.getZookeeperUrl()) .zookeeperPassword(isEnsembleServer && zookeeperPassword != null ? zookeeperPassword : fabricService.getZookeeperPassword()) .proxyUri(proxyUri != null ? proxyUri : fabricService.getMavenRepoURI()) .profiles(getProfileNames()) .dataStoreProperties(getDataStoreProperties());
.apiName(apiName) .user(user).password(password) .proxyUri(proxyUri != null ? proxyUri : fabricService.getMavenRepoURI()) .zookeeperUrl(fabricService.getZookeeperUrl()) .zookeeperPassword(isEnsembleServer && zookeeperPassword != null ? zookeeperPassword : fabricService.getZookeeperPassword())