org.productivity.java.syslog4j.server.impl.net.udp
Class UDPNetSyslogServer
java.lang.Object
org.productivity.java.syslog4j.server.impl.AbstractSyslogServer
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>
Field Summary |
protected java.net.DatagramSocket |
ds
|
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 |
ds
protected java.net.DatagramSocket ds
UDPNetSyslogServer
public UDPNetSyslogServer()
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()