public class OpenSearchOpConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
dirPath
The directory to look for resources when operating in local mode
|
static String |
dirPathDef |
Map<String,FactoryClassNamePair> |
factories
The factory class names of the implemented factories associated with the namespaces for which they provide functionality
A factory associated with the standard OpenSearch namespace is expected to be always present in this mapping
|
ISOpenSearchResourceCache |
ISCache
Resource cache, to be further populated by
ISResourceRepository. |
Integer |
resultsPerPage
The number of results that the operator requests for each page
|
static Integer |
resultsPerPageDef
The default number of results requested per page
|
String |
schemaPath
The directory to look for a schema defining the OpenSearchResource validation is enabled
|
static String |
schemaPathDef |
Boolean |
sequentialResults
If false, result retrieval from brokered resources is performed by separate threads
|
static Boolean |
sequentialResultsDef
The default value for the sequentialResults configuration parameter
|
Boolean |
useLocalResourceRepository
If false,
OpenSearchResource retrieval is performed using an ISResourceRepository
Otherwise, OpenSearchResources are retrieved locally (either from the local filesystem or from a url) using a LocalResourceRepository |
static Boolean |
useLocalResourceRepositoryDef
The default value for
useLocalResourceRepository |
| Constructor and Description |
|---|
OpenSearchOpConfig()
No-arg constructor.
|
OpenSearchOpConfig(Integer resultsPerPage,
Boolean serializeSources,
Boolean useLocalResourceRespository,
Map<String,FactoryClassNamePair> factories)
Creates a new OpenSearchOpConfig with values overriding the defaults
|
public static final String dirPathDef
public static final String schemaPathDef
public static final Integer resultsPerPageDef
public static final Boolean sequentialResultsDef
public static final Boolean useLocalResourceRepositoryDef
useLocalResourceRepositorypublic String dirPath
public String schemaPath
public ISOpenSearchResourceCache ISCache
ISResourceRepository.
Set only if this#useLocalResourceRepository is falsepublic Integer resultsPerPage
public Boolean sequentialResults
public Boolean useLocalResourceRepository
OpenSearchResource retrieval is performed using an ISResourceRepository
Otherwise, OpenSearchResources are retrieved locally (either from the local filesystem or from a url) using a LocalResourceRepositorypublic Map<String,FactoryClassNamePair> factories
public OpenSearchOpConfig()
public OpenSearchOpConfig(Integer resultsPerPage, Boolean serializeSources, Boolean useLocalResourceRespository, Map<String,FactoryClassNamePair> factories)
resultsPerPage - The number of results to be requested per page. If null, the default value will be usedserializeSources - true if the client wishes the results to be obtained from the OpenSearch provider serially, false
otherwise. Use false to increase performance.useLocalResourceRespository - true if an IS is not available for the retrieval and persistence of OpenSearch resources.
In that case, the local FS and/or the network will be used instead. False, if an IS can be used.factories - The factory class names of the implemented factories associated with the namespaces for which they provide functionalityCopyright © 2014. All Rights Reserved.