Package com.atlassian.jira.search.index
Class IssuesIndexSchemaManager
java.lang.Object
com.atlassian.jira.search.index.IssuesIndexSchemaManager
- All Implemented Interfaces:
Startable,IndexSchemaManager
Creates and manages the
IndexSchema for the issue index.- Since:
- 10.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionCommon built-in fields used across the system, not specific to any particular indexers/extractors -
Constructor Summary
ConstructorsConstructorDescriptionIssuesIndexSchemaManager(IndexAccessorRegistry indexAccessorRegistry, IndexExtractorRegistrationManager indexExtractorRegistrationManager, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterIndexAccessor(IndexAccessor indexAccessor) Deregisters an IndexAccessor from receiving schema updates.voidonClearCacheEvent(ClearCacheEvent ignored) Event listener for the clear cache event.voidEvent listener for custom field creation.voidEvent listener for custom field delete.voidEvent listener for custom field update.voidvoidonPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent event) This method is called when a plugin is enabled.voidregisterIndexAccessor(IndexAccessor indexAccessor) Registers an IndexAccessor to receive schema updates.voidstart()This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-
Field Details
-
BUILT_IN_SYSTEM_FIELDS
Common built-in fields used across the system, not specific to any particular indexers/extractors
-
-
Constructor Details
-
IssuesIndexSchemaManager
public IssuesIndexSchemaManager(IndexAccessorRegistry indexAccessorRegistry, IndexExtractorRegistrationManager indexExtractorRegistrationManager, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
start
Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework. -
registerIndexAccessor
public void registerIndexAccessor(@Nonnull IndexAccessor indexAccessor) throws IndexOperationException Description copied from interface:IndexSchemaManagerRegisters an IndexAccessor to receive schema updates. The registered IndexAccessor will have its schema updated immediately upon registration, and will continue to receive schema updates for any future schema changes.- Specified by:
registerIndexAccessorin interfaceIndexSchemaManager- Parameters:
indexAccessor- The IndexAccessor to register- Throws:
IndexOperationException- if the schema update fails during registration
-
deregisterIndexAccessor
Description copied from interface:IndexSchemaManagerDeregisters an IndexAccessor from receiving schema updates. Once deregistered, the IndexAccessor will no longer receive schema updates.- Specified by:
deregisterIndexAccessorin interfaceIndexSchemaManager- Parameters:
indexAccessor- The IndexAccessor to deregister
-
onCustomFieldCreatedEvent
Event listener for custom field creation. This event is received only on the node where the custom field was created. It will reset the fields cache, which will replicate the cache invalidation across all nodes- Parameters:
event- the custom field creation event
-
onCustomFieldUpdatedEvent
Event listener for custom field update. This event is received only on the node where the custom field was updated. It will reset the fields cache, which will replicate the cache invalidation across all nodes- Parameters:
event- the custom field updated event
-
onCustomFieldDeletedEvent
Event listener for custom field delete. This event is received only on the node where the custom field was deleted. It will reset the fields cache, which will replicate the cache invalidation across all nodes- Parameters:
event- the custom field deleted event
-
onPluginEnabledEvent
@EventListener public void onPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent event) This method is called when a plugin is enabled. This is needed because the new plugin may change the fields indexed by an existing custom field.- Parameters:
event- the plugin event
-
onClearCacheEvent
Event listener for the clear cache event. This event is fired when Jira should clear and reinit all of its caches, for example, after quick dataset restore. It will reset the fields cache, which will replicate the cache invalidation across all nodes- Parameters:
ignored- the clear cache event
-
onDataImportFinishedEvent
-