@Override // this method uses STAGING appserver but FINAL database. // it's only use is for reverse flows, which need to use staging modules. public DatabaseClient newReverseFlowClient() { return newStagingClient(finalDbName); }
@Override public DatabaseClient newStagingClient() { return newStagingClient(stagingDbName); }
ServerConfigurationManager configMgr = hubConfig.newStagingClient().newServerConfigManager(); QueryOptionsManager stagingOptionsManager = configMgr.newQueryOptionsManager();
/** * Uninstalls the data hub configuration and server-side config files from MarkLogic * * @param listener - the callback method to receive status updates */ @Override public void uninstall(HubDeployStatusListener listener) { logger.warn("Uninstalling the Data Hub and Final Databases/Servers from MarkLogic"); HubAppDeployer finalDeployer = new HubAppDeployer(getManageClient(), getAdminManager(), listener, hubConfig.newStagingClient()); finalDeployer.setCommands(buildListOfCommands()); finalDeployer.undeploy(hubConfig.getAppConfig()); }
private JsonNode validateUserModules() { EntitiesValidator ev = EntitiesValidator.create(getHubAdminConfig().newStagingClient()); return ev.validateAll(); }
/** * Installs the data hub configuration and server-side config files into MarkLogic * * @param listener - the callback method to receive status updates */ @Override public void install(HubDeployStatusListener listener) { if (!hubConfig.getHubProject().isInitialized()) { initProject(); } logger.warn("Installing the Data Hub into MarkLogic"); // in AWS setting this fails... // for now putting in try/catch try { AppConfig roleConfig = hubConfig.getAppConfig(); SimpleAppDeployer roleDeployer = new SimpleAppDeployer(getManageClient(), getAdminManager()); roleDeployer.setCommands(getSecurityCommandList()); roleDeployer.deploy(roleConfig); } catch (HttpServerErrorException e) { if (e.getStatusCode() == HttpStatus.SERVICE_UNAVAILABLE) { logger.warn("No manage client for security installs. Assuming DHS provisioning already threre"); } else { throw new DataHubConfigurationException(e); } } HubAppDeployer finalDeployer = new HubAppDeployer(getManageClient(), getAdminManager(), listener, hubConfig.newStagingClient()); finalDeployer.setCommands(buildListOfCommands()); finalDeployer.deploy(hubConfig.getAppConfig()); }