The following steps describe how indexing is triggered when a deployment occurs:
The
IndexingDeploymentListener
component detects the event.The
IndexingDeploymentListener
examines the event to see the list of repositories being deployed.The
IndexingDeploymentListener
compiles a list of theEndecaIndexingOutputConfig
components that are associated with any of those repositories.The
IndexingDeploymentListener
invokes theLocalSynchronizationInvoker
component.The
LocalSynchronizationInvoker
looks at the list ofEndecaIndexingOutputConfig
components and compiles a list ofSimpleIndexingAdmin
components that are associated with any of theEndecaIndexingOutputConfig
components.The
LocalSynchronizationInvoker
triggers an indexing job on eachSimpleIndexingAdmin
component in the list.
Note that the lists of EndecaIndexingOutputConfig
and SimpleIndexingAdmin
components are not configured explicitly. Instead, the SimpleIndexingAdmin
components are automatically registered with the LocalSynchronizationInvoker
, and the EndecaIndexingOutputConfig
components are automatically registered with the LocalSynchronizationInvoker
and the IndexingDeploymentListener
.