Class GetResilienceConfigActionResponse
java.lang.Object
org.frontcache.io.ActionResponse
org.frontcache.io.GetResilienceConfigActionResponse
Raw content of ./conf/resilience.properties (comments and empty lines preserved), for display in
the console.
Carries the value under BOTH the current
resilienceConfig name and the pre-2.7
hystrixConfig one, because the console is deployed separately from the nodes it reads: a
2.6 console must keep working against a 2.7 node, and a 2.7 console must keep working against a
2.6 node. Emitting both costs one duplicated string in a config dump and removes the whole class
of upgrade-ordering problem.
The legacy field is also accepted on the way IN, so this class can parse a 2.6 node's response.-
Field Summary
Fields inherited from class ActionResponse
RESPONSE_STATUS_ERROR, RESPONSE_STATUS_OK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.voidsetHystrixConfig(String hystrixConfig) Deprecated.pre-2.7 spelling ofsetResilienceConfig(String)voidsetResilienceConfig(String resilienceConfig) Methods inherited from class ActionResponse
getAction, getErrorDescription, getResponseStatus, setAction, setErrorDescription, setResponseStatus
-
Constructor Details
-
GetResilienceConfigActionResponse
public GetResilienceConfigActionResponse()
-
-
Method Details
-
getResilienceConfig
-
setResilienceConfig
-
getHystrixConfig
Deprecated.pre-2.7 spelling ofgetResilienceConfig(). Still serialized so an older console keeps rendering this panel; read the current name in new code. -
setHystrixConfig
Deprecated.pre-2.7 spelling ofsetResilienceConfig(String)Accepts a pre-2.7 node's response. Guarded so field order in the JSON cannot matter: whichever of the two names Jackson hands us first wins, and the current one is never overwritten by the legacy one.
-
getResilienceConfig().