|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.kuali.rice.krms.framework.engine.result.TimingResult
public class TimingResult
An implementation of 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"
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Fields inherited from interface org.kuali.rice.krms.api.engine.ResultEvent |
---|
ACTION_EXECUTED, PROPOSITION_EVALUATED, RULE_EVALUATED, TIMING_EVENT |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krms.api.engine.ResultEvent |
---|
getSource |
Constructor Detail |
---|
public 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 TimingResultMethod Detail |
---|
public Long getElapsedTimeInMilliseconds()
public ExecutionEnvironment getEnvironment()
ResultEvent
ExecutionEnvironment
of the ResultEvent.
getEnvironment
in interface ResultEvent
ExecutionEnvironment
of the ResultEvent.public String toString()
toString
in class EventObject
public Boolean getResult()
ResultEvent
getResult
in interface ResultEvent
public org.joda.time.DateTime getTimestamp()
ResultEvent
getTimestamp
in interface ResultEvent
public String getType()
ResultEvent
getType
in interface ResultEvent
public Map<String,?> getResultDetails()
getResultDetails
in interface ResultEvent
public String getDescription()
ResultEvent
getDescription
in interface ResultEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |