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 void
close()
Deprecated.String
getErrorMessage()
Deprecated.Get error message when the circuit breaker triggersvoid
init(org.apache.solr.common.util.NamedList<?> args)
Deprecated.init
will be called just once, immediately after creation.boolean
isTripped()
Deprecated.Check if circuit breaker is tripped.void
setCpuEnabled(String enabled)
Deprecated.void
setCpuThreshold(int threshold)
Deprecated.void
setCpuThreshold(String threshold)
Deprecated.void
setMemEnabled(String enabled)
Deprecated.void
setMemThreshold(int threshold)
Deprecated.void
setMemThreshold(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:CircuitBreaker
Check if circuit breaker is tripped.- Specified by:
isTripped
in classCircuitBreaker
-
getErrorMessage
public String getErrorMessage()
Deprecated.Description copied from class:CircuitBreaker
Get error message when the circuit breaker triggers- Specified by:
getErrorMessage
in classCircuitBreaker
-
init
public void init(org.apache.solr.common.util.NamedList<?> args)
Deprecated.Description copied from interface:NamedListInitializedPlugin
init
will 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:
init
in interfaceNamedListInitializedPlugin
- Overrides:
init
in classCircuitBreaker
- Parameters:
args
- non-null list of initialization parameters (may be empty)
-
close
public void close() throws IOException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in 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.
-
-