com.atlassian.scheduler.core.status
Class RunDetailsImpl

java.lang.Object
  extended by com.atlassian.scheduler.core.status.RunDetailsImpl
All Implemented Interfaces:
RunDetails

@Immutable
public final class RunDetailsImpl
extends Object
implements RunDetails


Field Summary
 
Fields inherited from interface com.atlassian.scheduler.status.RunDetails
MAXIMUM_MESSAGE_LENGTH
 
Constructor Summary
RunDetailsImpl(Date startTime, RunOutcome runOutcome, long durationInMillis, String message)
           
 
Method Summary
 long getDurationInMillis()
          Returns the duration (in milliseconds) that the job took to complete.
 String getMessage()
          Returns any additional message that the job would like to report about this job run.
 RunOutcome getRunOutcome()
          Returns the overall result of the job
 Date getStartTime()
          Returns the starting time of this job run.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RunDetailsImpl

public RunDetailsImpl(Date startTime,
                      RunOutcome runOutcome,
                      long durationInMillis,
                      @Nullable
                      String message)
Method Detail

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.