Class MountSearchableSnapshotRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class MountSearchableSnapshotRequest extends MasterNodeRequest<MountSearchableSnapshotRequest>
  • Field Details

  • Constructor Details

    • MountSearchableSnapshotRequest

      public MountSearchableSnapshotRequest(org.elasticsearch.core.TimeValue masterNodeTimeout, String mountedIndexName, String repositoryName, String snapshotName, String snapshotIndexName, Settings indexSettings, String[] ignoreIndexSettings, boolean waitForCompletion, MountSearchableSnapshotRequest.Storage storage)
      Constructs a new mount searchable snapshot request, restoring an index with the settings needed to make it a searchable snapshot.
    • MountSearchableSnapshotRequest

      public MountSearchableSnapshotRequest(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class MasterNodeRequest<MountSearchableSnapshotRequest>
      Throws:
      IOException
    • validate

      Specified by:
      validate in class ActionRequest
    • mountedIndexName

      public String mountedIndexName()
      Returns:
      the name of the index that will be created
    • repositoryName

      public String repositoryName()
      Returns:
      the name of the repository
    • snapshotName

      public String snapshotName()
      Returns:
      the name of the snapshot.
    • snapshotIndexName

      public String snapshotIndexName()
      Returns:
      the name of the index contained in the snapshot
    • waitForCompletion

      public boolean waitForCompletion()
      Returns:
      true if the operation will wait for completion
    • indexSettings

      public Settings indexSettings()
      Returns:
      settings that should be added to the index when it is mounted
    • ignoreIndexSettings

      public String[] ignoreIndexSettings()
      Returns:
      the names of settings that should be removed from the index when it is mounted
    • storage

      Returns:
      how nodes will use their local storage to accelerate searches of this snapshot
    • getDescription

      public String getDescription()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class TransportRequest