/** * Installs the data hub configuration and server-side config files into MarkLogic */ @Override public void install() { install(null); }
@PostConstruct public void bootstrapHub() { boolean isInstalled = false; try { isInstalled = dataHub.isInstalled().isInstalled(); } catch(Exception e) { logger.info("Datahub is not installed"); } if(! isInstalled) { dataHub.install(); try { //dataHub.upgradeHub(); // this throws exception right now. } catch (Exception e) { logger.warn("Upgrade threw an exception during test bootstrapping"); } } }