Package com.easydesk.web.scheduler
Record Class JobRunHistory.LastRun
java.lang.Object
java.lang.Record
com.easydesk.web.scheduler.JobRunHistory.LastRun
- Record Components:
startedAt- 시작 시각 (fireTime)finishedAt- 종료 시각durationMs- 소요 시간 (ms)success- 성공 여부error- 실패 시 메시지 (성공이면 null)triggeredBy- "지금 실행" 을 누른 사용자 이름. 일정(trigger)에 따라 실행됐으면 null
- Enclosing class:
JobRunHistory
public static record JobRunHistory.LastRun(Date startedAt, Date finishedAt, long durationMs, boolean success, String error, String triggeredBy)
extends Record
마지막 실행 결과.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMsrecord 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.Returns the value of thestartedAtrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggeredByrecord component.
-
Constructor Details
-
LastRun
public LastRun(Date startedAt, Date finishedAt, long durationMs, boolean success, String error, String triggeredBy) Creates an instance of aLastRunrecord class.- Parameters:
startedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentdurationMs- the value for thedurationMsrecord componentsuccess- the value for thesuccessrecord componenterror- the value for theerrorrecord componenttriggeredBy- the value for thetriggeredByrecord 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 '=='. -
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
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
triggeredBy
Returns the value of thetriggeredByrecord component.- Returns:
- the value of the
triggeredByrecord component
-