ElasticsearchIndexNaming

class ElasticsearchIndexNaming(val prefix: String = "")

The names Wow gives its Elasticsearch indices and index templates on one cluster.

prefix is put verbatim before every name Wow derives: the snapshot and event stream indices ({prefix}wow.{context}.{aggregate}.snapshot|es), the index templates ({prefix}wow-snapshot-template, …) and their index_patterns ({prefix}wow.*.snapshot, …), so deployments with different prefixes share a cluster without reading or writing each other's indices. Empty (the default), every name is the one IndexNameConverter gives.

An index definition shipped under META-INF/wow/elasticsearch/ keeps its unprefixed file name: it describes the aggregate's index whatever the deployment's prefix.

Constructors

Link copied to clipboard
constructor(prefix: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

The event stream index of namedAggregate.

Link copied to clipboard
fun resolve(name: String): String

The name on the cluster of the index, template or index pattern Wow names name by default.

Link copied to clipboard

The snapshot index of namedAggregate.

Link copied to clipboard
open override fun toString(): String