Package com.easydesk.lucene.om
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 Summary
ConstructorsConstructorDescriptionStatus(boolean running, boolean clear, LocalDateTime startedAt, LocalDateTime finishedAt, Map<String, OmReindexer.Count> result, String error) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclear()Returns the value of theclearrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of thefinishedAtrecord component.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.booleanrunning()Returns the value of therunningrecord component.Returns the value of thestartedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(boolean running, boolean clear, LocalDateTime startedAt, LocalDateTime finishedAt, Map<String, OmReindexer.Count> result, String error) Creates an instance of aStatusrecord class.- Parameters:
running- the value for therunningrecord componentclear- the value for theclearrecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
running
public boolean running()Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
clear
public boolean clear()Returns the value of theclearrecord component.- Returns:
- the value of the
clearrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
finishedAt
Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-