Class LoggingDeprecationAccumulationHandler

java.lang.Object
org.elasticsearch.xpack.core.deprecation.LoggingDeprecationAccumulationHandler
All Implemented Interfaces:
org.elasticsearch.xcontent.DeprecationHandler

public class LoggingDeprecationAccumulationHandler extends Object implements org.elasticsearch.xcontent.DeprecationHandler
Very similar to LoggingDeprecationHandler main differences are: 1. Is not a Singleton 2. Accumulates all deprecation warnings into a list that can be retrieved with getDeprecations() NOTE: The accumulation is NOT THREAD SAFE
  • Constructor Details

    • LoggingDeprecationAccumulationHandler

      public LoggingDeprecationAccumulationHandler()
  • Method Details

    • logRenamedField

      public void logRenamedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String oldName, String currentName)
      Specified by:
      logRenamedField in interface org.elasticsearch.xcontent.DeprecationHandler
    • logReplacedField

      public void logReplacedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String oldName, String replacedName)
      Specified by:
      logReplacedField in interface org.elasticsearch.xcontent.DeprecationHandler
    • logRemovedField

      public void logRemovedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String removedName)
      Specified by:
      logRemovedField in interface org.elasticsearch.xcontent.DeprecationHandler
    • getDeprecations

      public List<String> getDeprecations()
      The collected deprecation warnings