Class AppCatalogSolrClient

java.lang.Object
org.apache.hadoop.yarn.appcatalog.application.AppCatalogSolrClient

public class AppCatalogSolrClient extends Object
Driver class for accessing Solr.
  • Constructor Details

    • AppCatalogSolrClient

      public AppCatalogSolrClient()
  • Method Details

    • getSolrClient

      public org.apache.solr.client.solrj.SolrClient getSolrClient()
    • getRecommendedApps

      public List<AppStoreEntry> getRecommendedApps()
    • search

      public List<AppStoreEntry> search(String keyword)
    • listAppEntries

      public List<AppEntry> listAppEntries()
    • findAppStoreEntry

      public AppStoreEntry findAppStoreEntry(String id)
    • findAppEntry

      public AppEntry findAppEntry(String id)
    • deployApp

      public void deployApp(String id, org.apache.hadoop.yarn.service.api.records.Service service) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteApp

      public void deleteApp(String id)
    • register

      public void register(Application app) throws IOException
      Throws:
      IOException
    • register

      protected void register(AppStoreEntry app) throws IOException
      Throws:
      IOException
    • upgradeApp

      public void upgradeApp(org.apache.hadoop.yarn.service.api.records.Service service) throws IOException, org.apache.solr.client.solrj.SolrServerException
      Throws:
      IOException
      org.apache.solr.client.solrj.SolrServerException