@Override public Completable zipDeployAsync(InputStream zipFile) { return kuduClient.zipDeployAsync(zipFile).concatWith(stopAsync()).concatWith(startAsync()); }
@Override public Completable zipDeployAsync(InputStream zipFile) { return kuduClient.zipDeployAsync(zipFile).concatWith(WebAppImpl.this.stopAsync()).concatWith(WebAppImpl.this.startAsync()); }
@Override public Completable breakPairingAsync() { return this.manager().inner().disasterRecoveryConfigs().breakPairingAsync(this.ancestor().resourceGroupName(), this.ancestor().ancestor1Name(), this.name()) .toCompletable() .concatWith(this.refreshAsync().toCompletable()); }
@Override public Completable breakPairingAsync() { return this.manager().inner().disasterRecoveryConfigs().breakPairingAsync(this.ancestor().resourceGroupName(), this.ancestor().ancestor1Name(), this.name()) .toCompletable() .concatWith(this.refreshAsync().toCompletable()); }
@Override public Completable failOverAsync() { // Fail over is run against secondary namespace (because primary might be down at time of failover) // ResourceId secondaryNs = ResourceId.fromString(this.inner().partnerNamespace()); return this.manager().inner().disasterRecoveryConfigs().failOverAsync(secondaryNs.resourceGroupName(), secondaryNs.name(), this.name()) .toCompletable() .concatWith(this.refreshAsync().toCompletable()); }
public Completable connect() { stopped = false; Completable atLeastOneConfig = configProvider.configs().first().toCompletable() .timeout(env.bootstrapTimeout(), TimeUnit.SECONDS) .doOnError(new Action1<Throwable>() { @Override public void call(Throwable throwable) { LOGGER.warn("Did not receive initial configuration from provider."); } }); return configProvider.start() .timeout(env.connectTimeout(), TimeUnit.SECONDS) .doOnError(new Action1<Throwable>() { @Override public void call(Throwable throwable) { LOGGER.warn("Cannot connect configuration provider."); } }) .concatWith(atLeastOneConfig); }
@Override public Completable failOverAsync() { // Fail over is run against secondary namespace (because primary might be down at time of failover) // ResourceId secondaryNs = ResourceId.fromString(this.inner().partnerNamespace()); return this.manager().inner().disasterRecoveryConfigs().failOverAsync(secondaryNs.resourceGroupName(), secondaryNs.name(), this.name()) .toCompletable() .concatWith(this.refreshAsync().toCompletable()); }
refResolved = refResolved.concatWith( resolve(route, context.withPaths(FalcorPath.empty(), unmatched)) );