All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nesscomputing.syslog4j.server.impl.net.tcp.TCPNetSyslogServerConfig Maven / Gradle / Ivy

Go to download

Syslog4j provides client and server implementations of the BSD Syslog protocol (RFC 3164) and the structured syslog" protocol (RFC5424).

There is a newer version: 0.9.47-NESS-8
Show newest version
/**
 *
 * (C) Copyright 2008-2011 syslog4j.org
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl-2.1.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 */
package com.nesscomputing.syslog4j.server.impl.net.tcp;

import static com.nesscomputing.syslog4j.SyslogConstants.TCP_MAX_ACTIVE_SOCKETS_BEHAVIOR_DEFAULT;
import static com.nesscomputing.syslog4j.SyslogConstants.TCP_MAX_ACTIVE_SOCKETS_DEFAULT;

import com.nesscomputing.syslog4j.server.SyslogServerIF;
import com.nesscomputing.syslog4j.server.impl.net.AbstractNetSyslogServerConfig;
/**
* TCPNetSyslogServerConfig provides configuration for TCPNetSyslogServer.
*
* 

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.

* * @author <[email protected]> * @version $Id: TCPNetSyslogServerConfig.java,v 1.8 2010/11/28 01:38:08 cvs Exp $ */ public class TCPNetSyslogServerConfig extends AbstractNetSyslogServerConfig implements TCPNetSyslogServerConfigIF { protected int timeout = 0; protected int backlog = 0; protected int maxActiveSockets = TCP_MAX_ACTIVE_SOCKETS_DEFAULT; protected byte maxActiveSocketsBehavior = TCP_MAX_ACTIVE_SOCKETS_BEHAVIOR_DEFAULT; public TCPNetSyslogServerConfig() { // } public TCPNetSyslogServerConfig(int port) { this.port = port; } public TCPNetSyslogServerConfig(int port, int backlog) { this.port = port; this.backlog = backlog; } public TCPNetSyslogServerConfig(String host) { this.host = host; } public TCPNetSyslogServerConfig(String host, int port) { this.host = host; this.port = port; } public TCPNetSyslogServerConfig(String host, int port, int backlog) { this.host = host; this.port = port; this.backlog = backlog; } public Class getSyslogServerClass() { return TCPNetSyslogServer.class; } public int getTimeout() { return timeout; } public void setTimeout(int timeout) { this.timeout = timeout; } public int getBacklog() { return this.backlog; } public void setBacklog(int backlog) { this.backlog = backlog; } public int getMaxActiveSockets() { return maxActiveSockets; } public void setMaxActiveSockets(int maxActiveSockets) { this.maxActiveSockets = maxActiveSockets; } public byte getMaxActiveSocketsBehavior() { return maxActiveSocketsBehavior; } public void setMaxActiveSocketsBehavior(byte maxActiveSocketsBehavior) { this.maxActiveSocketsBehavior = maxActiveSocketsBehavior; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy