public abstract class CheckNrpe extends Object
CheckNrpe class.
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_PORT
Constant  
DEFAULT_PORT=5666 | 
static int | 
DEFAULT_TIMEOUT
Constant  
DEFAULT_TIMEOUT=10 | 
| Constructor and Description | 
|---|
CheckNrpe()  | 
| Modifier and Type | Method and Description | 
|---|---|
static NrpePacket | 
executeQuery(String host,
            int port,
            String buffer,
            int padding)
executeQuery 
 | 
static NrpePacket | 
executeQuery(String host,
            String buffer)
executeQuery 
 | 
static NrpePacket | 
executeQuery(String host,
            String buffer,
            int padding)
executeQuery 
 | 
static void | 
main(String[] argv)
main 
 | 
static String | 
nextArg(String[] argv,
       int i)
nextArg 
 | 
static NrpePacket | 
sendPacket(short type,
          short resultCode,
          String buffer)
sendPacket 
 | 
public static final int DEFAULT_PORT
DEFAULT_PORT=5666public static final int DEFAULT_TIMEOUT
DEFAULT_TIMEOUT=10public static NrpePacket executeQuery(String host, String buffer) throws Exception
executeQuery
host - a String object.buffer - a String object.NrpePacket object.Exception - if any.public static NrpePacket executeQuery(String host, String buffer, int padding) throws Exception
executeQuery
host - a String object.buffer - a String object.padding - a int.NrpePacket object.Exception - if any.public static NrpePacket executeQuery(String host, int port, String buffer, int padding) throws Exception
executeQuery
host - a String object.port - a int.buffer - a String object.padding - a int.NrpePacket object.Exception - if any.public static NrpePacket sendPacket(short type, short resultCode, String buffer) throws Exception
sendPacket
type - a short.resultCode - a short.buffer - a String object.NrpePacket object.Exception - if any.Copyright © 2015. All rights reserved.