public interface BackendImplementor
| Modifier and Type | Method and Description |
|---|---|
IndexManagerBuilder |
createIndexManagerBuilder(String indexName,
String mappedTypeName,
boolean multiTenancyEnabled,
BackendBuildContext context,
ConfigurationPropertySource propertySource) |
CompletableFuture<?> |
preStop()
Prepare for
stop(). |
void |
start(BackendStartContext context)
Start any resource necessary to operate the backend at runtime.
|
void |
stop()
Stop and release any resource necessary to operate the backend at runtime.
|
Backend |
toAPI() |
void start(BackendStartContext context)
Called by the engine once after bootstrap, before
IndexManagerImplementor.start(IndexManagerStartContext)
is called on the index managers.
context - The start context.CompletableFuture<?> preStop()
stop().void stop()
Called by the engine once before shutdown.
Backend toAPI()
IndexManagerBuilder createIndexManagerBuilder(String indexName, String mappedTypeName, boolean multiTenancyEnabled, BackendBuildContext context, ConfigurationPropertySource propertySource)
indexName - The name of the index from the point of view of Hibernate Search.
A slightly different name may be used by the backend internally,
but indexName is the one that will appear everywhere the index is mentioned to the user.mappedTypeName - The name of the type mapped to this index.
This is the type name that will be assigned to search query hits for this index,
allowing the mapper to resolve the type of each hit in multi-index searches.
Each index is mapped to one and only one type.multiTenancyEnabled - true if multi-tenancy is enabled for this index, false otherwise.context - The build contextpropertySource - A configuration property source, appropriately masked so that the backend
doesn't need to care about Hibernate Search prefixes (hibernate.search.*, etc.). All the properties
can be accessed at the root.
CAUTION: the property keys listed in IndexSettings
are reserved for use by the engine.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.