org.productivity.java.syslog4j.server.impl.net.udp
Class UDPNetSyslogServer

java.lang.Object
  extended by org.productivity.java.syslog4j.server.impl.AbstractSyslogServer
      extended by org.productivity.java.syslog4j.server.impl.net.udp.UDPNetSyslogServer
All Implemented Interfaces:
java.lang.Runnable, SyslogServerIF

public class UDPNetSyslogServer
extends AbstractSyslogServer

UDPNetSyslogServer provides a simple non-threaded UDP/IP server implementation.

Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.

Version:
$Id: UDPNetSyslogServer.java,v 1.16 2010/11/12 03:43:15 cvs Exp $
Author:
<syslog4j@productivity.org>

Nested Class Summary
 
Nested classes/interfaces inherited from class org.productivity.java.syslog4j.server.impl.AbstractSyslogServer
AbstractSyslogServer.Sessions
 
Field Summary
protected  java.net.DatagramSocket ds
           
 
Fields inherited from class org.productivity.java.syslog4j.server.impl.AbstractSyslogServer
shutdown, syslogProtocol, syslogServerConfig, thread
 
Constructor Summary
UDPNetSyslogServer()
           
 
Method Summary
protected  java.net.DatagramSocket createDatagramSocket()
           
 void initialize()
           
 void run()
           
 void shutdown()
           
 
Methods inherited from class org.productivity.java.syslog4j.server.impl.AbstractSyslogServer
createEvent, createEvent, getConfig, getProtocol, getThread, handleDestroy, handleEvent, handleEvent, handleEvent, handleException, handleInitialize, handleSessionClosed, handleSessionOpen, initialize, isStructuredMessage, isStructuredMessage, setThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

protected java.net.DatagramSocket ds
Constructor Detail

UDPNetSyslogServer

public UDPNetSyslogServer()
Method Detail

initialize

public void initialize()
                throws SyslogRuntimeException
Specified by:
initialize in class AbstractSyslogServer
Throws:
SyslogRuntimeException

shutdown

public void shutdown()
Specified by:
shutdown in interface SyslogServerIF
Overrides:
shutdown in class AbstractSyslogServer

createDatagramSocket

protected java.net.DatagramSocket createDatagramSocket()
                                                throws java.net.SocketException,
                                                       java.net.UnknownHostException
Throws:
java.net.SocketException
java.net.UnknownHostException

run

public void run()