Module org.elasticsearch.xcore
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-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.DeprecationHandler
IGNORE_DEPRECATIONS, THROW_UNSUPPORTED_OPERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe collected deprecation warningsvoidlogRemovedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String removedName) voidlogRenamedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String oldName, String currentName) voidlogReplacedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String oldName, String replacedName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.DeprecationHandler
logRemovedField, logRenamedField, logReplacedField
-
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:
logRenamedFieldin interfaceorg.elasticsearch.xcontent.DeprecationHandler
-
logReplacedField
public void logReplacedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String oldName, String replacedName) - Specified by:
logReplacedFieldin interfaceorg.elasticsearch.xcontent.DeprecationHandler
-
logRemovedField
public void logRemovedField(String parserName, Supplier<org.elasticsearch.xcontent.XContentLocation> location, String removedName) - Specified by:
logRemovedFieldin interfaceorg.elasticsearch.xcontent.DeprecationHandler
-
getDeprecations
The collected deprecation warnings
-