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

com.sumologic.client.collectors.model.SyslogSource Maven / Gradle / Ivy

package com.sumologic.client.collectors.model;

/**
 * A source that collects messages through syslog.
 *
 * @author Jeffrey Wang
 */
public class SyslogSource extends Source {

    private static String PROTOCOL = "protocol";
    private static String PORT = "port";

    public SyslogSource() {
        setSourceType(SourceType.SYSLOG.getType());
    }

    /**
     * Returns the protocol.
     *
     * @return The protocol.
     */
    public String getProtocol() {
        return getProperty(PROTOCOL);
    }

    /**
     * Sets the protocol.
     */
    public void setProtocol(String protocol) {
        setProperty(PROTOCOL, protocol);
    }

    /**
     * Returns the port.
     *
     * @return The port.
     */
    public Integer getPort() {
        return getProperty(PORT);
    }

    /**
     * Sets the port.
     */
    public void setPort(Integer port) {
        setProperty(PORT, port);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy