it.jnrpe
Class JNRPE

java.lang.Object
  extended by it.jnrpe.JNRPE

public class JNRPE
extends Object

This class is the real JNRPE worker. It must be used to start listening for NRPE requests

Author:
Massimiliano Ziccardi

Constructor Summary
JNRPE(PluginRepository pluginRepository, CommandRepository commandRepository)
          Initializes the JNRPE worker
 
Method Summary
 void addAcceptedHost(String sAddress)
          Adds an address to the list of accepted hosts
 IJNRPEListener listen(String sAddress, int iPort)
           
 IJNRPEListener listen(String sAddress, int iPort, boolean bSSL)
          Starts a new thread that listen for requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNRPE

public JNRPE(PluginRepository pluginRepository,
             CommandRepository commandRepository)
Initializes the JNRPE worker

Parameters:
pluginRepository - The repository containing all the installed plugins
commandRepository - The repository containing all the configured commands.
Method Detail

listen

public IJNRPEListener listen(String sAddress,
                             int iPort)

listen

public IJNRPEListener listen(String sAddress,
                             int iPort,
                             boolean bSSL)
Starts a new thread that listen for requests. The method is not blocking

Parameters:
sAddress - The address to bind to
iPort - The listening port
Returns:
Returns the newly created thread.

addAcceptedHost

public void addAcceptedHost(String sAddress)
Adds an address to the list of accepted hosts

Parameters:
sAddress - The address to accept


Copyright © 2011. All Rights Reserved.