Java Doc for NtpV3Packet.java in  » Net » Apache-commons-net-1.4.1 » org » apache » commons » net » ntp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Apache commons net 1.4.1 » org.apache.commons.net.ntp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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) $


Field Summary
final public static  intLI_ALARM_CONDITION
    
final public static  intLI_LAST_MINUTE_HAS_59_SECONDS
    
final public static  intLI_LAST_MINUTE_HAS_61_SECONDS
    
final public static  intLI_NO_WARNING
    
final public static  intMODE_BROADCAST
    
final public static  intMODE_CLIENT
    
final public static  intMODE_CONTROL_MESSAGE
    
final public static  intMODE_PRIVATE
    
final public static  intMODE_RESERVED
    
final public static  intMODE_SERVER
    
final public static  intMODE_SYMMETRIC_ACTIVE
    
final public static  intMODE_SYMMETRIC_PASSIVE
    
final public static  intNTP_MAXCLOCK
    
final public static  intNTP_MAXPOLL
    
final public static  intNTP_MINCLOCK
    
final public static  intNTP_MINPOLL
    
final public static  intNTP_PORT
    
final public static  StringTYPE_DAYTIME
    
final public static  StringTYPE_ICMP
    
final public static  StringTYPE_NTP
    
final public static  StringTYPE_TIME
    
final public static  intVERSION_3
    
final public static  intVERSION_4
    


Method Summary
public  DatagramPacketgetDatagramPacket()
    
public  intgetLeapIndicator()
    
public  intgetMode()
    
public  StringgetModeName()
     mode as human readable string; e.g.
public  TimeStampgetOriginateTimeStamp()
    
public  intgetPoll()
    
public  intgetPrecision()
    
public  TimeStampgetReceiveTimeStamp()
    
public  intgetReferenceId()
    
public  StringgetReferenceIdString()
    
public  TimeStampgetReferenceTimeStamp()
    
public  intgetRootDelay()
    
public  doublegetRootDelayInMillisDouble()
    
public  intgetRootDispersion()
    
public  longgetRootDispersionInMillis()
    
public  doublegetRootDispersionInMillisDouble()
    
public  intgetStratum()
    
public  TimeStampgetTransmitTimeStamp()
    
public  StringgetType()
     Return type of time packet.
public  intgetVersion()
    
public  voidsetDatagramPacket(DatagramPacket dp)
    
public  voidsetLeapIndicator(int li)
     Set leap indicator.
public  voidsetMode(int mode)
    
public  voidsetOriginateTimeStamp(TimeStamp ts)
     Set originate timestamp given NTP TimeStamp object.
public  voidsetPoll(int poll)
     Set poll interval as defined in RFC-1305.
public  voidsetReceiveTimeStamp(TimeStamp ts)
     Set receive timestamp given NTP TimeStamp object.
public  voidsetReferenceId(int refId)
     Set reference clock identifier field.
public  voidsetReferenceTime(TimeStamp ts)
     Set the reference timestamp given NTP TimeStamp object.
public  voidsetStratum(int stratum)
    
public  voidsetTransmitTime(TimeStamp ts)
     Set the transmit timestamp given NTP TimeStamp object.
public  voidsetVersion(int mode)
    

Field Detail
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



TYPE_DAYTIME
final public static String TYPE_DAYTIME(Code)



TYPE_ICMP
final public static String TYPE_ICMP(Code)



TYPE_NTP
final public static String TYPE_NTP(Code)



TYPE_TIME
final public static String TYPE_TIME(Code)



VERSION_3
final public static int VERSION_3(Code)



VERSION_4
final public static int VERSION_4(Code)





Method Detail
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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.