public class NtpServer extends AbstractProtocolService
| Modifier and Type | Field and Description |
|---|---|
private static int |
IP_PORT_DEFAULT
The default IP port.
|
private static org.slf4j.Logger |
LOG
logger for this class
|
private static java.lang.String |
SERVICE_NAME_DEFAULT
The default service name.
|
private static java.lang.String |
SERVICE_PID_DEFAULT
The default service pid.
|
transports| Constructor and Description |
|---|
NtpServer()
Creates a new instance of NtpConfiguration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Start the NTPServer.
|
void |
stop()
Stops this ProtocolService which unbinds acceptors on the protocol port.
|
java.lang.String |
toString() |
addTransports, getDatagramAcceptor, getServiceId, getServiceName, getSocketAcceptor, getTransports, isEnabled, isStarted, setEnabled, setServiceId, setServiceName, setStarted, setTransportsprivate static final org.slf4j.Logger LOG
private static final int IP_PORT_DEFAULT
private static final java.lang.String SERVICE_PID_DEFAULT
private static final java.lang.String SERVICE_NAME_DEFAULT
public void start()
throws java.io.IOException
java.io.IOException - if there are issues bindingpublic void stop()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()