|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.net.ntp.NtpUtils
public final class NtpUtils
Common NtpUtils Helper class.
Constructor Summary | |
---|---|
NtpUtils()
|
Method Summary | |
---|---|
static String |
getHostAddress(int address)
Returns 32-bit integer address to IPv4 address string "%d.%d.%d.%d" format. |
static String |
getModeName(int mode)
Return human-readable name of message mode type (RFC 1305). |
static String |
getRefAddress(NtpV3Packet packet)
Returns NTP packet reference identifier as IP address. |
static String |
getReferenceClock(NtpV3Packet message)
Get refId as reference clock string (e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NtpUtils()
Method Detail |
---|
public static String getHostAddress(int address)
address
- the 32-bit address
public static String getRefAddress(NtpV3Packet packet)
packet
- NTP packet
public static String getReferenceClock(NtpV3Packet message)
message
-
public static String getModeName(int mode)
mode
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |