public interface Source extends Describable
CatalogProvider or ConnectedSource. A remote
source is typically a FederatedSource, but can be a ConnectedSource.| Modifier and Type | Method and Description |
|---|---|
Set<ContentType> |
getContentTypes()
Gets the
ContentTypes that are currently stored by the Source. |
default Map<String,Set<String>> |
getSecurityAttributes()
Gets the map of security attributes associated with this source
|
boolean |
isAvailable()
This method states whether this source is available, typically connecting and performing some
sort of simple query or ping to the native catalog.
|
boolean |
isAvailable(SourceMonitor callback)
This method is the same as
isAvailable() but allows a caller to provide a SourceMonitor callback object which is meant to be used as a way for the Source to
dynamically contact the caller with its availability. |
SourceResponse |
query(QueryRequest request) |
getDescription, getId, getOrganization, getTitle, getVersionboolean isAvailable()
This is expected to be an expensive operation, possibly involving network I/O.
Typically only CatalogFramework implementations will call this and only
periodically.
ddf.catalog.util.SourcePollerboolean isAvailable(SourceMonitor callback)
isAvailable() but allows a caller to provide a SourceMonitor callback object which is meant to be used as a way for the Source to
dynamically contact the caller with its availability. The intent is to return a boolean as to
whether the Source is available at this very moment and also to use the SourceMonitor object to update the caller of this method if this Source's availability changes
later in the future.callback - - used to notify the caller of this method when the Source object wants
to update its availability.SourceResponse query(QueryRequest request) throws UnsupportedQueryException
request - the query to executeSourceResponse with query results and query response detailsUnsupportedQueryException - when the query is not understood, malformed, or not supported
by a SourceSet<ContentType> getContentTypes()
ContentTypes that are currently stored by the Source. Notice the
return object is a Set, meaning it returns all unique content types found in the Source
without duplications.Set of ContentTypes currently available from this Source.This work is licensed under a Creative Commons Attribution 4.0 International License.