Package net.welen.jmole.protocols.nrpe
Class NRPEMessage
- java.lang.Object
-
- net.welen.jmole.protocols.nrpe.NRPEMessage
-
public class NRPEMessage extends Object
Based on info from: https://github.com/stockholmuniversity/Nagios-NRPE/blob/master/share/protocol-nrpe.md
-
-
Constructor Summary
Constructors Constructor Description NRPEMessage(int version, int type, int resultCode, byte[] buffer)NRPEMessage(DataInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBufferAsString()longgetCRC32()intgetResultCode()intgetType()intgetVersion()voidsendMessage(DataOutputStream out)StringtoString()
-
-
-
Constructor Detail
-
NRPEMessage
public NRPEMessage(DataInputStream in) throws IOException
- Throws:
IOException
-
NRPEMessage
public NRPEMessage(int version, int type, int resultCode, byte[] buffer)
-
-
Method Detail
-
getVersion
public int getVersion()
-
getType
public int getType()
-
getCRC32
public long getCRC32()
-
getResultCode
public int getResultCode()
-
sendMessage
public void sendMessage(DataOutputStream out) throws IOException
- Throws:
IOException
-
getBufferAsString
public String getBufferAsString()
-
-