public class TimingResult extends EventObject implements ResultEvent
ResultEvent with start DateTime, end DateTime, and elapsed time in Milliseconds.
The Date is formatted using org.joda.time.format.DateTimeFormat pattern of "yyyy-MM-dd HH.mm.ss.SSS"sourceACTION_EXECUTED, PROPOSITION_EVALUATED, RULE_EVALUATED, TIMING_EVENT| Constructor and Description |
|---|
TimingResult(String type,
Object source,
ExecutionEnvironment environment,
org.joda.time.DateTime start,
org.joda.time.DateTime end)
Constructor
|
TimingResult(String description,
String type,
Object source,
ExecutionEnvironment environment,
org.joda.time.DateTime start,
org.joda.time.DateTime end)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
Long |
getElapsedTimeInMilliseconds()
Returns the Elapsed Time in Milliseconds
|
ExecutionEnvironment |
getEnvironment() |
Boolean |
getResult() |
Map<String,?> |
getResultDetails()
Returns the result details of the ResultEvent as an unmodifiable Map,?>
|
org.joda.time.DateTime |
getTimestamp() |
String |
getType() |
String |
toString() |
getSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSourcepublic TimingResult(String description, String type, Object source, ExecutionEnvironment environment, org.joda.time.DateTime start, org.joda.time.DateTime end)
description - of the TimingResulttype - of the TimingResultsource - of the TimingResultenvironment - ExecutionEnvironment of the TimingResultstart - org.joda.time.DateTime of the TimingResultend - org.joda.time.DateTime of the TimingResultpublic TimingResult(String type, Object source, ExecutionEnvironment environment, org.joda.time.DateTime start, org.joda.time.DateTime end)
type - of the TimingResultsource - of the TimingResultenvironment - ExecutionEnvironment of the TimingResultstart - org.joda.time.DateTime of the TimingResultend - org.joda.time.DateTime of the TimingResultpublic Long getElapsedTimeInMilliseconds()
public ExecutionEnvironment getEnvironment()
getEnvironment in interface ResultEventpublic String toString()
toString in class EventObjectpublic Boolean getResult()
getResult in interface ResultEventpublic org.joda.time.DateTime getTimestamp()
getTimestamp in interface ResultEventpublic String getType()
getType in interface ResultEventpublic Map<String,?> getResultDetails()
getResultDetails in interface ResultEventpublic String getDescription()
getDescription in interface ResultEventCopyright © 2005–2016 The Kuali Foundation. All rights reserved.