org.apache.directory.server.ntp
Class NtpServer

java.lang.Object
  extended by org.apache.directory.server.protocol.shared.AbstractProtocolService
      extended by org.apache.directory.server.ntp.NtpServer
All Implemented Interfaces:
ProtocolService

public class NtpServer
extends AbstractProtocolService

Contains the configuration parameters for the NTP protocol provider.

Version:
$Rev: 896599 $, $Date: 2010-01-06 19:26:43 +0100 (Wed, 06 Jan 2010) $
Author:
Apache Directory Project
XBean

Field Summary
 
Fields inherited from class org.apache.directory.server.protocol.shared.AbstractProtocolService
transports
 
Constructor Summary
NtpServer()
          Creates a new instance of NtpConfiguration.
 
Method Summary
 void start()
          Start the NTPServer.
 void stop()
          Stops this ProtocolService which unbinds acceptors on the protocol port.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.server.protocol.shared.AbstractProtocolService
addTransports, getDatagramAcceptor, getDirectoryService, getServiceId, getServiceName, getSocketAcceptor, getTransports, isEnabled, isStarted, setDirectoryService, setEnabled, setServiceId, setServiceName, setStarted, setTransports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NtpServer

public NtpServer()
Creates a new instance of NtpConfiguration.

Method Detail

start

public void start()
           throws java.io.IOException
Start the NTPServer. We initialize the Datagram and Socket, if necessary. Note that we don't have any filter in the chain, everything is done in the handler.

Throws:
java.io.IOException - if there are issues binding

stop

public void stop()
Stops this ProtocolService which unbinds acceptors on the protocol port.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.