public static class HostChecker.PingResult extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
category
the host category from categories.txt, or null
|
String |
leaseSetTypes
LeaseSet encryption types as a string like "[6,4]", or null
|
boolean |
reachable
true if the host was reachable via LeaseSet lookup, ping, or HTTP HEAD
|
long |
responseTime
response time in milliseconds, or -1 if not available
|
long |
timestamp
timestamp of when this result was recorded (Java time)
|
| Constructor and Description |
|---|
PingResult(boolean reachable,
long timestamp,
long responseTime)
Create a new PingResult with minimal fields.
|
PingResult(boolean reachable,
long timestamp,
long responseTime,
String category)
Create a new PingResult without LeaseSet types.
|
PingResult(boolean reachable,
long timestamp,
long responseTime,
String category,
String leaseSetTypes)
Create a new PingResult with all fields.
|
public final String category
public final String leaseSetTypes
public final boolean reachable
public final long responseTime
public final long timestamp
public PingResult(boolean reachable,
long timestamp,
long responseTime)
public PingResult(boolean reachable,
long timestamp,
long responseTime,
String category)
public PingResult(boolean reachable,
long timestamp,
long responseTime,
String category,
String leaseSetTypes)
reachable - true if host was reachabletimestamp - time of the test resultresponseTime - response time in ms, or -1category - the host categoryleaseSetTypes - the LeaseSet encryption types