| |
|
| org.apache.commons.net.ntp.NtpV3Packet
All known Subclasses: org.apache.commons.net.ntp.NtpV3Impl,
NtpV3Packet | public interface NtpV3Packet (Code) | | Interface for a NtpV3Packet with get/set methods corresponding to the fields
in the NTP Data Message Header described in RFC 1305.
author: Naz Irizarry, MITRE Corp author: Jason Mathews, MITRE Corp version: $Revision: 165675 $ $Date: 2005-05-02 15:09:55 -0500 (Mon, 02 May 2005) $ |
LI_ALARM_CONDITION | final public static int LI_ALARM_CONDITION(Code) | | |
LI_LAST_MINUTE_HAS_59_SECONDS | final public static int LI_LAST_MINUTE_HAS_59_SECONDS(Code) | | |
LI_LAST_MINUTE_HAS_61_SECONDS | final public static int LI_LAST_MINUTE_HAS_61_SECONDS(Code) | | |
LI_NO_WARNING | final public static int LI_NO_WARNING(Code) | | |
MODE_BROADCAST | final public static int MODE_BROADCAST(Code) | | |
MODE_CLIENT | final public static int MODE_CLIENT(Code) | | |
MODE_CONTROL_MESSAGE | final public static int MODE_CONTROL_MESSAGE(Code) | | |
MODE_PRIVATE | final public static int MODE_PRIVATE(Code) | | |
MODE_RESERVED | final public static int MODE_RESERVED(Code) | | |
MODE_SERVER | final public static int MODE_SERVER(Code) | | |
MODE_SYMMETRIC_ACTIVE | final public static int MODE_SYMMETRIC_ACTIVE(Code) | | |
MODE_SYMMETRIC_PASSIVE | final public static int MODE_SYMMETRIC_PASSIVE(Code) | | |
NTP_MAXCLOCK | final public static int NTP_MAXCLOCK(Code) | | |
NTP_MAXPOLL | final public static int NTP_MAXPOLL(Code) | | |
NTP_MINCLOCK | final public static int NTP_MINCLOCK(Code) | | |
NTP_MINPOLL | final public static int NTP_MINPOLL(Code) | | |
NTP_PORT | final public static int NTP_PORT(Code) | | Standard NTP UDP port
|
VERSION_3 | final public static int VERSION_3(Code) | | |
VERSION_4 | final public static int VERSION_4(Code) | | |
getDatagramPacket | public DatagramPacket getDatagramPacket()(Code) | | a datagram packet with the NTP parts already filled in |
getLeapIndicator | public int getLeapIndicator()(Code) | | leap indicator as defined in RFC-1305 |
getMode | public int getMode()(Code) | | mode as defined in RFC-1305 |
getModeName | public String getModeName()(Code) | | mode as human readable string; e.g. 3=Client |
getOriginateTimeStamp | public TimeStamp getOriginateTimeStamp()(Code) | | the originate time as defined in RFC-1305 |
getPoll | public int getPoll()(Code) | | poll interval as defined in RFC-1305.Field range between NTP_MINPOLL and NTP_MAXPOLL. |
getPrecision | public int getPrecision()(Code) | | precision as defined in RFC-1305 |
getReceiveTimeStamp | public TimeStamp getReceiveTimeStamp()(Code) | | the receive time as defined in RFC-1305 |
getReferenceId | public int getReferenceId()(Code) | | the reference id (32-bit code) as defined in RFC-1305 |
getReferenceIdString | public String getReferenceIdString()(Code) | | the reference id string |
getReferenceTimeStamp | public TimeStamp getReferenceTimeStamp()(Code) | | the reference time as defined in RFC-1305 |
getRootDelay | public int getRootDelay()(Code) | | root delay as defined in RFC-1305 |
getRootDelayInMillisDouble | public double getRootDelayInMillisDouble()(Code) | | root delay in milliseconds |
getRootDispersion | public int getRootDispersion()(Code) | | root dispersion as defined in RFC-1305 |
getRootDispersionInMillis | public long getRootDispersionInMillis()(Code) | | root dispersion in milliseconds |
getRootDispersionInMillisDouble | public double getRootDispersionInMillisDouble()(Code) | | root dispersion in milliseconds |
getStratum | public int getStratum()(Code) | | stratum as defined in RFC-1305 |
getTransmitTimeStamp | public TimeStamp getTransmitTimeStamp()(Code) | | the transmit timestamp as defined in RFC-1305 |
getType | public String getType()(Code) | | Return type of time packet. The values (e.g. NTP, TIME, ICMP, ...)
correspond to the protocol used to obtain the timing information.
packet type string identifier |
getVersion | public int getVersion()(Code) | | version as defined in RFC-1305 |
setDatagramPacket | public void setDatagramPacket(DatagramPacket dp)(Code) | | Set the contents of this object from the datagram packet
|
setLeapIndicator | public void setLeapIndicator(int li)(Code) | | Set leap indicator.
Parameters: li - - leap indicator code |
setMode | public void setMode(int mode)(Code) | | Set mode as defined in RFC-1305
|
setOriginateTimeStamp | public void setOriginateTimeStamp(TimeStamp ts)(Code) | | Set originate timestamp given NTP TimeStamp object.
Parameters: ts - - timestamp |
setPoll | public void setPoll(int poll)(Code) | | Set poll interval as defined in RFC-1305.
Field range between NTP_MINPOLL and NTP_MAXPOLL.
|
setReceiveTimeStamp | public void setReceiveTimeStamp(TimeStamp ts)(Code) | | Set receive timestamp given NTP TimeStamp object.
Parameters: ts - - timestamp |
setReferenceId | public void setReferenceId(int refId)(Code) | | Set reference clock identifier field.
Parameters: refId - |
setReferenceTime | public void setReferenceTime(TimeStamp ts)(Code) | | Set the reference timestamp given NTP TimeStamp object.
Parameters: ts - - timestamp |
setStratum | public void setStratum(int stratum)(Code) | | Set stratum as defined in RFC-1305
|
setTransmitTime | public void setTransmitTime(TimeStamp ts)(Code) | | Set the transmit timestamp given NTP TimeStamp object.
Parameters: ts - - timestamp |
setVersion | public void setVersion(int mode)(Code) | | Set version as defined in RFC-1305
|
|
|
|