Class LookupCoordinatorManager
java.lang.Object
org.apache.druid.server.lookup.cache.LookupCoordinatorManager
Managers
LookupExtractorFactoryContainer specifications, distributing them
to LookupReferencesManager around the cluster by monitoring the lookup
announce path for servers and utilizing their LookupListeningResource API
to load, drop, and update lookups around the cluster.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLookupCoordinatorManager(HttpClient httpClient, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, com.fasterxml.jackson.databind.ObjectMapper smileMapper, JacksonConfigManager configManager, LookupCoordinatorManagerConfig lookupCoordinatorManagerConfig) -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteLookup(String tier, String lookup, AuditInfo auditInfo) booleandeleteTier(String tier, AuditInfo auditInfo) Collection<com.google.common.net.HostAndPort>discoverNodesInTier(String tier) Map<com.google.common.net.HostAndPort,LookupsState<LookupExtractorFactoryMapContainer>> Try to find a lookupName spec for the specified lookupName.booleanvoidstart()voidstop()booleanupdateLookup(String tier, String lookupName, LookupExtractorFactoryMapContainer spec, AuditInfo auditInfo) booleanupdateLookups(Map<String, Map<String, LookupExtractorFactoryMapContainer>> updateSpec, AuditInfo auditInfo)
-
Field Details
-
OLD_LOOKUP_CONFIG_KEY
- See Also:
-
LOOKUP_CONFIG_KEY
- See Also:
-
LOOKUP_LISTEN_ANNOUNCE_KEY
- See Also:
-
-
Constructor Details
-
LookupCoordinatorManager
@Inject public LookupCoordinatorManager(HttpClient httpClient, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, com.fasterxml.jackson.databind.ObjectMapper smileMapper, JacksonConfigManager configManager, LookupCoordinatorManagerConfig lookupCoordinatorManagerConfig)
-
-
Method Details
-
updateLookup
public boolean updateLookup(String tier, String lookupName, LookupExtractorFactoryMapContainer spec, AuditInfo auditInfo) -
updateLookups
-
getKnownLookups
-
deleteTier
-
deleteLookup
-
discoverTiers
-
discoverNodesInTier
-
getLastKnownLookupsStateOnNodes
public Map<com.google.common.net.HostAndPort,LookupsState<LookupExtractorFactoryMapContainer>> getLastKnownLookupsStateOnNodes() -
getLookup
Try to find a lookupName spec for the specified lookupName.- Parameters:
lookupName- The lookupName to look for- Returns:
- The lookupName spec if found or null if not found or if no lookups at all are found
-
isStarted
public boolean isStarted() -
start
public void start() -
stop
public void stop()
-