Class RolloverRequest

    • Constructor Detail

      • RolloverRequest

        public RolloverRequest​(java.lang.String alias,
                               java.lang.String newIndexName)
    • Method Detail

      • getAlias

        public java.lang.String getAlias()
        Returns the alias of the rollover operation
      • getNewIndexName

        public java.lang.String getNewIndexName()
        Returns the new index name for the rollover
      • dryRun

        public RolloverRequest dryRun​(boolean dryRun)
        Sets if the rollover should not be executed when conditions are met
      • isDryRun

        public boolean isDryRun()
        Returns if the rollover should not be executed when conditions are met
      • addMaxIndexAgeCondition

        public RolloverRequest addMaxIndexAgeCondition​(TimeValue age)
        Adds condition to check if the index is at least age old
      • addMaxIndexDocsCondition

        public RolloverRequest addMaxIndexDocsCondition​(long numDocs)
        Adds condition to check if the index has at least numDocs
      • addMaxIndexSizeCondition

        public RolloverRequest addMaxIndexSizeCondition​(ByteSizeValue size)
        Adds a size-based condition to check if the index size is at least size.
      • getConditions

        public java.util.Map<java.lang.String,​Condition<?>> getConditions()
        Returns all set conditions
      • getCreateIndexRequest

        public CreateIndexRequest getCreateIndexRequest()
        Returns the inner CreateIndexRequest. Allows to configure mappings, settings and aliases for the new index.