private void readNonSystemViewViewArchives() {
    try {

      File viewDir = configuration.getViewsDir();
      String extractedArchivesPath = viewDir.getAbsolutePath() +
          File.separator + EXTRACTED_ARCHIVES_DIR;

      File[] files = viewDir.listFiles();

      if (files != null) {
        final String serverVersion = ambariMetaInfoProvider.get().getServerVersion();

        final ExecutorService executorService = getExecutorService(configuration);

        for (final File archiveFile : files) {
          if (!archiveFile.isDirectory()) {
            try {
              final ViewConfig viewConfig = archiveUtility.getViewConfigFromArchive(archiveFile);

              String commonName = viewConfig.getName();
              String version = viewConfig.getVersion();
              String viewName = ViewEntity.getViewName(commonName, version);

              final String extractedArchiveDirPath = extractedArchivesPath + File.separator + viewName;
              final File extractedArchiveDirFile = archiveUtility.getFile(extractedArchiveDirPath);

              final ViewEntity viewDefinition = new ViewEntity(viewConfig, configuration, extractedArchiveDirPath);

              boolean systemView = viewDefinition.isSystem();
              if (!systemView) {
                addDefinition(viewDefinition);
                executorService.submit(new Runnable() {
                  @Override
                  public void run() {
                    readViewArchive(viewDefinition, archiveFile, extractedArchiveDirFile, serverVersion);
                    migrateDataFromPreviousVersion(viewDefinition, serverVersion);
                  }
                });
              }

            } catch (Exception e) {
              String msg = "Caught exception reading view archive " + archiveFile.getAbsolutePath();
              LOG.error(msg, e);
            }
          }
        }
      }

    } catch (Exception e) {
      LOG.error("Caught exception reading view archives.", e);
    }

  }
Extract a view archive at the specified path

@param path
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java