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()
Returns the description of the ResultEvent as a String
|
Long |
getElapsedTimeInMilliseconds()
Returns the Elapsed Time in Milliseconds
|
ExecutionEnvironment |
getEnvironment()
Returns the
ExecutionEnvironment of the ResultEvent. |
Boolean |
getResult()
Returns the Boolean result of the ResultEvent.
|
Map<String,?> |
getResultDetails()
Returns the result details of the ResultEvent as an unmodifiable Map,?>
|
org.joda.time.DateTime |
getTimestamp()
Returns the org.joda.time.DateTime timestamp of the ResultEvent.
|
String |
getType()
Returns the type of the ResultEvent.
|
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()
ResultEventExecutionEnvironment of the ResultEvent.getEnvironment in interface ResultEventExecutionEnvironment of the ResultEvent.public String toString()
toString in class EventObjectpublic Boolean getResult()
ResultEventgetResult in interface ResultEventpublic org.joda.time.DateTime getTimestamp()
ResultEventgetTimestamp in interface ResultEventpublic String getType()
ResultEventgetType in interface ResultEventpublic Map<String,?> getResultDetails()
getResultDetails in interface ResultEventpublic String getDescription()
ResultEventgetDescription in interface ResultEventCopyright © 2005–2015 The Kuali Foundation. All rights reserved.