org.jboss.soa.esb.nagios.transport
Class NagiosNSCATransport
java.lang.Object
org.jboss.soa.esb.nagios.transport.NagiosNSCATransport
public class NagiosNSCATransport
- extends java.lang.Object
Transport class sends the data string from the monitor into the Nagios NSCA
monitor
|
Method Summary |
static void |
readBytes(byte[] data,
java.io.InputStream in)
Fills the provided byte array with bytes from the InputStream |
static void |
send(java.lang.String host,
int port,
NagiosNSCAPacket packet)
Transport a packet to the Nagios server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NagiosNSCATransport
public NagiosNSCATransport()
send
public static void send(java.lang.String host,
int port,
NagiosNSCAPacket packet)
- Transport a packet to the Nagios server
- Parameters:
host - port - message -
readBytes
public static void readBytes(byte[] data,
java.io.InputStream in)
throws java.io.IOException
- Fills the provided byte array with bytes from the InputStream
- Parameters:
data - array to fillin - input stream
- Throws:
java.io.IOException