Class HeartBeatEvent
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.aggregated.HeartBeatEvent
High level heartbeat event issued to report listeners when a forked JVM
does not repond for a longer while. The
getDescription()
method should
return an approximate place where the forked JVM is at the moment, but this is
not guaranteed (and may be null).-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final org.junit.runner.Description
private final long
private final ForkedJvmInfo
-
Constructor Summary
ConstructorsConstructorDescriptionHeartBeatEvent
(ForkedJvmInfo slave, org.junit.runner.Description description, long lastActivity, long currentTime) -
Method Summary
-
Field Details
-
slave
-
description
private final org.junit.runner.Description description -
lastActivity
private final long lastActivity -
currentTime
private final long currentTime
-
-
Constructor Details
-
HeartBeatEvent
public HeartBeatEvent(ForkedJvmInfo slave, org.junit.runner.Description description, long lastActivity, long currentTime)
-
-
Method Details
-
getDescription
public org.junit.runner.Description getDescription() -
getCurrentTime
public long getCurrentTime() -
getLastActivity
public long getLastActivity() -
getNoEventDuration
public long getNoEventDuration() -
getSlave
-