org.productivity.java.syslog4j.server.impl
Class AbstractSyslogServer

java.lang.Object
  extended byorg.productivity.java.syslog4j.server.impl.AbstractSyslogServer
All Implemented Interfaces:
java.lang.Runnable, SyslogServerIF
Direct Known Subclasses:
TCPNetSyslogServer, UDPNetSyslogServer

public abstract class AbstractSyslogServer
extends java.lang.Object
implements SyslogServerIF

AbstractSyslogServer provides a base abstract implementation of the SyslogServerIF.

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: AbstractSyslogServer.java,v 1.6 2008/11/07 15:15:41 cvs Exp $
Author:
<syslog4j@productivity.org>

Field Summary
protected  boolean shutdown
           
protected  java.lang.String syslogProtocol
           
protected  AbstractSyslogServerConfig syslogServerConfig
           
protected  java.lang.Thread thread
           
 
Constructor Summary
AbstractSyslogServer()
           
 
Method Summary
 SyslogServerConfigIF getConfig()
           
 java.lang.String getProtocol()
           
 java.lang.Thread getThread()
           
protected abstract  void initialize()
           
 void initialize(java.lang.String protocol, SyslogServerConfigIF config)
           
 void setThread(java.lang.Thread thread)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.productivity.java.syslog4j.server.SyslogServerIF
run
 

Field Detail

syslogProtocol

protected java.lang.String syslogProtocol

syslogServerConfig

protected AbstractSyslogServerConfig syslogServerConfig

thread

protected java.lang.Thread thread

shutdown

protected boolean shutdown
Constructor Detail

AbstractSyslogServer

public AbstractSyslogServer()
Method Detail

initialize

public void initialize(java.lang.String protocol,
                       SyslogServerConfigIF config)
                throws SyslogRuntimeException
Specified by:
initialize in interface SyslogServerIF
Throws:
SyslogRuntimeException

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface SyslogServerIF

getConfig

public SyslogServerConfigIF getConfig()
Specified by:
getConfig in interface SyslogServerIF

initialize

protected abstract void initialize()
                            throws SyslogRuntimeException
Throws:
SyslogRuntimeException

shutdown

public void shutdown()
              throws SyslogRuntimeException
Specified by:
shutdown in interface SyslogServerIF
Throws:
SyslogRuntimeException

getThread

public java.lang.Thread getThread()
Specified by:
getThread in interface SyslogServerIF

setThread

public void setThread(java.lang.Thread thread)
Specified by:
setThread in interface SyslogServerIF