com.atlassian.scheduler.core.status
Class RunDetailsImpl
java.lang.Object
com.atlassian.scheduler.core.status.RunDetailsImpl
- All Implemented Interfaces:
- RunDetails
@Immutable
public final class RunDetailsImpl
- extends Object
- implements RunDetails
RunDetailsImpl
public RunDetailsImpl(Date startTime,
RunOutcome runOutcome,
long durationInMillis,
@Nullable
String message)
getStartTime
@Nonnull
public Date getStartTime()
- Description copied from interface:
RunDetails
- Returns the starting time of this job run.
- Specified by:
getStartTime in interface RunDetails
- Returns:
- the starting time of this job run.
getDurationInMillis
public long getDurationInMillis()
- Description copied from interface:
RunDetails
- Returns the duration (in milliseconds) that the job took to complete.
- Specified by:
getDurationInMillis in interface RunDetails
- Returns:
- the duration (in milliseconds) that the job took to complete.
getRunOutcome
@Nonnull
public RunOutcome getRunOutcome()
- Description copied from interface:
RunDetails
- Returns the overall result of the job
- Specified by:
getRunOutcome in interface RunDetails
- Returns:
- the overall result of the job
getMessage
@Nonnull
public String getMessage()
- Description copied from interface:
RunDetails
- Returns any additional message that the job would like to report about this job run. If the job failed,
this will generally include a brief summary of the exception that was thrown. This may be blank for
successful statuses, but it will never be
null.
- Specified by:
getMessage in interface RunDetails
- Returns:
- any additional message that the job would like to report about its status.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Atlassian. All Rights Reserved.