Class HeartBeatEvent
- java.lang.Object
-
- com.carrotsearch.ant.tasks.junit4.events.aggregated.HeartBeatEvent
-
public final class HeartBeatEvent extends java.lang.Object
High level heartbeat event issued to report listeners when a forked JVM does not repond for a longer while. ThegetDescription()
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
Fields Modifier and Type Field Description private long
currentTime
private org.junit.runner.Description
description
private long
lastActivity
private ForkedJvmInfo
slave
-
Constructor Summary
Constructors Constructor Description HeartBeatEvent(ForkedJvmInfo slave, org.junit.runner.Description description, long lastActivity, long currentTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCurrentTime()
org.junit.runner.Description
getDescription()
long
getLastActivity()
long
getNoEventDuration()
ForkedJvmInfo
getSlave()
-
-
-
Field Detail
-
slave
private final ForkedJvmInfo slave
-
description
private final org.junit.runner.Description description
-
lastActivity
private final long lastActivity
-
currentTime
private final long currentTime
-
-
Constructor Detail
-
HeartBeatEvent
public HeartBeatEvent(ForkedJvmInfo slave, org.junit.runner.Description description, long lastActivity, long currentTime)
-
-
Method Detail
-
getDescription
public org.junit.runner.Description getDescription()
-
getCurrentTime
public long getCurrentTime()
-
getLastActivity
public long getLastActivity()
-
getNoEventDuration
public long getNoEventDuration()
-
getSlave
public ForkedJvmInfo getSlave()
-
-