Class CircuitBreakerManager
- java.lang.Object
-
- org.apache.solr.util.circuitbreaker.CircuitBreaker
-
- org.apache.solr.util.circuitbreaker.CircuitBreakerManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,NamedListInitializedPlugin
@Deprecated(since="9.4") public class CircuitBreakerManager extends CircuitBreaker
Deprecated.Use individual Circuit Breakers insteadSingle CircuitBreaker that registers both a Memory and a LoadAverage CircuitBreaker. This is only for backward compatibility with the 9.x versions prior to 9.4.
-
-
Constructor Summary
Constructors Constructor Description CircuitBreakerManager()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.StringgetErrorMessage()Deprecated.Get error message when the circuit breaker triggersvoidinit(org.apache.solr.common.util.NamedList<?> args)Deprecated.initwill be called just once, immediately after creation.booleanisTripped()Deprecated.Check if circuit breaker is tripped.voidsetCpuEnabled(String enabled)Deprecated.voidsetCpuThreshold(int threshold)Deprecated.voidsetCpuThreshold(String threshold)Deprecated.voidsetMemEnabled(String enabled)Deprecated.voidsetMemThreshold(int threshold)Deprecated.voidsetMemThreshold(String threshold)Deprecated.-
Methods inherited from class org.apache.solr.util.circuitbreaker.CircuitBreaker
getErrorCode, getRequestTypes, isWarnOnly, setRequestTypes, setWarnOnly
-
-
-
-
Method Detail
-
isTripped
public boolean isTripped()
Deprecated.Description copied from class:CircuitBreakerCheck if circuit breaker is tripped.- Specified by:
isTrippedin classCircuitBreaker
-
getErrorMessage
public String getErrorMessage()
Deprecated.Description copied from class:CircuitBreakerGet error message when the circuit breaker triggers- Specified by:
getErrorMessagein classCircuitBreaker
-
init
public void init(org.apache.solr.common.util.NamedList<?> args)
Deprecated.Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Specified by:
initin interfaceNamedListInitializedPlugin- Overrides:
initin classCircuitBreaker- Parameters:
args- non-null list of initialization parameters (may be empty)
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classCircuitBreaker- Throws:
IOException
-
setMemEnabled
public void setMemEnabled(String enabled)
Deprecated.
-
setMemThreshold
public void setMemThreshold(int threshold)
Deprecated.
-
setMemThreshold
public void setMemThreshold(String threshold)
Deprecated.
-
setCpuEnabled
public void setCpuEnabled(String enabled)
Deprecated.
-
setCpuThreshold
public void setCpuThreshold(int threshold)
Deprecated.
-
setCpuThreshold
public void setCpuThreshold(String threshold)
Deprecated.
-
-