public abstract class AbstractFederationStrategy extends Object implements NormalizingFederationStrategy
| Constructor and Description |
|---|
AbstractFederationStrategy(ExecutorService executor,
List<ddf.catalog.plugin.PreFederatedQueryPlugin> preQuery,
List<ddf.catalog.plugin.PostFederatedQueryPlugin> postQuery)
Instantiates an
AbstractFederationStrategy with the provided ExecutorService. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Runnable |
createMonitor(ExecutorService exceutor,
Map<ddf.catalog.source.Source,Future<ddf.catalog.operation.SourceResponse>> futures,
ddf.catalog.operation.impl.QueryResponseImpl returnResults,
ddf.catalog.operation.Query query)
Creates the monitor for federated queries.
|
ddf.catalog.operation.QueryResponse |
federate(List<ddf.catalog.source.Source> sources,
ddf.catalog.operation.QueryRequest queryRequest) |
void |
setMaxStartIndex(int maxIndex)
To be set via Spring/Blueprint
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNormalizeResultspublic AbstractFederationStrategy(ExecutorService executor, List<ddf.catalog.plugin.PreFederatedQueryPlugin> preQuery, List<ddf.catalog.plugin.PostFederatedQueryPlugin> postQuery)
AbstractFederationStrategy with the provided ExecutorService.queryExecutorService - the ExecutorService for queriesprotected abstract Runnable createMonitor(ExecutorService exceutor, Map<ddf.catalog.source.Source,Future<ddf.catalog.operation.SourceResponse>> futures, ddf.catalog.operation.impl.QueryResponseImpl returnResults, ddf.catalog.operation.Query query)
queryExecutorService - futures - returnResults - the query resultsquery - Runnablepublic ddf.catalog.operation.QueryResponse federate(List<ddf.catalog.source.Source> sources, ddf.catalog.operation.QueryRequest queryRequest)
federate in interface ddf.catalog.federation.FederationStrategypublic void setMaxStartIndex(int maxIndex)
maxStartIndex - the new default max start index valueCopyright © 2014–2015 Cohesive Integrations, LLC. All rights reserved.