java.lang.Object
org.elasticsearch.plugins.Plugin
org.elasticsearch.xpack.core.XPackClientPlugin
org.elasticsearch.xpack.core.XPackPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,ActionPlugin,ClusterPlugin,EnginePlugin,ExtensiblePlugin,MapperPlugin,NetworkPlugin,RepositoryPlugin,SearchPlugin
public class XPackPlugin
extends XPackClientPlugin
implements ExtensiblePlugin, RepositoryPlugin, EnginePlugin, ClusterPlugin, MapperPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.plugins.Plugin
Plugin.PluginServicesNested classes/interfaces inherited from interface org.elasticsearch.plugins.ActionPlugin
ActionPlugin.ActionHandler<Request extends ActionRequest,Response extends ActionResponse> Nested classes/interfaces inherited from interface org.elasticsearch.plugins.ExtensiblePlugin
ExtensiblePlugin.ExtensionLoaderNested classes/interfaces inherited from interface org.elasticsearch.plugins.SearchPlugin
SearchPlugin.AggregationSpec, SearchPlugin.FetchPhaseConstructionContext, SearchPlugin.GenericNamedWriteableSpec, SearchPlugin.PipelineAggregationSpec, SearchPlugin.QuerySpec<T extends QueryBuilder>, SearchPlugin.QueryVectorBuilderSpec<T extends QueryVectorBuilder>, SearchPlugin.RescorerSpec<T extends RescorerBuilder<T>>, SearchPlugin.RetrieverSpec<RB extends RetrieverBuilder>, SearchPlugin.ScoreFunctionSpec<T extends ScoreFunctionBuilder<T>>, SearchPlugin.SearchExtensionSpec<W extends NamedWriteable,P>, SearchPlugin.SearchExtSpec<T extends SearchExtBuilder>, SearchPlugin.SignificanceHeuristicSpec<T extends SignificanceHeuristic>, SearchPlugin.SuggesterSpec<T extends SuggestionBuilder<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final Settingsstatic final StringFields inherited from interface org.elasticsearch.plugins.MapperPlugin
NOOP_FIELD_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckReadyForXPackCustomMetadata(ClusterState clusterState) Checks if the cluster state allows this node to add x-pack metadata to the cluster state, and throws an exception otherwise.createAllocationDeciders(Settings settings, ClusterSettings clusterSettings) Collection<?> createComponents(Plugin.PluginServices services) List<ActionPlugin.ActionHandler<? extends ActionRequest, ? extends ActionResponse>> protected ClockgetClock()getEngineFactory(IndexSettings indexSettings) protected LongSupplierprotected Class<? extends TransportAction<XPackInfoRequest, XPackInfoResponse>> protected LicenseServiceprotected XPackLicenseStategetRepositories(Environment env, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, BigArrays bigArrays, RecoverySettings recoverySettings, RepositoriesMetrics repositoriesMetrics) getRestHandlers(Settings settings, NamedWriteableRegistry namedWriteableRegistry, RestController restController, ClusterSettings clusterSettings, IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter, IndexNameExpressionResolver indexNameExpressionResolver, Supplier<DiscoveryNodes> nodesInCluster, Predicate<NodeFeature> clusterSupportsFeature) static LongSupplierstatic LicenseServicestatic XPackLicenseStatestatic SSLServiceprotected SSLServiceprotected Class<? extends TransportAction<XPackUsageRequest, XPackUsageResponse>> static booleanisReadyForXPackCustomMetadata(ClusterState clusterState) Checks if the cluster state allows this node to add x-pack metadata to the cluster state.voidstatic List<DiscoveryNode> nodesNotReadyForXPackCustomMetadata(ClusterState clusterState) Returns the list of nodes that won't allow this node from adding x-pack metadata to the cluster state.static PathresolveConfigFile(Environment env, String name) protected voidsetEpochMillisSupplier(LongSupplier epochMillisSupplier) protected voidsetLicenseService(LicenseService licenseService) protected voidsetLicenseState(XPackLicenseState licenseState) protected voidsetSslService(SSLService sslService) Methods inherited from class org.elasticsearch.xpack.core.XPackClientPlugin
getNamedWriteables, getNamedXContent, getQueriesMethods inherited from class org.elasticsearch.plugins.Plugin
close, getBootstrapChecks, getCustomMetadataUpgraders, getExecutorBuilders, getIndexTemplateMetadataUpgrader, getSettingsFilter, onIndexModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.plugins.ActionPlugin
getActionFilters, getMappedActionFilters, getRestHeaders, getTaskHeaders, indicesAliasesRequestValidators, mappingRequestValidatorsMethods inherited from interface org.elasticsearch.plugins.ClusterPlugin
createWriteLoadForecasters, getExistingShardsAllocators, getShardRoutingRoleStrategy, getShardsAllocators, onNodeStartedMethods inherited from interface org.elasticsearch.plugins.MapperPlugin
getFieldFilter, getMappers, getRuntimeFieldsMethods inherited from interface org.elasticsearch.plugins.NetworkPlugin
getHttpTransports, getTransportInterceptors, getTransportsMethods inherited from interface org.elasticsearch.plugins.RepositoryPlugin
addPreRestoreVersionCheck, getInternalRepositoriesMethods inherited from interface org.elasticsearch.plugins.SearchPlugin
getAggregationExtentions, getAggregations, getFetchSubPhases, getGenericNamedWriteables, getHighlighters, getPipelineAggregations, getQueryVectorBuilders, getRequestCacheKeyDifferentiator, getRescorers, getRetrievers, getScoreFunctions, getSearchExts, getSignificanceHeuristics, getSuggesters
-
Field Details
-
ASYNC_RESULTS_INDEX
- See Also:
-
XPACK_INSTALLED_NODE_ATTR
- See Also:
-
settings
-
-
Constructor Details
-
XPackPlugin
-
-
Method Details
-
getClock
-
getSslService
-
getLicenseService
-
getLicenseState
-
getEpochMillisSupplier
-
setSslService
-
setLicenseService
-
setLicenseState
-
setEpochMillisSupplier
-
checkReadyForXPackCustomMetadata
Checks if the cluster state allows this node to add x-pack metadata to the cluster state, and throws an exception otherwise. This check should be called before installing any x-pack metadata to the cluster state, to ensure that the other nodes that are part of the cluster will be able to deserialize that metadata. Note that if the cluster state already contains x-pack metadata, this check assumes that the nodes are already ready to receive additional x-pack metadata. Having this check properly in place everywhere allows to install x-pack into a cluster using a rolling restart. -
isReadyForXPackCustomMetadata
Checks if the cluster state allows this node to add x-pack metadata to the cluster state. SeecheckReadyForXPackCustomMetadata(org.elasticsearch.cluster.ClusterState)for more details. -
nodesNotReadyForXPackCustomMetadata
Returns the list of nodes that won't allow this node from adding x-pack metadata to the cluster state. SeecheckReadyForXPackCustomMetadata(org.elasticsearch.cluster.ClusterState)for more details. -
getMetadataMappers
- Specified by:
getMetadataMappersin interfaceMapperPlugin
-
additionalSettings
- Overrides:
additionalSettingsin classPlugin
-
createComponents
- Overrides:
createComponentsin classPlugin
-
getActions
public List<ActionPlugin.ActionHandler<? extends ActionRequest,? extends ActionResponse>> getActions()- Specified by:
getActionsin interfaceActionPlugin
-
getUsageAction
-
getInfoAction
-
getRestHandlers
public List<RestHandler> getRestHandlers(Settings settings, NamedWriteableRegistry namedWriteableRegistry, RestController restController, ClusterSettings clusterSettings, IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter, IndexNameExpressionResolver indexNameExpressionResolver, Supplier<DiscoveryNodes> nodesInCluster, Predicate<NodeFeature> clusterSupportsFeature) - Specified by:
getRestHandlersin interfaceActionPlugin
-
resolveConfigFile
-
getRepositories
public Map<String,Repository.Factory> getRepositories(Environment env, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, BigArrays bigArrays, RecoverySettings recoverySettings, RepositoriesMetrics repositoriesMetrics) - Specified by:
getRepositoriesin interfaceRepositoryPlugin
-
getEngineFactory
- Specified by:
getEngineFactoryin interfaceEnginePlugin
-
getSettings
- Overrides:
getSettingsin classXPackClientPlugin
-
createAllocationDeciders
public Collection<AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings) - Specified by:
createAllocationDecidersin interfaceClusterPlugin
-
getAdditionalIndexSettingProviders
public Collection<IndexSettingProvider> getAdditionalIndexSettingProviders(IndexSettingProvider.Parameters parameters) - Overrides:
getAdditionalIndexSettingProvidersin classPlugin
-
loadExtensions
- Specified by:
loadExtensionsin interfaceExtensiblePlugin
-