Package org.altlinux.jabbix
Class JabbixWriter
- java.lang.Object
-
- org.altlinux.jabbix.JabbixWriter
-
public class JabbixWriter extends java.lang.ObjectA stream writer implementing the base Jabbix protocol.To send the messages the structured Zabbix protocol is used (see
JabbixProtocol).- Author:
- Paul Wolneykien
- See Also:
JabbixReader
-
-
Constructor Summary
Constructors Constructor Description JabbixWriter(java.io.OutputStream out)Creates a writer for the given output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteMessage(java.lang.String msg)Sends the given message using the Zabbix protocol.
-
-
-
Method Detail
-
writeMessage
public void writeMessage(java.lang.String msg) throws java.io.IOExceptionSends the given message using the Zabbix protocol. The length of the message is explicitly set in the header in accordance with the Zabbix protocol.- Parameters:
msg- message to send- Throws:
java.io.IOException- if an I/O exception occurred during the read operation- See Also:
JabbixProtocol.HEADER,JabbixReader.readMessage(boolean)
-
-