org.jdiagnose
Interface ResultInfo

All Known Subinterfaces:
DiagnosticContainerResult, DiagnosticResult
All Known Implementing Classes:
DefaultDiagnosticContainerResult, DefaultDiagnosticResult, DefaultResultInfo, LightWeightResult, ResultInfoWrapper

public interface ResultInfo

Information about a particular diagnostic run.

Author:
jmccrindle

Method Summary
 long getDuration()
           
 long getFinishTime()
           
 DiagnosticMessage getMessage()
           
 java.lang.String getName()
           
 long getStartTime()
           
 ResultState getState()
           
 

Method Detail

getName

public java.lang.String getName()
Returns:
the name of the diagnostic that was run

getState

public ResultState getState()
Returns:
whether the diagnostic isn't running, has started/succeeded/failed

getDuration

public long getDuration()
Returns:
the length of time the diagnostic took to run in milliseconds

getMessage

public DiagnosticMessage getMessage()
Returns:
the exception that caused the diagnostic to fail, if it failed. may often be null.

getStartTime

public long getStartTime()
Returns:
the time in milliseconds when the diagnostic started

getFinishTime

public long getFinishTime()
Returns:
the time in milliseconds when the diagnostic completed


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.