Class IndexLifecycleOriginationDateParser

java.lang.Object
org.elasticsearch.xpack.core.ilm.IndexLifecycleOriginationDateParser

public class IndexLifecycleOriginationDateParser extends Object
  • Constructor Details

    • IndexLifecycleOriginationDateParser

      public IndexLifecycleOriginationDateParser()
  • Method Details

    • shouldParseIndexName

      public static boolean shouldParseIndexName(Settings indexSettings)
      Determines if the origination date needs to be parsed from the index name.
    • parseIndexNameAndExtractDate

      public static long parseIndexNameAndExtractDate(String indexName)
      Parses the index according to the supported format and extracts the origination date. If the index does not match the expected format or the date in the index name doesn't match the `yyyy.MM.dd` format it throws an IllegalArgumentException