com.senseidb.conf
Class SenseiServerBuilder

java.lang.Object
  extended by com.senseidb.conf.SenseiServerBuilder
All Implemented Interfaces:
SenseiConfParams

public class SenseiServerBuilder
extends Object
implements SenseiConfParams


Field Summary
static String SCHEMA_FILE_JSON
           
static String SCHEMA_FILE_XML
           
static String SENSEI_PROPERTIES
           
 
Fields inherited from interface com.senseidb.conf.SenseiConfParams
DEFAULT_VERSION_LONG_COMPARATOR, DEFAULT_VERSION_STRING_COMPARATOR, NODE_ID, PARTITIONS, SENSEI_CLUSTER_CLIENT_NAME, SENSEI_CLUSTER_NAME, SENSEI_CLUSTER_TIMEOUT, SENSEI_CLUSTER_URL, SENSEI_GATEWAY, SENSEI_HOURGLASS_FREQUENCY, SENSEI_HOURGLASS_FREQUENCY_DAY, SENSEI_HOURGLASS_FREQUENCY_HOUR, SENSEI_HOURGLASS_FREQUENCY_MIN, SENSEI_HOURGLASS_SCHEDULE, SENSEI_HOURGLASS_TRIMTHRESHOLD, SENSEI_INDEX_ANALYZER, SENSEI_INDEX_BATCH_DELAY, SENSEI_INDEX_BATCH_MAXSIZE, SENSEI_INDEX_BATCH_SIZE, SENSEI_INDEX_CUSTOM, SENSEI_INDEX_DIR, SENSEI_INDEX_FRESHNESS, SENSEI_INDEX_INTERPRETER, SENSEI_INDEX_MANAGER, SENSEI_INDEX_MANAGER_FILTER, SENSEI_INDEX_PRUNER, SENSEI_INDEX_REALTIME, SENSEI_INDEX_SIMILARITY, SENSEI_INDEXER_COPIER, SENSEI_INDEXER_COPIER_HDFS, SENSEI_INDEXER_MODE, SENSEI_INDEXER_TYPE, SENSEI_INDEXER_TYPE_HOURGLASS, SENSEI_INDEXER_TYPE_ZOIE, SENSEI_MX4J_PORT, SENSEI_PLUGIN_SVCS, SENSEI_QUERY_BUILDER_FACTORY, SENSEI_SHARDING_STRATEGY, SENSEI_SKIP_BAD_RECORDS, SENSEI_VERSION_COMPARATOR, SENSEI_ZOIE_RETENTION_CLASS, SENSEI_ZOIE_RETENTION_COLUMN, SENSEI_ZOIE_RETENTION_DAYS, SENSEI_ZOIE_RETENTION_TIMEUNIT, SERVER_BROKER_MAXTHREAD, SERVER_BROKER_MAXWAIT, SERVER_BROKER_MINTHREAD, SERVER_BROKER_PORT, SERVER_BROKER_WEBAPP_PATH, SERVER_PORT, SERVER_REQ_THREAD_POOL_KEEPALIVE, SERVER_REQ_THREAD_POOL_MAXSIZE, SERVER_REQ_THREAD_POOL_SIZE, SERVER_SEARCH_ROUTER_FACTORY
 
Constructor Summary
SenseiServerBuilder(File confDir, Map<String,Object> properties)
           
 
Method Summary
 com.linkedin.norbert.javacompat.cluster.ClusterClient buildClusterClient()
           
 SenseiCore buildCore()
           
 org.mortbay.jetty.Server buildHttpRestServer()
           
static int[] buildPartitions(String[] partitionArray)
           
 SenseiServer buildServer()
           
 org.apache.commons.configuration.Configuration getConfiguration()
           
 SenseiPluginRegistry getPluginRegistry()
           
 Comparator<String> getVersionComparator()
           
static org.json.JSONObject loadSchema(File confDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SENSEI_PROPERTIES

public static final String SENSEI_PROPERTIES
See Also:
Constant Field Values

SCHEMA_FILE_XML

public static final String SCHEMA_FILE_XML
See Also:
Constant Field Values

SCHEMA_FILE_JSON

public static final String SCHEMA_FILE_JSON
See Also:
Constant Field Values
Constructor Detail

SenseiServerBuilder

public SenseiServerBuilder(File confDir,
                           Map<String,Object> properties)
                    throws Exception
Throws:
Exception
Method Detail

getConfiguration

public org.apache.commons.configuration.Configuration getConfiguration()

getPluginRegistry

public SenseiPluginRegistry getPluginRegistry()

buildClusterClient

public com.linkedin.norbert.javacompat.cluster.ClusterClient buildClusterClient()

buildHttpRestServer

public org.mortbay.jetty.Server buildHttpRestServer()
                                             throws Exception
Throws:
Exception

loadSchema

public static org.json.JSONObject loadSchema(File confDir)
                                      throws Exception
Throws:
Exception

buildPartitions

public static int[] buildPartitions(String[] partitionArray)
                             throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

buildCore

public SenseiCore buildCore()
                     throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

getVersionComparator

public Comparator<String> getVersionComparator()

buildServer

public SenseiServer buildServer()
                         throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException


Copyright © 2010-2012. All Rights Reserved.