|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileReport
The interface used to report profiling data associated with a complete task run through the scheduler.
| Method Summary | |
|---|---|
AccessedObjectsDetail |
getAccessedObjectsDetail()
Returns detail of the object accesses as reported by the AccessCoordinator or null if no
objects were accessed, no accesses reported, or if this
report is for a non-transactional task. |
long |
getActualStartTime()
Returns the time at which the task actually started running. |
Throwable |
getFailureCause()
Returns any failure that occurred during the execution of this report's task, or null if no failure
occurred. |
Set<TransactionListenerDetail> |
getListenerDetails()
Returns detail about each listener for the transaction, or an empty Set if the task was not transactional or had
no listeners. |
Set<ProfileParticipantDetail> |
getParticipantDetails()
Returns detail about each participant in the transaction, or an empty Set if the task was not transactional. |
int |
getReadyCount()
Returns the number of tasks in the scheduler and ready to run when this report's task was started. |
List<String> |
getReportedOperations()
Returns the operations that were reported as executed during the running of the task. |
int |
getRetryCount()
Returns the number of times this task has been tried. |
long |
getRunningTime()
Returns the length of time spent running the task. |
long |
getScheduledStartTime()
Returns the time at which that task was scheduled to run. |
KernelRunnable |
getTask()
Returns the run task that generated this report. |
Identity |
getTaskOwner()
Returns the owner of the run task. |
byte[] |
getTransactionId()
Returns the identifier for the task's transaction, or null
if the task was not transactional. |
Map<String,Long> |
getUpdatedTaskCounters()
Returns the values of the task-local counters that were updated during the running of the task. |
Map<String,List<Long>> |
getUpdatedTaskSamples()
Returns the list of values for the task-local samples that were updated during the running of the task. |
boolean |
wasTaskSuccessful()
Returns whether the task successfully ran to completion. |
boolean |
wasTaskTransactional()
Returns whether any of the task was transactional. |
| Method Detail |
|---|
KernelRunnable getTask()
KernelRunnable that was runIdentity getTaskOwner()
Identity of the task ownerboolean wasTaskTransactional()
true if any part of the task ran transactionally,
false otherwisebyte[] getTransactionId()
null
if the task was not transactional.
nullSet<ProfileParticipantDetail> getParticipantDetails()
Set if the task was not transactional.
Set of ProfileParticipantDetailSet<TransactionListenerDetail> getListenerDetails()
Set if the task was not transactional or had
no listeners.
Set of TransactionListenerDetailboolean wasTaskSuccessful()
true if this task completed successfully,
false otherwiselong getScheduledStartTime()
long getActualStartTime()
long getRunningTime()
int getRetryCount()
List<String> getReportedOperations()
List is returned.
List of Strings of the names of the reported
operations, in the order they were reportedMap<String,Long> getUpdatedTaskCounters()
Map is returned. The
Map is a mapping from counter name to counter
value.
Map from counter name to observed valueMap<String,List<Long>> getUpdatedTaskSamples()
Map is
returned. The Map is a mapping from sample name
to an oldest-first list of sample values.
Map from sample name to a list of values
added during the taskAccessedObjectsDetail getAccessedObjectsDetail()
AccessCoordinator or null if no
objects were accessed, no accesses reported, or if this
report is for a non-transactional task.
nullint getReadyCount()
Throwable getFailureCause()
null if no failure
occurred. This Throwable will always be
null if wasTaskSuccessful() returns
true.
Throwable thrown during task execution
or null if no failure occurred
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||