public abstract class BaseSearchCommand extends Command
Modifier and Type | Field and Description |
---|---|
protected BaseSearchCommand |
config |
protected long |
lastSemaphoreWarning |
protected java.util.concurrent.atomic.AtomicInteger |
nbQueuedQueries |
protected com.exalead.search.SearchLogicRunnerPool |
searchRunnerPool |
protected java.util.concurrent.Semaphore |
semaphore |
protected com.exalead.search.SearchConfigHolder |
shc |
delegate, logger, queryState, runningQueries, startingQueries
Constructor and Description |
---|
BaseSearchCommand(BaseSearchCommand config) |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Build the configuration
|
protected SearchParameters |
getArgsFromRequest(javax.servlet.http.HttpServletRequest req) |
protected void |
getArgsFromRequest(javax.servlet.http.HttpServletRequest req,
SearchParameters collection) |
protected SearchParameters |
getArgsFromXMLV10Request(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
onDeinit()
When this is called, this command is not used anymore, and the lock has been released.
|
protected static void |
sendErrorWithDispatch(javax.servlet.http.HttpServletResponse resp,
java.lang.String suffixData,
java.lang.Throwable e) |
void |
waitForStartingQueries()
Called at the beginning of a dynamic reconfiguration cycle.
|
execute, onPreReconfiguration, onQueryDone, onQueryStarted, onQueryStarting, onReconfigurationStarting, removeJettyStuff, sendError, setSearchAPIDelegate
protected final com.exalead.search.SearchLogicRunnerPool searchRunnerPool
protected BaseSearchCommand config
protected com.exalead.search.SearchConfigHolder shc
protected java.util.concurrent.Semaphore semaphore
protected java.util.concurrent.atomic.AtomicInteger nbQueuedQueries
protected long lastSemaphoreWarning
public BaseSearchCommand(BaseSearchCommand config)
public void onDeinit() throws java.lang.Exception
Command
public void waitForStartingQueries()
Command
waitForStartingQueries
in class Command
public void configure()
Command
protected SearchParameters getArgsFromRequest(javax.servlet.http.HttpServletRequest req)
protected void getArgsFromRequest(javax.servlet.http.HttpServletRequest req, SearchParameters collection) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected SearchParameters getArgsFromXMLV10Request(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws com.exalead.search.SearchProcessingException
com.exalead.search.SearchProcessingException
protected static void sendErrorWithDispatch(javax.servlet.http.HttpServletResponse resp, java.lang.String suffixData, java.lang.Throwable e) throws java.io.IOException
java.io.IOException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.