...
Sources are components that enable
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | true | ApplicationName |
---|
|
to talk to back-end services. They let
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
do query and ingest operations on catalog stores, and query operations on federated sources. Sources reside in the Sources area of the
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
Overview.
Anchor |
---|
| CreatingANewSource |
---|
| CreatingANewSource |
---|
|
Creating a New Source
...
- Create a new class that implements the specified
Source
interface. - Implement the required methods.
- Create OSGi descriptor file to communicate with the OSGi registry (described in the Working with OSGi section).
- Import
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
packages - Register source class as service to OSGi registry
- Deploy to
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | true | ApplicationName |
---|
|
...
Create java class that implements CatalogProvider
Code Block |
---|
public class TestCatalogProvider implements ddf.catalog.source.CatalogProvider
|
Implement the required methods from the ddf.catalog.source.CatalogProvider
interface
Code Block |
---|
public CreateResponse create(CreateRequest createRequest) throws IngestException;
public UpdateResponset update(UpdateRequest updateRequest) throws IngestException;
public DeleteResponse delete(DeleteRequest deleteRequest) throws IngestException;
|
Import the
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | true | ApplicationName |
---|
|
interface packages to the bundle manifest (in addition to any other required packages): Code Block |
---|
Import-Package: ddf.catalog, ddf.catalog.source
|
Export the service to the OSGi registry:
Code Block |
---|
| xml |
---|
| xml |
---|
title | Blueprint example | xml |
---|
|
<service ref="[[TestCatalogProvider]]" interface="ddf.catalog.source.CatalogProvider" />
|
The
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
Integrator's Guide provides details on the following Catalog Providers that come with
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
out of the box:
Tip |
---|
A code example of a Catalog Provider delivered with Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | true | ApplicationName |
---|
| is the Catalog Solr Embedded Provider. |
...
Create Java class that implements FederatedSource
Code Block |
---|
public class TestFederatedSource implements ddf.catalog.source.FederatedSource
|
Implement the required methods of the ddf.catalog.source.FederatedSource
interface.
Import the
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | true | ApplicationName |
---|
|
interface packages to the bundle manifest (in addition to any other required packages): Code Block |
---|
Import-Package: ddf.catalog, ddf.catalog.source
|
Export the service to the OSGi registry:
Code Block |
---|
| xml |
---|
| xml |
---|
title | Blueprint examplexml |
---|
|
<service ref="[[TestFederatedSource]]" interface="ddf.catalog.source.FederatedSource" /> |
The
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
Integrator's Guide provides details on the following Federated Sources that come with
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | true | ApplicationName |
---|
|
out of the box:
Tip |
---|
A code example of a Federated Source delivered with Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
| can be found in ddf.catalog.source.solr |
...
Create Java class that implements ConnectedSource
Code Block |
---|
public class TestConnectedSource implements ddf.catalog.source.ConnectedSource
|
Implement the required methods of the ddf.catalog.source.ConnectedSource
interface.
Import the
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
interface packages to the bundle manifest (in addition to any other required packages): Code Block |
---|
Import-Package: ddf.catalog, ddf.catalog.source
|
Export the service to the OSGi registry:
Code Block |
---|
| xml |
---|
| xml |
---|
title | Blueprint examplexml |
---|
|
<service ref="[[TestConnectedSource]]" interface="ddf.catalog.source.ConnectedSource" /> |
...