Package org.codice.ddf.commands.catalog
Class CatalogCommands
java.lang.Object
org.codice.ddf.commands.catalog.CommandSupport
org.codice.ddf.commands.catalog.SubjectCommands
org.codice.ddf.commands.catalog.CatalogCommands
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
CqlCommands,DescribeCommand,ImportCommand,IngestCommand,InspectCommand,LatestCommand,RangeCommand,RemoveAllCommand,SpatialCommand,TransformersCommand
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContextprotected ddf.catalog.CatalogFrameworkprotected ddf.catalog.source.CatalogProviderstatic final org.joda.time.format.DateTimeFormatterprotected static final intprotected static final Stringprotected static final Stringprotected ddf.catalog.filter.FilterBuilderprotected booleanstatic final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.codice.ddf.commands.catalog.SubjectCommands
security, session, userFields inherited from class org.codice.ddf.commands.catalog.CommandSupport
console, ERROR_COLOR, MS_PER_SECOND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogFacadeprotected StringgetFormattedDuration(Duration duration) protected StringgetFormattedDuration(Instant start) protected <T> Optional<T> getServiceByFilter(Class<T> clazz, String filter) Methods inherited from class org.codice.ddf.commands.catalog.SubjectCommands
execute, executeWithSubjectMethods inherited from class org.codice.ddf.commands.catalog.CommandSupport
calculateRecordsPerSecond, printColor, printErrorMessage, printHeaderMessage, printProgressAndFlush, printSuccessMessage
-
Field Details
-
DATETIME_FORMATTER
public static final org.joda.time.format.DateTimeFormatter DATETIME_FORMATTER -
NAMESPACE
- See Also:
-
DEFAULT_NUMBER_OF_ITEMS
protected static final int DEFAULT_NUMBER_OF_ITEMS- See Also:
-
ESCAPE
- See Also:
-
SINGLE_WILDCARD
- See Also:
-
WILDCARD
- See Also:
-
DEFAULT_TRANSFORMER_ID
- See Also:
-
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