|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.detector.datagram.client.NtpClient
@Component @Scope(value="prototype") public class NtpClient
| Constructor Summary | |
|---|---|
NtpClient()
|
|
| Method Summary | |
|---|---|
void |
close()
close |
void |
connect(InetAddress address,
int port,
int timeout)
connect |
protected InetAddress |
getAddress()
getAddress |
protected int |
getPort()
getPort |
DatagramPacket |
receiveBanner()
receiveBanner |
DatagramPacket |
sendRequest(NtpMessage request)
sendRequest |
protected void |
setAddress(InetAddress address)
setAddress |
protected void |
setPort(int port)
setPort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NtpClient()
| Method Detail |
|---|
public void close()
close
close in interface Client<NtpMessage,DatagramPacket>
public void connect(InetAddress address,
int port,
int timeout)
throws IOException,
Exception
connect
connect in interface Client<NtpMessage,DatagramPacket>address - a InetAddress object.port - a int.timeout - a int.
IOException - if any.
Exception - if any.
public DatagramPacket receiveBanner()
throws IOException,
Exception
receiveBanner
receiveBanner in interface Client<NtpMessage,DatagramPacket>DatagramPacket object.
IOException - if any.
Exception - if any.
public DatagramPacket sendRequest(NtpMessage request)
throws IOException,
Exception
sendRequest
sendRequest in interface Client<NtpMessage,DatagramPacket>request - a NtpMessage object.
DatagramPacket object.
IOException - if any.
Exception - if any.protected void setAddress(InetAddress address)
setAddress
address - a InetAddress object.protected InetAddress getAddress()
getAddress
InetAddress object.protected void setPort(int port)
setPort
port - a int.protected int getPort()
getPort
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||