public class SyslogTcpSource extends AbstractModuleFixture<SyslogTcpSource>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
label| Constructor and Description |
|---|
SyslogTcpSource(java.lang.String host,
int port)
Initializes a SyslogTcpSource fixture.
|
| Modifier and Type | Method and Description |
|---|---|
void |
sendBytes(byte[] bytes)
Sends TCP traffic to a syslog source host and port.
|
protected java.lang.String |
toDSL()
Renders the DSL for this fixture.
|
static SyslogTcpSource |
withDefaults()
Returns a SyslogTcpSource fixture instance that is initialized with default port and host.
|
static SyslogTcpSource |
withDefaults(java.lang.String host)
Returns a SyslogTcpSource fixture instance that is initialized with default port and the
provided host parameter
|
label, toStringpublic static final int DEFAULT_PORT
public static final java.lang.String DEFAULT_HOST
public SyslogTcpSource(java.lang.String host,
int port)
host - the host that tcp data will be sent.port - the port that tcp data will be sent.public static SyslogTcpSource withDefaults()
public static SyslogTcpSource withDefaults(java.lang.String host)
host - The host that tcp data will be sent.protected java.lang.String toDSL()
toDSL in class AbstractModuleFixture<SyslogTcpSource>public void sendBytes(byte[] bytes)
bytes - the data to be sent.