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