public class SearchCommand extends BaseSearchCommand implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SearchCommand.IsAliveQueries |
BaseSearchCommand.CustomRunnerFactoryParams, BaseSearchCommand.Transformer<T>, BaseSearchCommand.Visitor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE_S_O_A_P |
static int |
DEFAULT_IS_ALIVE_ASYNCHRONOUS_DELAY_S |
static boolean |
DEFAULT_IS_ALIVE_SYNCHRONOUS |
boolean |
enableSOAP |
int |
isAliveAsynchronousDelayS |
protected SearchCommand.IsAliveQueries |
isAliveQueries |
boolean |
isAliveSynchronous |
java.util.List<SearchCache> |
searchCache |
customRunnerFactoryClassId, customRunnerFactoryParams, DEFAULT_MAX_CONCURRENT_QUERIES, DEFAULT_MAX_WAITING_QUERIES, defaultLogic, defaultTarget, maxConcurrentQueries, maxWaitingQueries, targetReporting
base, DEFAULT_BASE
Constructor and Description |
---|
SearchCommand() |
SearchCommand(SearchCommand o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(BaseSearchCommand.Transformer<T> transformer,
T[] t) |
void |
accept(BaseSearchCommand.Visitor visitor) |
<T> T |
accept(Command.Transformer<T> transformer,
T[] t) |
void |
accept(Command.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SearchCommand.
|
static SearchCommand |
fromString(java.lang.String s)
String representation of this SearchCommand.
|
int |
getIsAliveAsynchronousDelayS()
Elapsed time between two queries if the query is performed asynchronously.
|
SearchCommand.IsAliveQueries |
getIsAliveQueries() |
java.util.List<SearchCache> |
getSearchCache()
List of caches for this search command.
Cache entries will be looked up in all caches, in the order in which they are given. Incoming queries will be inserted in the first cache which accepts them. This allows complex configurations where you warmup some queries, and don't want them to be evicted by regular traffic
|
java.util.Map<java.lang.String,SearchCache> |
getSearchCacheAsMap()
Get the map of SearchCache, indexed by name
|
SearchCache |
getSearchCacheByName(java.lang.String _lookup)
Get the SearchCache for which the name matches _lookup
|
boolean |
isEnableSOAP() |
boolean |
isIsAliveSynchronous()
Should the query be performed synchronously on isAlive call or should it run in a background thread, and cached result be returned.
|
SearchCommand |
makeCopy()
Creates and returns a deep copy of this SearchCommand.
|
static SearchCommand |
readFrom(java.io.InputStream is)
Read this SearchCommand from an XML fragment.
|
boolean |
removeSearchCacheByName(java.lang.String _lookup)
Removes the SearchCache for which the name matches _lookup
|
void |
setEnableSOAP(boolean enableSOAP) |
void |
setIsAliveAsynchronousDelayS(int isAliveAsynchronousDelayS)
Elapsed time between two queries if the query is performed asynchronously.
|
void |
setIsAliveQueries(SearchCommand.IsAliveQueries __value) |
void |
setIsAliveSynchronous(boolean isAliveSynchronous)
Should the query be performed synchronously on isAlive call or should it run in a background thread, and cached result be returned.
|
java.lang.String |
toString()
String representation of this SearchCommand.
|
SearchCommand |
withBase(java.lang.String base) |
SearchCommand |
withCustomRunnerFactoryClassId(java.lang.String customRunnerFactoryClassId)
Deprecated.
|
SearchCommand |
withCustomRunnerFactoryParams(java.util.Collection<KeyValue> __values) |
SearchCommand |
withCustomRunnerFactoryParams(KeyValue... __values)
Deprecated.
|
SearchCommand |
withDefaultLogic(java.lang.String defaultLogic) |
SearchCommand |
withDefaultTarget(java.lang.String defaultTarget) |
SearchCommand |
withEnableSOAP(boolean enableSOAP) |
SearchCommand |
withEnableSOAP(java.lang.Boolean enableSOAP) |
SearchCommand |
withIsAliveAsynchronousDelayS(int isAliveAsynchronousDelayS) |
SearchCommand |
withIsAliveAsynchronousDelayS(java.lang.Integer isAliveAsynchronousDelayS) |
SearchCommand |
withIsAliveQueries(java.util.Collection<StringValue> __values) |
SearchCommand |
withIsAliveQueries(SearchCommand.IsAliveQueries __value) |
SearchCommand |
withIsAliveQueries(StringValue... __values) |
SearchCommand |
withIsAliveSynchronous(boolean isAliveSynchronous) |
SearchCommand |
withIsAliveSynchronous(java.lang.Boolean isAliveSynchronous) |
SearchCommand |
withMaxConcurrentQueries(int maxConcurrentQueries) |
SearchCommand |
withMaxConcurrentQueries(java.lang.Integer maxConcurrentQueries) |
SearchCommand |
withMaxWaitingQueries(int maxWaitingQueries) |
SearchCommand |
withMaxWaitingQueries(java.lang.Integer maxWaitingQueries) |
SearchCommand |
withSearchCache(java.util.Collection<SearchCache> __values) |
SearchCommand |
withSearchCache(SearchCache... __values)
List of caches for this search command.
Cache entries will be looked up in all caches, in the order in which they are given. Incoming queries will be inserted in the first cache which accepts them. This allows complex configurations where you warmup some queries, and don't want them to be evicted by regular traffic
|
SearchCommand |
withTargetReporting(java.lang.String targetReporting) |
void |
writeTo(java.io.OutputStream os)
Write this SearchCommand as an XML fragment
|
getCustomRunnerFactoryClassId, getCustomRunnerFactoryParams, getDefaultLogic, getDefaultTarget, getMaxConcurrentQueries, getMaxWaitingQueries, getTargetReporting, setCustomRunnerFactoryClassId, setCustomRunnerFactoryParams, setDefaultLogic, setDefaultTarget, setMaxConcurrentQueries, setMaxWaitingQueries, setTargetReporting, withCustomRunnerFactoryParams
public boolean enableSOAP
public static final boolean DEFAULT_ENABLE_S_O_A_P
public java.util.List<SearchCache> searchCache
protected SearchCommand.IsAliveQueries isAliveQueries
public boolean isAliveSynchronous
public static final boolean DEFAULT_IS_ALIVE_SYNCHRONOUS
public int isAliveAsynchronousDelayS
public static final int DEFAULT_IS_ALIVE_ASYNCHRONOUS_DELAY_S
public SearchCommand()
public SearchCommand(SearchCommand o)
public SearchCommand withDefaultLogic(java.lang.String defaultLogic)
withDefaultLogic
in class BaseSearchCommand
public SearchCommand withDefaultTarget(java.lang.String defaultTarget)
withDefaultTarget
in class BaseSearchCommand
public SearchCommand withTargetReporting(java.lang.String targetReporting)
withTargetReporting
in class BaseSearchCommand
@Deprecated public SearchCommand withCustomRunnerFactoryClassId(java.lang.String customRunnerFactoryClassId)
withCustomRunnerFactoryClassId
in class BaseSearchCommand
@Deprecated public SearchCommand withCustomRunnerFactoryParams(KeyValue... __values)
withCustomRunnerFactoryParams
in class BaseSearchCommand
public SearchCommand withCustomRunnerFactoryParams(java.util.Collection<KeyValue> __values)
withCustomRunnerFactoryParams
in class BaseSearchCommand
public SearchCommand withMaxConcurrentQueries(int maxConcurrentQueries)
withMaxConcurrentQueries
in class BaseSearchCommand
public SearchCommand withMaxConcurrentQueries(java.lang.Integer maxConcurrentQueries)
withMaxConcurrentQueries
in class BaseSearchCommand
public SearchCommand withMaxWaitingQueries(int maxWaitingQueries)
withMaxWaitingQueries
in class BaseSearchCommand
public SearchCommand withMaxWaitingQueries(java.lang.Integer maxWaitingQueries)
withMaxWaitingQueries
in class BaseSearchCommand
public SearchCommand withBase(java.lang.String base)
withBase
in class BaseSearchCommand
public void setEnableSOAP(boolean enableSOAP)
public boolean isEnableSOAP()
public SearchCommand withEnableSOAP(boolean enableSOAP)
public SearchCommand withEnableSOAP(java.lang.Boolean enableSOAP)
public java.util.List<SearchCache> getSearchCache()
public SearchCache getSearchCacheByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,SearchCache> getSearchCacheAsMap()
public boolean removeSearchCacheByName(java.lang.String _lookup)
public SearchCommand withSearchCache(SearchCache... __values)
public SearchCommand withSearchCache(java.util.Collection<SearchCache> __values)
public SearchCommand.IsAliveQueries getIsAliveQueries()
public void setIsAliveQueries(SearchCommand.IsAliveQueries __value)
public SearchCommand withIsAliveQueries(StringValue... __values)
public SearchCommand withIsAliveQueries(java.util.Collection<StringValue> __values)
public SearchCommand withIsAliveQueries(SearchCommand.IsAliveQueries __value)
public void setIsAliveSynchronous(boolean isAliveSynchronous)
public boolean isIsAliveSynchronous()
public SearchCommand withIsAliveSynchronous(boolean isAliveSynchronous)
public SearchCommand withIsAliveSynchronous(java.lang.Boolean isAliveSynchronous)
public void setIsAliveAsynchronousDelayS(int isAliveAsynchronousDelayS)
public int getIsAliveAsynchronousDelayS()
public SearchCommand withIsAliveAsynchronousDelayS(int isAliveAsynchronousDelayS)
public SearchCommand withIsAliveAsynchronousDelayS(java.lang.Integer isAliveAsynchronousDelayS)
public SearchCommand makeCopy()
makeCopy
in class BaseSearchCommand
public static SearchCommand readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class BaseSearchCommand
javax.xml.bind.JAXBException
java.io.IOException
public static SearchCommand fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class BaseSearchCommand
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class BaseSearchCommand
com.exalead.util.TypedException
public void accept(BaseSearchCommand.Visitor visitor) throws com.exalead.util.TypedException
accept
in class BaseSearchCommand
com.exalead.util.TypedException
public void accept(Command.Visitor visitor) throws com.exalead.util.TypedException
public <T> T accept(BaseSearchCommand.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class BaseSearchCommand
com.exalead.util.TypedException
public <T> T accept(Command.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.