Class PingResponse
java.lang.Object
com.tccc.kos.core.service.network.beans.PingResponse
Response for a ping operation. Contains the results of the pings
that were performed.
- Version:
- 2024-05-24
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the average reply time in micro seconds.intReturn the max reply time in micro seconds.intReturn the min reply time in micro seconds.intReturn the number of ping requests attempted.intReturn the number of requests that timed out.booleanisFailed()When true, the response was never received so there are no results available.voidsetAvgReplyUs(int avgReplyUs) voidsetFailed(boolean failed) voidsetMaxReplyUs(int maxReplyUs) voidsetMinReplyUs(int minReplyUs) voidsetRequests(int requests) voidsetTimeouts(int timeouts)
-
Constructor Details
-
PingResponse
public PingResponse()
-
-
Method Details
-
getRequests
public int getRequests()Return the number of ping requests attempted. -
getTimeouts
public int getTimeouts()Return the number of requests that timed out. -
getMaxReplyUs
public int getMaxReplyUs()Return the max reply time in micro seconds. -
getMinReplyUs
public int getMinReplyUs()Return the min reply time in micro seconds. -
getAvgReplyUs
public int getAvgReplyUs()Return the average reply time in micro seconds. -
isFailed
public boolean isFailed()When true, the response was never received so there are no results available. -
setRequests
public void setRequests(int requests) -
setTimeouts
public void setTimeouts(int timeouts) -
setMaxReplyUs
public void setMaxReplyUs(int maxReplyUs) -
setMinReplyUs
public void setMinReplyUs(int minReplyUs) -
setAvgReplyUs
public void setAvgReplyUs(int avgReplyUs) -
setFailed
public void setFailed(boolean failed)
-