org.gcube.opensearch.opensearchoperator
Class OpenSearchOpConfig

java.lang.Object
  extended by org.gcube.opensearch.opensearchoperator.OpenSearchOpConfig

public class OpenSearchOpConfig
extends java.lang.Object

Configuration class parameterizing the operation of the OpenSearchOp

Author:
gerasimos.farantatos

Field Summary
 java.lang.String dirPath
          The directory to look for resources when operating in local mode
static java.lang.String dirPathDef
           
 java.util.Map<java.lang.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.
 java.lang.Integer resultsPerPage
          The number of results that the operator requests for each page
static java.lang.Integer resultsPerPageDef
          The default number of results requested per page
 java.lang.String schemaPath
          The directory to look for a schema defining the OpenSearchResource validation is enabled
static java.lang.String schemaPathDef
           
 java.lang.Boolean sequentialResults
          If false, result retrieval from brokered resources is performed by separate threads
static java.lang.Boolean sequentialResultsDef
          The default value for the sequentialResults configuration parameter
 java.lang.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 java.lang.Boolean useLocalResourceRepositoryDef
          The default value for useLocalResourceRepository
 
Constructor Summary
OpenSearchOpConfig()
          No-arg constructor.
OpenSearchOpConfig(java.lang.Integer resultsPerPage, java.lang.Boolean serializeSources, java.lang.Boolean useLocalResourceRespository, java.util.Map<java.lang.String,FactoryClassNamePair> factories)
          Creates a new OpenSearchOpConfig with values overriding the defaults
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dirPathDef

public static final java.lang.String dirPathDef

schemaPathDef

public static final java.lang.String schemaPathDef

resultsPerPageDef

public static final java.lang.Integer resultsPerPageDef
The default number of results requested per page


sequentialResultsDef

public static final java.lang.Boolean sequentialResultsDef
The default value for the sequentialResults configuration parameter


useLocalResourceRepositoryDef

public static final java.lang.Boolean useLocalResourceRepositoryDef
The default value for useLocalResourceRepository


dirPath

public java.lang.String dirPath
The directory to look for resources when operating in local mode


schemaPath

public java.lang.String schemaPath
The directory to look for a schema defining the OpenSearchResource validation is enabled


ISCache

public ISOpenSearchResourceCache ISCache
Resource cache, to be further populated by ISResourceRepository. Set only if this#useLocalResourceRepository is false


resultsPerPage

public java.lang.Integer resultsPerPage
The number of results that the operator requests for each page


sequentialResults

public java.lang.Boolean sequentialResults
If false, result retrieval from brokered resources is performed by separate threads


useLocalResourceRepository

public java.lang.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


factories

public java.util.Map<java.lang.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

Constructor Detail

OpenSearchOpConfig

public OpenSearchOpConfig()
No-arg constructor. Default values are implied


OpenSearchOpConfig

public OpenSearchOpConfig(java.lang.Integer resultsPerPage,
                          java.lang.Boolean serializeSources,
                          java.lang.Boolean useLocalResourceRespository,
                          java.util.Map<java.lang.String,FactoryClassNamePair> factories)
Creates a new OpenSearchOpConfig with values overriding the defaults

Parameters:
resultsPerPage - The number of results to be requested per page. If null, the default value will be used
serializeSources - 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 functionality