biz.neustar.wpm.api
Interface Net.PingResult

Enclosing interface:
Net

public static interface Net.PingResult

The result of a ping request.


Method Summary
 int avgResponseTime()
          Get the average response time for all successful round trip pings.
 java.lang.String getHost()
          The hostname that the ping was done for
 java.lang.String getIp()
          The ip address that was resolved for the hostname
 int getPacketsLost()
          The number of ping reply packets that never made it back from the host to the client machine.
 int getPacketsSent()
          The number of ping packets sent.
 

Method Detail

getIp

java.lang.String getIp()
The ip address that was resolved for the hostname

Returns:
The ip of the host

getHost

java.lang.String getHost()
The hostname that the ping was done for

Returns:
the hostname

getPacketsSent

int getPacketsSent()
The number of ping packets sent.

Returns:
The number of packets sent.

getPacketsLost

int getPacketsLost()
The number of ping reply packets that never made it back from the host to the client machine.

Returns:
The number of packets lost.

avgResponseTime

int avgResponseTime()
Get the average response time for all successful round trip pings.

Returns:
the average response time.

Copyright © 2020 Neustar, Inc. All Rights Reserved.