Class GetResilienceConfigActionResponse

java.lang.Object
org.frontcache.io.ActionResponse
org.frontcache.io.GetResilienceConfigActionResponse

public class GetResilienceConfigActionResponse extends ActionResponse
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.
  • Constructor Details

    • GetResilienceConfigActionResponse

      public GetResilienceConfigActionResponse()
  • Method Details

    • getResilienceConfig

      public String getResilienceConfig()
    • setResilienceConfig

      public void setResilienceConfig(String resilienceConfig)
    • getHystrixConfig

      @Deprecated public String getHystrixConfig()
      Deprecated.
      pre-2.7 spelling of getResilienceConfig(). Still serialized so an older console keeps rendering this panel; read the current name in new code.
    • setHystrixConfig

      @Deprecated public void setHystrixConfig(String hystrixConfig)
      Deprecated.
      pre-2.7 spelling of setResilienceConfig(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.