org.gcube.opensearch.opensearchoperator
Class OpenSearchOpConfig

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

public class OpenSearchOpConfig
extends Object

Configuration class parameterizing the operation of the OpenSearchOp

Author:
gerasimos.farantatos

Field Summary
 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 Summary
OpenSearchOpConfig()
          No-arg constructor.
OpenSearchOpConfig(Integer resultsPerPage, Boolean serializeSources, Boolean useLocalResourceRespository, Map<String,FactoryClassNamePair> factories)
          Creates a new OpenSearchOpConfig with values overriding the defaults
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dirPathDef

public static final String dirPathDef

schemaPathDef

public static final String schemaPathDef

resultsPerPageDef

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


sequentialResultsDef

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


useLocalResourceRepositoryDef

public static final Boolean useLocalResourceRepositoryDef
The default value for useLocalResourceRepository


dirPath

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


schemaPath

public 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 Integer resultsPerPage
The number of results that the operator requests for each page


sequentialResults

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


useLocalResourceRepository

public 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 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

Constructor Detail

OpenSearchOpConfig

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


OpenSearchOpConfig

public OpenSearchOpConfig(Integer resultsPerPage,
                          Boolean serializeSources,
                          Boolean useLocalResourceRespository,
                          Map<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


Copyright © 2013. All Rights Reserved.