|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.testkit.Coroner$
public class Coroner$
The Coroner can be used to print a diagnostic report of the JVM state,
including stack traces and deadlocks. A report can be printed directly, by
calling printReport
. Alternatively, the Coroner can be asked to watch
the JVM and generate a report at a later time - unless the Coroner is cancelled
by that time.
The latter method is useful for printing diagnostics in the event that, for example, a unit test stalls and fails to cancel the Coroner in time. The Coroner will assume that the test has "died" and print a report to aid in debugging.
Field Summary | |
---|---|
static Coroner$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
Constructor Summary | |
---|---|
Coroner$()
|
Method Summary | |
---|---|
scala.concurrent.duration.FiniteDuration |
defaultStartAndStopDuration()
|
void |
printReport(java.lang.String reportTitle,
java.io.PrintStream out)
Print a report containing diagnostic information. |
Coroner.WatchHandle |
watch(scala.concurrent.duration.FiniteDuration duration,
java.lang.String reportTitle,
java.io.PrintStream out,
scala.concurrent.duration.FiniteDuration startAndStopDuration,
boolean displayThreadCounts)
Ask the Coroner to print a report if it is not cancelled by the given deadline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Coroner$ MODULE$
Constructor Detail |
---|
public Coroner$()
Method Detail |
---|
public scala.concurrent.duration.FiniteDuration defaultStartAndStopDuration()
public Coroner.WatchHandle watch(scala.concurrent.duration.FiniteDuration duration, java.lang.String reportTitle, java.io.PrintStream out, scala.concurrent.duration.FiniteDuration startAndStopDuration, boolean displayThreadCounts)
If displayThreadCounts is set to true, then the Coroner will print thread counts during start and stop.
duration
- (undocumented)reportTitle
- (undocumented)out
- (undocumented)startAndStopDuration
- (undocumented)displayThreadCounts
- (undocumented)
public void printReport(java.lang.String reportTitle, java.io.PrintStream out)
reportTitle
- (undocumented)out
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |