Record Class OmReindexer.Status

java.lang.Object
java.lang.Record
com.easydesk.lucene.om.OmReindexer.Status
Record Components:
running - 실행 중인지
clear - 기존 document 를 지우고 시작하였는지
startedAt - 시작 시각 (실행한 적이 없으면 null)
finishedAt - 종료 시각 (실행 중이거나 실행한 적이 없으면 null)
result - 대상 별 결과 (실행 중에는 끝난 대상까지)
error - 실패한 경우 오류 메시지
Enclosing class:
OmReindexer

public static record OmReindexer.Status(boolean running, boolean clear, LocalDateTime startedAt, LocalDateTime finishedAt, Map<String,OmReindexer.Count> result, String error) extends Record
re-index 실행 상태 (관리 화면 표시용)
  • Constructor Details

    • Status

      public Status(boolean running, boolean clear, LocalDateTime startedAt, LocalDateTime finishedAt, Map<String,OmReindexer.Count> result, String error)
      Creates an instance of a Status record class.
      Parameters:
      running - the value for the running record component
      clear - the value for the clear record component
      startedAt - the value for the startedAt record component
      finishedAt - the value for the finishedAt record component
      result - the value for the result record component
      error - the value for the error record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • running

      public boolean running()
      Returns the value of the running record component.
      Returns:
      the value of the running record component
    • clear

      public boolean clear()
      Returns the value of the clear record component.
      Returns:
      the value of the clear record component
    • startedAt

      public LocalDateTime startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • finishedAt

      public LocalDateTime finishedAt()
      Returns the value of the finishedAt record component.
      Returns:
      the value of the finishedAt record component
    • result

      public Map<String,OmReindexer.Count> result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component