org.jdiagnose.runtime
Class LightWeightResult
java.lang.Object
org.jdiagnose.runtime.LightWeightResult
- All Implemented Interfaces:
- ResultInfo
- public class LightWeightResult
- extends java.lang.Object
- implements ResultInfo
User: jamie
Date: May 30, 2004
Time: 7:42:52 PM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightWeightResult
public LightWeightResult(DiagnosticResult result)
getResults
public java.util.List getResults()
getState
public ResultState getState()
- Specified by:
getState
in interface ResultInfo
- Returns:
- whether the diagnostic isn't running, has
started/succeeded/failed
getDuration
public long getDuration()
- Specified by:
getDuration
in interface ResultInfo
- Returns:
- the length of time the diagnostic took to run in milliseconds
getFinishTime
public long getFinishTime()
- Specified by:
getFinishTime
in interface ResultInfo
- Returns:
- the time in milliseconds when the diagnostic completed
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interface ResultInfo
- Returns:
- the time in milliseconds when the diagnostic started
getName
public java.lang.String getName()
- Specified by:
getName
in interface ResultInfo
- Returns:
- the name of the diagnostic that was run
getMessage
public DiagnosticMessage getMessage()
- Specified by:
getMessage
in interface ResultInfo
- Returns:
- the exception that caused the diagnostic to fail, if it failed.
may often be null.
Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.