Class CatalogCommands

All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
Direct Known Subclasses:
CqlCommands, DescribeCommand, ImportCommand, IngestCommand, InspectCommand, LatestCommand, RangeCommand, RemoveAllCommand, SpatialCommand, TransformersCommand

public abstract class CatalogCommands extends SubjectCommands
Parent object to all Catalog Commands. Provides common methods and instance variables as well as the extension of OsgiCommandSupport and SubjectCommands that Catalog Commands can use.
Author:
Ashraf Barakat
  • Field Details

    • DATETIME_FORMATTER

      public static final org.joda.time.format.DateTimeFormatter DATETIME_FORMATTER
    • NAMESPACE

      public static final String NAMESPACE
      See Also:
    • DEFAULT_NUMBER_OF_ITEMS

      protected static final int DEFAULT_NUMBER_OF_ITEMS
      See Also:
    • ESCAPE

      protected static final String ESCAPE
      See Also:
    • SINGLE_WILDCARD

      protected static final String SINGLE_WILDCARD
      See Also:
    • WILDCARD

      protected static final String WILDCARD
      See Also:
    • DEFAULT_TRANSFORMER_ID

      protected static final String DEFAULT_TRANSFORMER_ID
      See Also:
    • SERIALIZED_OBJECT_ID

      protected static final String SERIALIZED_OBJECT_ID
      See Also:
    • isProvider

      protected boolean isProvider
    • catalogProvider

      protected ddf.catalog.source.CatalogProvider catalogProvider
    • catalogFramework

      protected ddf.catalog.CatalogFramework catalogFramework
    • bundleContext

      protected org.osgi.framework.BundleContext bundleContext
    • filterBuilder

      protected ddf.catalog.filter.FilterBuilder filterBuilder
  • Constructor Details

    • CatalogCommands

      public CatalogCommands()
  • Method Details

    • getCatalog

      protected CatalogFacade getCatalog()
    • getServiceByFilter

      protected <T> Optional<T> getServiceByFilter(Class<T> clazz, String filter) throws org.osgi.framework.InvalidSyntaxException
      Throws:
      org.osgi.framework.InvalidSyntaxException
    • getFormattedDuration

      protected String getFormattedDuration(Instant start)
    • getFormattedDuration

      protected String getFormattedDuration(Duration duration)