public FlowRunnerImpl(HubConfig hubConfig) { this.hubConfig = hubConfig; this.stagingClient = hubConfig.newStagingClient(); this.destinationDatabase = hubConfig.getDbName(DatabaseKind.FINAL); }
@Override public void execute(CommandContext context) { entityManager.savePii(); }
public void createProject(String projectDirString) { hubProject.createProject(projectDirString); }
public void clearUserModules() { getDataHub().clearUserModules(); }
private void createInputFlow(CodeFormat codeFormat, DataFormat dataFormat, boolean useEsModel) throws IOException, SAXException { installEntity(); createFlow(codeFormat, dataFormat, FlowType.INPUT, useEsModel); }
protected int getJobDocCount(String collection) { return getDocCount(HubConfig.DEFAULT_JOB_NAME, collection); }
public String getDHFVersion() { return hubConfig.getDHFVersion(); }
protected int getJobDocCount() { return getJobDocCount("job"); } protected int getJobDocCount(String collection) {
protected int getFinalDocCount() { return getFinalDocCount(null); } protected int getFinalDocCount(String collection) {
protected int getTracingDocCount() { return getTracingDocCount("trace"); } protected int getTracingDocCount(String collection) {
public void createProjectDir() { createProjectDir(PROJECT_PATH); }
protected int getStagingDocCount() { return getStagingDocCount(null); }
protected EvalResultIterator runInModules(String query) { return runInDatabase(query, HubConfig.DEFAULT_MODULES_DB_NAME); }
private void createHarmonizeFlow(CodeFormat codeFormat, DataFormat dataFormat, boolean useEsModel) throws IOException, SAXException { installEntity(); createFlow(codeFormat, dataFormat, FlowType.HARMONIZE, useEsModel); }
protected int getStagingDocCount(String collection) { return getDocCount(HubConfig.DEFAULT_STAGING_NAME, collection); }
protected int getFinalDocCount(String collection) { return getDocCount(HubConfig.DEFAULT_FINAL_NAME, collection); }