org.sonar.search
Class SearchServer

java.lang.Object
  extended by org.sonar.search.SearchServer
All Implemented Interfaces:
Monitored

public class SearchServer
extends Object
implements Monitored


Field Summary
static String ES_CLUSTER_INET
           
static String ES_CLUSTER_PROPERTY
           
static String ES_PORT_PROPERTY
           
static String SONAR_NODE_NAME
           
static String SONAR_PATH_DATA
           
static String SONAR_PATH_HOME
           
static String SONAR_PATH_LOG
           
static String SONAR_PATH_TEMP
           
 
Constructor Summary
SearchServer(Props props)
           
 
Method Summary
 void awaitStop()
          Blocks until the process is terminated
 boolean isReady()
          True if the process is started and operational (-> can accept requests), false if it's still starting.
static void main(String... args)
           
 void start()
          Starts process.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SONAR_NODE_NAME

public static final String SONAR_NODE_NAME
See Also:
Constant Field Values

ES_PORT_PROPERTY

public static final String ES_PORT_PROPERTY
See Also:
Constant Field Values

ES_CLUSTER_PROPERTY

public static final String ES_CLUSTER_PROPERTY
See Also:
Constant Field Values

ES_CLUSTER_INET

public static final String ES_CLUSTER_INET
See Also:
Constant Field Values

SONAR_PATH_HOME

public static final String SONAR_PATH_HOME
See Also:
Constant Field Values

SONAR_PATH_DATA

public static final String SONAR_PATH_DATA
See Also:
Constant Field Values

SONAR_PATH_TEMP

public static final String SONAR_PATH_TEMP
See Also:
Constant Field Values

SONAR_PATH_LOG

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

SearchServer

public SearchServer(Props props)
Method Detail

start

public void start()
Description copied from interface: Monitored
Starts process. No need to block until fully started and operational.

Specified by:
start in interface Monitored

isReady

public boolean isReady()
Description copied from interface: Monitored
True if the process is started and operational (-> can accept requests), false if it's still starting. An exception is thrown is process failed to start (not starting nor started).

Specified by:
isReady in interface Monitored

awaitStop

public void awaitStop()
Description copied from interface: Monitored
Blocks until the process is terminated

Specified by:
awaitStop in interface Monitored

stop

public void stop()
Specified by:
stop in interface Monitored

main

public static void main(String... args)


Copyright © 2009–2015 SonarSource. All rights reserved.