public interface LookupExtractorFactory extends com.google.common.base.Supplier<LookupExtractor>
LookupExtractorFactory supplier of type LookupExtractor.
Such factory will manage the state and life cycle of an given lookup.
If a LookupExtractorFactory wishes to support idempotent updates, it needs to implement the `replaces` method| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
This method will be called to stop the LookupExtractor upon Druid process stop.
|
default boolean |
destroy()
This method will be called to drop the LookupExtractor upon explicit user request to coordinator to drop
this lookup.
|
LookupIntrospectHandler |
getIntrospectHandler() |
boolean |
replaces(LookupExtractorFactory other)
Deprecated.
|
boolean |
start()
This method will be called to start the LookupExtractor upon registered
Calling start multiple times should return true if successfully started.
|
boolean start()
This method will be called to start the LookupExtractor upon registered Calling start multiple times should return true if successfully started.
LookupExtractor otherwise returns true.boolean close()
This method will be called to stop the LookupExtractor upon Druid process stop. This would be used, for example, to stop any thread pools it might have. Calling this method multiple times should always return true if successfully closed.
LookupExtractor otherwise returns truedefault boolean destroy()
This method will be called to drop the LookupExtractor upon explicit user request to coordinator to drop this lookup. In this method user can do additional cleanup (e.g. deleting disk persisted cache) not done simply when Druid process was being stopped to be restarted. Calling this method multiple times should always return true if successfully destroyed.
LookupExtractor otherwise returns true@Deprecated boolean replaces(@Nullable LookupExtractorFactory other)
@Nullable LookupIntrospectHandler getIntrospectHandler()
null if it is not supported.
This will be called once per HTTP request to introspect the actual lookup.Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.