Package org.productivity.java.syslog4j.server

Examples of org.productivity.java.syslog4j.server.SyslogServerEventHandlerIF


        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Firing Syslog event: " + event);
        }
        final List eventHandlers = this.server.getConfig().getEventHandlers();
        for (int i = 0; i < eventHandlers.size(); i++) {
            final SyslogServerEventHandlerIF eventHandler = (SyslogServerEventHandlerIF) eventHandlers.get(i);
            eventHandler.event(this.server, event);
        }
    }
View Full Code Here


                final DatagramPacket dp = new DatagramPacket(receiveData, receiveData.length);
                this.ds.receive(dp);
                final SyslogServerEventIF event = new Rfc5424SyslogEvent(receiveData, dp.getOffset(), dp.getLength());
                List list = this.syslogServerConfig.getEventHandlers();
                for (int i = 0; i < list.size(); i++) {
                    SyslogServerEventHandlerIF eventHandler = (SyslogServerEventHandlerIF) list.get(i);
                    eventHandler.event(this, event);
                }
            } catch (SocketException se) {
                LOGGER.warn("SocketException occurred", se);
            } catch (IOException ioe) {
                LOGGER.warn("IOException occurred", ioe);
View Full Code Here

        final int port = port();
        server.getConfig().setPort(port);
        final BlockingQueue<String> messages =
            new LinkedBlockingQueue<String>();
        server.getConfig().addEventHandler(
            new SyslogServerEventHandlerIF() {
                /**
                 * Serial Version UID.
                 */
                private static final long serialVersionUID =
                    -7043255643054178133L;
View Full Code Here

TOP

Related Classes of org.productivity.java.syslog4j.server.SyslogServerEventHandlerIF

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.