org.jboss.soa.esb.nagios.transport
Class NagiosNSCATransport

java.lang.Object
  extended by 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


Constructor Summary
NagiosNSCATransport()
           
 
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
 

Constructor Detail

NagiosNSCATransport

public NagiosNSCATransport()
Method Detail

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 fill
in - input stream
Throws:
java.io.IOException