Class RemoteSolrCatalogProvider

All Implemented Interfaces:
ddf.catalog.source.CatalogProvider, ddf.catalog.source.Source, ddf.catalog.util.Describable, ddf.catalog.util.Maskable, org.codice.ddf.platform.services.common.Describable

public abstract class RemoteSolrCatalogProvider extends MaskableImpl implements ddf.catalog.source.CatalogProvider
Common base class for all remote Solr Catalog providers.
  • Field Details

  • Constructor Details

    • RemoteSolrCatalogProvider

      public RemoteSolrCatalogProvider(ddf.catalog.filter.FilterAdapter filterAdapter, org.apache.solr.client.solrj.SolrClient client, SolrFilterDelegateFactory solrFilterDelegateFactory, @Nullable DynamicSchemaResolver resolver)
      Constructor.
      Parameters:
      filterAdapter - filter adaptor this provider will use
      client - client this provider will use to connect to Solr
      solrFilterDelegateFactory - Solr filter delegate factory this provider will use
      resolver - schema resolver this provider will use. A default schema resolver will be used if this parameter is null.
  • Method Details

    • maskId

      public void maskId(String id)
      Specified by:
      maskId in interface ddf.catalog.util.Maskable
      Overrides:
      maskId in class MaskableImpl
    • setForceAutoCommit

      public void setForceAutoCommit(boolean forceAutoCommit)
      Used to signal to the Solr client to commit on every transaction. Updates the underlying ConfigurationStore so that the property is propagated throughout the Solr Catalog Provider code.
      Parameters:
      forceAutoCommit - true to force auto-commits
    • getContentTypes

      public Set<ddf.catalog.data.ContentType> getContentTypes()
      Specified by:
      getContentTypes in interface ddf.catalog.source.Source
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface ddf.catalog.source.Source
    • isAvailable

      public boolean isAvailable(ddf.catalog.source.SourceMonitor callback)
      Specified by:
      isAvailable in interface ddf.catalog.source.Source
    • query

      public ddf.catalog.operation.SourceResponse query(ddf.catalog.operation.QueryRequest queryRequest) throws ddf.catalog.source.UnsupportedQueryException
      Specified by:
      query in interface ddf.catalog.source.Source
      Throws:
      ddf.catalog.source.UnsupportedQueryException
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ddf.catalog.util.Describable
      Specified by:
      getDescription in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getDescription in class DescribableImpl
    • getOrganization

      public String getOrganization()
      Specified by:
      getOrganization in interface ddf.catalog.util.Describable
      Specified by:
      getOrganization in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getOrganization in class DescribableImpl
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface ddf.catalog.util.Describable
      Specified by:
      getTitle in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getTitle in class DescribableImpl
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface ddf.catalog.util.Describable
      Specified by:
      getVersion in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getVersion in class DescribableImpl
    • create

      public ddf.catalog.operation.CreateResponse create(ddf.catalog.operation.CreateRequest createRequest) throws ddf.catalog.source.IngestException
      Specified by:
      create in interface ddf.catalog.source.CatalogProvider
      Throws:
      ddf.catalog.source.IngestException
    • delete

      public ddf.catalog.operation.DeleteResponse delete(ddf.catalog.operation.DeleteRequest deleteRequest) throws ddf.catalog.source.IngestException
      Specified by:
      delete in interface ddf.catalog.source.CatalogProvider
      Throws:
      ddf.catalog.source.IngestException
    • update

      public ddf.catalog.operation.UpdateResponse update(ddf.catalog.operation.UpdateRequest updateRequest) throws ddf.catalog.source.IngestException
      Specified by:
      update in interface ddf.catalog.source.CatalogProvider
      Throws:
      ddf.catalog.source.IngestException
    • shutdown

      public void shutdown()
      Shuts down the connection to Solr and releases resources.