Class IndexLifecycleExplainResponse

java.lang.Object
org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponse
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class IndexLifecycleExplainResponse extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
  • Field Details

  • Constructor Details

  • Method Details

    • newManagedIndexResponse

      public static IndexLifecycleExplainResponse newManagedIndexResponse(String index, Long indexCreationDate, String policyName, Long lifecycleDate, String phase, String action, String step, String failedStep, Boolean isAutoRetryableError, Integer failedStepRetryCount, Long phaseTime, Long actionTime, Long stepTime, String repositoryName, String snapshotName, String shrinkIndexName, BytesReference stepInfo, BytesReference previousStepInfo, PhaseExecutionInfo phaseExecutionInfo, boolean skip)
    • newUnmanagedIndexResponse

      public static IndexLifecycleExplainResponse newUnmanagedIndexResponse(String index)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getIndex

      public String getIndex()
    • getIndexCreationDate

      public Long getIndexCreationDate()
    • getTimeSinceIndexCreation

      public org.elasticsearch.core.TimeValue getTimeSinceIndexCreation(Supplier<Long> now)
    • managedByILM

      public boolean managedByILM()
    • getPolicyName

      public String getPolicyName()
    • getLifecycleDate

      public Long getLifecycleDate()
    • getPhase

      public String getPhase()
    • getPhaseTime

      public Long getPhaseTime()
    • getAction

      public String getAction()
    • getActionTime

      public Long getActionTime()
    • getStep

      public String getStep()
    • getStepTime

      public Long getStepTime()
    • getFailedStep

      public String getFailedStep()
    • getStepInfo

      public BytesReference getStepInfo()
    • getPreviousStepInfo

      public BytesReference getPreviousStepInfo()
    • getPhaseExecutionInfo

      public PhaseExecutionInfo getPhaseExecutionInfo()
    • isAutoRetryableError

      public Boolean isAutoRetryableError()
    • getFailedStepRetryCount

      public Integer getFailedStepRetryCount()
    • getAge

      public org.elasticsearch.core.TimeValue getAge(Supplier<Long> now)
    • getRepositoryName

      public String getRepositoryName()
    • getSnapshotName

      public String getSnapshotName()
    • getShrinkIndexName

      public String getShrinkIndexName()
    • getSkip

      public boolean getSkip()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object