A B C E F G H I J L P R S T U V W 

A

addAcceptedHost(String) - Method in class it.jnrpe.JNRPE
Adds an address to the list of accepted hosts.
addArgument(CommandOption) - Method in class it.jnrpe.commands.CommandDefinition
Adds an option to the command definition.
addCommandDefinition(CommandDefinition) - Method in class it.jnrpe.commands.CommandRepository
Adds a new command definition to the repository.
addEventListener(IJNRPEEventListener) - Method in class it.jnrpe.JNRPE
Adds a new event listener.
addListener(IJNRPEEventListener) - Method in interface it.jnrpe.plugins.IPluginInterfaceEx
Adds a new listener to the list of objects that will receive the messages sent by this class.
addListener(IJNRPEEventListener) - Method in class it.jnrpe.plugins.PluginBase
Adds a new listener to the list of objects that will receive the messages.
addListeners(Collection<IJNRPEEventListener>) - Method in interface it.jnrpe.plugins.IPluginInterfaceEx
Adds a whole collection of listeners to the plugin.
addListeners(Collection<IJNRPEEventListener>) - Method in class it.jnrpe.plugins.PluginBase
Adds a new collection of listeners.
addOption(PluginOption) - Method in class it.jnrpe.plugins.PluginDefinition
Adds a new option to the plugin.
addPluginDefinition(PluginDefinition) - Method in class it.jnrpe.plugins.PluginRepository
Adds a plugin definition to this repository.

B

BadCRCException - Exception in it.jnrpe.net
This exception is thrown if the response CRC or the request CRC ccould not be verified.
BadCRCException() - Constructor for exception it.jnrpe.net.BadCRCException
Initialize the exception with an emtpy error message
BadCRCException(String, Throwable) - Constructor for exception it.jnrpe.net.BadCRCException
Initialize the exception with the given error message and the give root cause
BadCRCException(String) - Constructor for exception it.jnrpe.net.BadCRCException
Initialize the exception with the given error message
BadCRCException(Throwable) - Constructor for exception it.jnrpe.net.BadCRCException
Initialize the exception with the given root cause

C

closeAll() - Method in class it.jnrpe.utils.StreamManager
Closes all handles streams and readers.
CommandDefinition - Class in it.jnrpe.commands
Container class for command definition configuration.
CommandDefinition(String, String) - Constructor for class it.jnrpe.commands.CommandDefinition
Builds and initializes the command definition.
CommandInvoker - Class in it.jnrpe.commands
This class is used to invoke a command.
CommandInvoker(PluginRepository, CommandRepository, Set<IJNRPEEventListener>) - Constructor for class it.jnrpe.commands.CommandInvoker
Builds and initializes the CommandInvoker object.
CommandOption - Class in it.jnrpe.commands
This class represent a command Option.
CommandOption(String) - Constructor for class it.jnrpe.commands.CommandOption
Initializes an option that has no value.
CommandOption(String, String) - Constructor for class it.jnrpe.commands.CommandOption
Initializes an option and its value.
CommandRepository - Class in it.jnrpe.commands
This object manages all the configured commands.
CommandRepository() - Constructor for class it.jnrpe.commands.CommandRepository
 

E

EventExceptionParam - Class in it.jnrpe.events
This object represent an 'EXCEPTION' parameter.
EventExceptionParam(Throwable) - Constructor for class it.jnrpe.events.EventExceptionParam
Builds and initializes the exception parameter
EventMessageParam - Class in it.jnrpe.events
This object represent an event 'MESSAGE' parameter.
EventMessageParam(String) - Constructor for class it.jnrpe.events.EventMessageParam
Builds and initializes the message parameter
EventParam - Class in it.jnrpe.events
This class represent an event parameter.
EventParam(String, Object) - Constructor for class it.jnrpe.events.EventParam
Builds and initializes an event parameter
EventsUtil - Class in it.jnrpe.events
This is an utility class than can be used to send simply events to all the registered listeners.
execute(ICommandLine) - Method in interface it.jnrpe.plugins.IPluginInterface
Executes the plugin.
execute(String[]) - Method in class it.jnrpe.plugins.PluginProxy
Executes the proxied plugin passing the received arguments as parameters.
execute(ICommandLine) - Method in class it.jnrpe.plugins.PluginProxy
Not used.

F

fromIntValue(int) - Static method in enum it.jnrpe.net.PacketType
 
fromIntValue(int) - Static method in enum it.jnrpe.net.PacketVersion
Returns the enum corresponding with the given int value.
fromIntValue(int) - Static method in enum it.jnrpe.PacketType
 
fromIntValue(int) - Static method in enum it.jnrpe.Status
Returns the enum corresponding with the given int value.

G

getAllPlugins() - Method in class it.jnrpe.plugins.PluginRepository
Returns all the plugin definitions managed by this repository.
getArgName() - Method in class it.jnrpe.plugins.PluginOption
Returns the name of the argument of this option.
getArgs() - Method in class it.jnrpe.commands.CommandDefinition
The raw command line of this command.
getArgsCount() - Method in class it.jnrpe.plugins.PluginOption
Returns the number of arguments.
getArgsOptional() - Method in class it.jnrpe.plugins.PluginOption
Used to know if the option has optional arguments.
getArguments() - Method in class it.jnrpe.net.JNRPECommand
Returns the command arguments
getCommand(String) - Method in class it.jnrpe.commands.CommandRepository
Returns the named command definition.
getCommandLine() - Method in class it.jnrpe.commands.CommandDefinition
Merges the command line definition read from the server config file with.
getCommandName() - Method in class it.jnrpe.net.JNRPECommand
Returns the command name
getDescription() - Method in class it.jnrpe.plugins.PluginDefinition
Returns the plugin description.
getDescription() - Method in class it.jnrpe.plugins.PluginOption
Returns the description of this option.
getEventName() - Method in interface it.jnrpe.events.IJNRPEEvent
The event name.
getEventParams() - Method in interface it.jnrpe.events.IJNRPEEvent
The event parameters.
getInputStream(File) - Method in class it.jnrpe.utils.StreamManager
Returns an InputStream on the given file.
getInstance(JNRPERequest) - Static method in class it.jnrpe.net.JNRPECommand
Returns the command that should satisfy the received request
getLongOpt() - Method in class it.jnrpe.plugins.PluginOption
Returns the long name of this option.
getMessage() - Method in class it.jnrpe.ReturnValue
Returns the message.
getName() - Method in class it.jnrpe.commands.CommandDefinition
Returns the command name.
getName() - Method in class it.jnrpe.commands.CommandOption
Returns the option name.
getName() - Method in class it.jnrpe.events.EventParam
Returns the parameter name
getName() - Method in class it.jnrpe.plugins.PluginDefinition
Returns the plugin name.
getOption() - Method in class it.jnrpe.plugins.PluginOption
Returns the option string.
getOptions() - Method in class it.jnrpe.plugins.PluginDefinition
Returns all the plugin options.
getOptions() - Method in class it.jnrpe.plugins.PluginProxy
Returns a collection of all the options accepted by this plugin.
getOptionValue(String) - Method in interface it.jnrpe.ICommandLine
Returns the value of the specified option.
getOptionValue(String, String) - Method in interface it.jnrpe.ICommandLine
Returns the value of the specified option.
getOptionValue(char) - Method in interface it.jnrpe.ICommandLine
Returns the value of the specified option.
getOptionValue(char, String) - Method in interface it.jnrpe.ICommandLine
Returns the value of the specified option If the option is not present, returns the default value.
getOutputStream(File) - Method in class it.jnrpe.utils.StreamManager
Returns an OutputStream on the given file.
getPlugin(String) - Method in class it.jnrpe.plugins.PluginRepository
Returns an instance of the plugin declared inside the plugin definition.
getPluginName() - Method in class it.jnrpe.commands.CommandDefinition
Returns the name of the plugin associated with this command.
getRequired() - Method in class it.jnrpe.plugins.PluginOption
Returns the string 'true' if required.
getReturnCode() - Method in class it.jnrpe.ReturnValue
Deprecated.
getStatus() - Method in class it.jnrpe.ReturnValue
Returns the status.
getType() - Method in class it.jnrpe.plugins.PluginOption
Returns the type of this option.
getValue() - Method in class it.jnrpe.commands.CommandOption
Returns the option value.
getValue() - Method in class it.jnrpe.events.EventParam
Returns the parameter value
getValueSeparator() - Method in class it.jnrpe.plugins.PluginOption
Returns the value separator.

H

handle(InputStream) - Method in class it.jnrpe.utils.StreamManager
Handles the received InputStream and returns it.
handle(OutputStream) - Method in class it.jnrpe.utils.StreamManager
Handles the received OutputStream and returns it.
handle(Reader) - Method in class it.jnrpe.utils.StreamManager
Handles the received Reader and returns it.
handle(Writer) - Method in class it.jnrpe.utils.StreamManager
Handles the received Writer and returns it.
hasArgs() - Method in class it.jnrpe.plugins.PluginOption
Returns true if the option has an argument.
hasOption(String) - Method in interface it.jnrpe.ICommandLine
Returns true if the option is present.
hasOption(char) - Method in interface it.jnrpe.ICommandLine
Returns true if the option is present.

I

ICommandLine - Interface in it.jnrpe
This interface represents the command line received by plugin instances.
IJNRPEConstants - Interface in it.jnrpe.net
Deprecated. 
IJNRPEEvent - Interface in it.jnrpe.events
The interface that all the events must implement
IJNRPEEventListener - Interface in it.jnrpe.events
This class represent the interface an object must implement to be able to receive events from JNRPE
intValue() - Method in enum it.jnrpe.net.PacketType
Returns the int value of the enum.
intValue() - Method in enum it.jnrpe.net.PacketVersion
Returns the int value of the enum.
intValue() - Method in enum it.jnrpe.PacketType
 
intValue() - Method in enum it.jnrpe.Status
Returns the int value of the enum.
invoke(String, String[]) - Method in class it.jnrpe.commands.CommandInvoker
This method executes built in commands or builds a CommandDefinition to.
invoke(CommandDefinition, String[]) - Method in class it.jnrpe.commands.CommandInvoker
This method executes external commands (plugins) The methods also expands the $ARG?$ macros.
IPluginInterface - Interface in it.jnrpe.plugins
This is the interface that all the JAVA plugins must implement
IPluginInterfaceEx - Interface in it.jnrpe.plugins
This interface must be implemented by all the plugins that needs to send events that must be intercepted by the JNRPE Server.
isValueInRange(String, int) - Static method in class it.jnrpe.utils.ThresholdUtil
Returns true if the value iValue falls into the.
isValueInRange(String, BigDecimal) - Static method in class it.jnrpe.utils.ThresholdUtil
Returns true if the value dalue falls into the.
it.jnrpe - package it.jnrpe
This package contains the JNRPE engine
it.jnrpe.commands - package it.jnrpe.commands
This package contains the JNRPE engine.
it.jnrpe.events - package it.jnrpe.events
This package contains all the classes required to handle commands.
it.jnrpe.net - package it.jnrpe.net
This package contains all the classes created to add the event function to JNRPE.
it.jnrpe.plugins - package it.jnrpe.plugins
This package contains the low level object that implements the NRPE protocol.
it.jnrpe.utils - package it.jnrpe.utils
In this package you'll find all the classes you need to interact to to create plugins.

J

JNRPE - Class in it.jnrpe
This class is the real JNRPE worker.
JNRPE(PluginRepository, CommandRepository) - Constructor for class it.jnrpe.JNRPE
Initializes the JNRPE worker.
JNRPECommand - Class in it.jnrpe.net
This object represent a JNRPE command.
JNRPERequest - Class in it.jnrpe.net
This object represent a generic request packet.
JNRPERequest(InputStream) - Constructor for class it.jnrpe.net.JNRPERequest
This constructor initializes the object with the data read from the given.
JNRPEResponse - Class in it.jnrpe.net
This object represent a generic response packet.
JNRPEResponse() - Constructor for class it.jnrpe.net.JNRPEResponse
Default constructor.

L

listen(String, int) - Method in class it.jnrpe.JNRPE
Instructs the server to listen to the given IP/port.
listen(String, int, boolean) - Method in class it.jnrpe.JNRPE
Starts a new thread that listen for requests.
LogEvent - Enum in it.jnrpe.events
All the accepted Log Event types

P

PacketType - Enum in it.jnrpe.net
Enumeration of all the supported packet types.
PacketType - Enum in it.jnrpe
Enums all the known packet types
PacketVersion - Enum in it.jnrpe.net
Enumeration of all the supported packet versions.
PluginBase - Class in it.jnrpe.plugins
If your plugin needs to send events and you don't mind extending this class, you can save some coding using this as a base.
PluginBase() - Constructor for class it.jnrpe.plugins.PluginBase
 
PluginDefinition - Class in it.jnrpe.plugins
This object represent a plugin definition.
PluginDefinition(String, String, Class<? extends IPluginInterface>) - Constructor for class it.jnrpe.plugins.PluginDefinition
Initializes the plugin definition specifying the Class object that.
PluginDefinition(String, String, IPluginInterface) - Constructor for class it.jnrpe.plugins.PluginDefinition
Initializes the plugin definition specifying a plugin instance.
PluginOption - Class in it.jnrpe.plugins
This class describes a plugin option.
PluginOption() - Constructor for class it.jnrpe.plugins.PluginOption
Default constructor.
PluginProxy - Class in it.jnrpe.plugins
This class was intended to abstract the kind of plugin to execute.
PluginProxy(IPluginInterface, PluginDefinition) - Constructor for class it.jnrpe.plugins.PluginProxy
Instantiate a new plugin proxy.
PluginRepository - Class in it.jnrpe.plugins
This class represent the repository of all the installed plugins.
PluginRepository() - Constructor for class it.jnrpe.plugins.PluginRepository
 
printHelp() - Method in class it.jnrpe.plugins.PluginProxy
Prints the help related to the plugin (standard output).

R

receive(Object, IJNRPEEvent) - Method in interface it.jnrpe.events.IJNRPEEventListener
This method receives the event and reacts.
ReturnValue - Class in it.jnrpe
This class is just a container for the plugin result.
ReturnValue() - Constructor for class it.jnrpe.ReturnValue
Initializes an empty return value.
ReturnValue(String) - Constructor for class it.jnrpe.ReturnValue
Initializes the return value object with the given message and with the IJNRPEConstants#STATE_OK state.
ReturnValue(int, String) - Constructor for class it.jnrpe.ReturnValue
ReturnValue(Status, String) - Constructor for class it.jnrpe.ReturnValue
Initializes the return value object with the given state and the given message.

S

sendEvent(Set<IJNRPEEventListener>, Object, LogEvent, String) - Static method in class it.jnrpe.events.EventsUtil
This method sends log events to the registered listeners.
sendEvent(Set<IJNRPEEventListener>, Object, LogEvent, String, Throwable) - Static method in class it.jnrpe.events.EventsUtil
This method sends log events to the registered listeners.
sendEvent(Set<IJNRPEEventListener>, Object, String, EventParam...) - Static method in class it.jnrpe.events.EventsUtil
This method is used to send custom events to the registered listeners.
sendEvent(LogEvent, String) - Method in class it.jnrpe.plugins.PluginBase
Sends an event.
sendEvent(LogEvent, String, Exception) - Method in class it.jnrpe.plugins.PluginBase
Sends an event.
sendEvent(String, EventParam...) - Method in class it.jnrpe.plugins.PluginBase
Sends a custom event.
setArgName(String) - Method in class it.jnrpe.plugins.PluginOption
Sets the name of the argument of this option.
setArgs(String) - Method in class it.jnrpe.commands.CommandDefinition
Sets the raw arguments of this command.
setArgsCount(Integer) - Method in class it.jnrpe.plugins.PluginOption
Sets the number of arguments.
setArgsOptional(Boolean) - Method in class it.jnrpe.plugins.PluginOption
Sets if the arguments are mandatory.
setDescription(String) - Method in class it.jnrpe.plugins.PluginOption
Sets the description of this option.
setHasArgs(boolean) - Method in class it.jnrpe.plugins.PluginOption
Tells the option that it must accept an argument.
setLongOpt(String) - Method in class it.jnrpe.plugins.PluginOption
Sets the long name of this option.
setMessage(String) - Method in class it.jnrpe.net.JNRPEResponse
Sets the message to be included in the response.
setOption(String) - Method in class it.jnrpe.plugins.PluginOption
Sets the option string.
setRequired(boolean) - Method in class it.jnrpe.plugins.PluginOption
Set if the option is required.
setType(String) - Method in class it.jnrpe.plugins.PluginOption
Sets the type of this option.
setValueSeparator(String) - Method in class it.jnrpe.plugins.PluginOption
Sets the value separator.
shutdown() - Method in class it.jnrpe.JNRPE
Shuts down all the listener handled by this instance.
split(String, boolean) - Static method in class it.jnrpe.utils.StringUtils
This is a simple utility to split strings.
STATE_CRITICAL - Static variable in interface it.jnrpe.net.IJNRPEConstants
Deprecated.
Service status 'CRITICAL'.
STATE_OK - Static variable in interface it.jnrpe.net.IJNRPEConstants
Deprecated.
Service status 'OK'.
STATE_UNKNOWN - Static variable in interface it.jnrpe.net.IJNRPEConstants
Deprecated.
Service status 'UNKNOWN'.
STATE_WARNING - Static variable in interface it.jnrpe.net.IJNRPEConstants
Deprecated.
Service status 'WARNING'.
Status - Enum in it.jnrpe
Enumeration of all the supported status.
StreamManager - Class in it.jnrpe.utils
Utility class for handling streams.
StreamManager() - Constructor for class it.jnrpe.utils.StreamManager
Default constructor.
StringUtils - Class in it.jnrpe.utils
A simple string util class.

T

ThresholdUtil - Class in it.jnrpe.utils
Utility class for evaluating threshold This class conforms to the nagios plugin guidelines (http://nagiosplug.sourceforge.net/developer-guidelines.html #THRESHOLDFORMAT).

U

updateCRC() - Method in class it.jnrpe.net.JNRPEResponse
Updates the CRC value.

V

valueOf(String) - Static method in enum it.jnrpe.events.LogEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum it.jnrpe.net.PacketType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum it.jnrpe.net.PacketVersion
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum it.jnrpe.PacketType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum it.jnrpe.Status
Returns the enum constant of this type with the specified name.
values() - Static method in enum it.jnrpe.events.LogEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum it.jnrpe.net.PacketType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum it.jnrpe.net.PacketVersion
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum it.jnrpe.PacketType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum it.jnrpe.Status
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION - Static variable in interface it.jnrpe.net.IJNRPEConstants
Deprecated.
Contains the version of the software.

W

withMessage(String) - Method in class it.jnrpe.ReturnValue
Sets the message and returns 'this' so that the calls can be cascaded.
withReturnCode(int) - Method in class it.jnrpe.ReturnValue
Deprecated.
withStatus(Status) - Method in class it.jnrpe.ReturnValue
Sets the return code and returns 'this' so that the calls can be cascaded.
A B C E F G H I J L P R S T U V W 

Copyright © 2013. All Rights Reserved.