Search in sources :

Example 1 with ComposableIndexTemplateMetadata

use of org.opensearch.cluster.metadata.ComposableIndexTemplateMetadata in project OpenSearch by opensearch-project.

the class ClusterModule method getNamedWriteables.

public static List<Entry> getNamedWriteables() {
    List<Entry> entries = new ArrayList<>();
    // Cluster State
    registerClusterCustom(entries, SnapshotsInProgress.TYPE, SnapshotsInProgress::new, SnapshotsInProgress::readDiffFrom);
    registerClusterCustom(entries, RestoreInProgress.TYPE, RestoreInProgress::new, RestoreInProgress::readDiffFrom);
    registerClusterCustom(entries, SnapshotDeletionsInProgress.TYPE, SnapshotDeletionsInProgress::new, SnapshotDeletionsInProgress::readDiffFrom);
    registerClusterCustom(entries, RepositoryCleanupInProgress.TYPE, RepositoryCleanupInProgress::new, RepositoryCleanupInProgress::readDiffFrom);
    // Metadata
    registerMetadataCustom(entries, RepositoriesMetadata.TYPE, RepositoriesMetadata::new, RepositoriesMetadata::readDiffFrom);
    registerMetadataCustom(entries, IngestMetadata.TYPE, IngestMetadata::new, IngestMetadata::readDiffFrom);
    registerMetadataCustom(entries, ScriptMetadata.TYPE, ScriptMetadata::new, ScriptMetadata::readDiffFrom);
    registerMetadataCustom(entries, IndexGraveyard.TYPE, IndexGraveyard::new, IndexGraveyard::readDiffFrom);
    registerMetadataCustom(entries, PersistentTasksCustomMetadata.TYPE, PersistentTasksCustomMetadata::new, PersistentTasksCustomMetadata::readDiffFrom);
    registerMetadataCustom(entries, ComponentTemplateMetadata.TYPE, ComponentTemplateMetadata::new, ComponentTemplateMetadata::readDiffFrom);
    registerMetadataCustom(entries, ComposableIndexTemplateMetadata.TYPE, ComposableIndexTemplateMetadata::new, ComposableIndexTemplateMetadata::readDiffFrom);
    registerMetadataCustom(entries, DataStreamMetadata.TYPE, DataStreamMetadata::new, DataStreamMetadata::readDiffFrom);
    // Task Status (not Diffable)
    entries.add(new Entry(Task.Status.class, PersistentTasksNodeService.Status.NAME, PersistentTasksNodeService.Status::new));
    return entries;
}
Also used : PersistentTasksNodeService(org.opensearch.persistent.PersistentTasksNodeService) ComponentTemplateMetadata(org.opensearch.cluster.metadata.ComponentTemplateMetadata) ArrayList(java.util.ArrayList) PersistentTasksCustomMetadata(org.opensearch.persistent.PersistentTasksCustomMetadata) DataStreamMetadata(org.opensearch.cluster.metadata.DataStreamMetadata) RepositoriesMetadata(org.opensearch.cluster.metadata.RepositoriesMetadata) Entry(org.opensearch.common.io.stream.NamedWriteableRegistry.Entry) ScriptMetadata(org.opensearch.script.ScriptMetadata) IngestMetadata(org.opensearch.ingest.IngestMetadata) ComposableIndexTemplateMetadata(org.opensearch.cluster.metadata.ComposableIndexTemplateMetadata) IndexGraveyard(org.opensearch.cluster.metadata.IndexGraveyard)

Aggregations

ArrayList (java.util.ArrayList)1 ComponentTemplateMetadata (org.opensearch.cluster.metadata.ComponentTemplateMetadata)1 ComposableIndexTemplateMetadata (org.opensearch.cluster.metadata.ComposableIndexTemplateMetadata)1 DataStreamMetadata (org.opensearch.cluster.metadata.DataStreamMetadata)1 IndexGraveyard (org.opensearch.cluster.metadata.IndexGraveyard)1 RepositoriesMetadata (org.opensearch.cluster.metadata.RepositoriesMetadata)1 Entry (org.opensearch.common.io.stream.NamedWriteableRegistry.Entry)1 IngestMetadata (org.opensearch.ingest.IngestMetadata)1 PersistentTasksCustomMetadata (org.opensearch.persistent.PersistentTasksCustomMetadata)1 PersistentTasksNodeService (org.opensearch.persistent.PersistentTasksNodeService)1 ScriptMetadata (org.opensearch.script.ScriptMetadata)1