Package org.opennms.smoketest.utils
Class SyslogUtils
- java.lang.Object
-
- org.opennms.smoketest.utils.SyslogUtils
-
public class SyslogUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
SYSLOG_MESSAGE_UEI
Event UEI that is expected to be generated by Syslog messages sent using thesendMessage(InetSocketAddress, String, int)
call.
-
Constructor Summary
Constructors Constructor Description SyslogUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sendMessage(InetSocketAddress syslogAddr, String host, int eventCount)
Use aDatagramChannel
to send a number of syslog messages to the Minion host.
-
-
-
Field Detail
-
SYSLOG_MESSAGE_UEI
public static final String SYSLOG_MESSAGE_UEI
Event UEI that is expected to be generated by Syslog messages sent using thesendMessage(InetSocketAddress, String, int)
call.- See Also:
- Constant Field Values
-
-
Method Detail
-
sendMessage
public static void sendMessage(InetSocketAddress syslogAddr, String host, int eventCount)
Use aDatagramChannel
to send a number of syslog messages to the Minion host.- Parameters:
host
- Hostname to inject into the syslog messageeventCount
- Number of messages to send
-
-