@Test public void testInstallNpm() throws InstallationException { assertFalse(new File(tmpDir, "vis/node/npm").isFile()); assertFalse(new File(tmpDir, "vis/node/node").isFile()); hvf.installNodeAndNpm(); assertTrue(new File(tmpDir, "vis/node/npm").isFile()); assertTrue(new File(tmpDir, "vis/node/node").isFile()); }
void installNodeAndNpm() { if (nodeAndNpmInstalled) { return; } try { NPMInstaller npmInstaller = frontEndPluginFactory .getNPMInstaller(getProxyConfig(isSecure(defaultNpmRegistryUrl))); npmInstaller.setNpmVersion(NPM_VERSION); npmInstaller.install(); NodeInstaller nodeInstaller = frontEndPluginFactory .getNodeInstaller(getProxyConfig(isSecure(defaultNodeRegistryUrl))); nodeInstaller.setNodeVersion(NODE_VERSION); nodeInstaller.install(); configureLogger(); nodeAndNpmInstalled = true; } catch (InstallationException e) { logger.error(e.getMessage(), e); } }
HeliumVisualizationFactory { void installNodeAndNpm() { if (nodeAndNpmInstalled) { return; } try { NPMInstaller npmInstaller = frontEndPluginFactory .getNPMInstaller(getProxyConfig(isSecure(defaultNpmRegistryUrl))); npmInstaller.setNpmVersion(NPM_VERSION); npmInstaller.install(); NodeInstaller nodeInstaller = frontEndPluginFactory .getNodeInstaller(getProxyConfig(isSecure(defaultNodeRegistryUrl))); nodeInstaller.setNodeVersion(NODE_VERSION); nodeInstaller.install(); configureLogger(); nodeAndNpmInstalled = true; } catch (InstallationException e) { logger.error(e.getMessage(), e); } } }
HeliumVisualizationFactory { void installNodeAndNpm() { if (nodeAndNpmInstalled) { return; } try { NPMInstaller npmInstaller = frontEndPluginFactory .getNPMInstaller(getProxyConfig(isSecure(defaultNpmRegistryUrl))); npmInstaller.setNpmVersion(NPM_VERSION); npmInstaller.install(); NodeInstaller nodeInstaller = frontEndPluginFactory .getNodeInstaller(getProxyConfig(isSecure(defaultNodeRegistryUrl))); nodeInstaller.setNodeVersion(NODE_VERSION); nodeInstaller.install(); configureLogger(); nodeAndNpmInstalled = true; } catch (InstallationException e) { logger.error(e.getMessage(), e); } } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); }
HeliumVisualizationFactory { void installNodeAndNpm() { if (nodeAndNpmInstalled) { return; } try { NPMInstaller npmInstaller = frontEndPluginFactory .getNPMInstaller(getProxyConfig(isSecure(defaultNpmRegistryUrl))); npmInstaller.setNpmVersion(NPM_VERSION); npmInstaller.install(); NodeInstaller nodeInstaller = frontEndPluginFactory .getNodeInstaller(getProxyConfig(isSecure(defaultNodeRegistryUrl))); nodeInstaller.setNodeVersion(NODE_VERSION); nodeInstaller.install(); configureLogger(); nodeAndNpmInstalled = true; } catch (InstallationException e) { logger.error(e.getMessage(), e); } } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); File bundle(List<HeliumPackage> pkgs); synchronized File bundle(List<HeliumPackage> pkgs, boolean forceRefresh); File getCurrentBundle(); }
HeliumVisualizationFactory { void installNodeAndNpm() { if (nodeAndNpmInstalled) { return; } try { NPMInstaller npmInstaller = frontEndPluginFactory .getNPMInstaller(getProxyConfig(isSecure(defaultNpmRegistryUrl))); npmInstaller.setNpmVersion(NPM_VERSION); npmInstaller.install(); NodeInstaller nodeInstaller = frontEndPluginFactory .getNodeInstaller(getProxyConfig(isSecure(defaultNodeRegistryUrl))); nodeInstaller.setNodeVersion(NODE_VERSION); nodeInstaller.install(); configureLogger(); nodeAndNpmInstalled = true; } catch (InstallationException e) { logger.error(e.getMessage(), e); } } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); File bundle(List<HeliumPackage> pkgs); synchronized File bundle(List<HeliumPackage> pkgs, boolean forceRefresh); File getCurrentBundle();  }