|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.JNRPE
public final class JNRPE
This class is the real JNRPE worker. It must be used to start listening for NRPE requests
| Constructor Summary | |
|---|---|
JNRPE(IPluginRepository pluginRepo,
CommandRepository commandRepo)
Initializes the JNRPE worker. |
|
| Method Summary | |
|---|---|
void |
addAcceptedHost(String address)
Adds an address to the list of accepted hosts. |
void |
addEventListener(IJNRPEEventListener listener)
Adds a new event listener. |
void |
listen(String address,
int port)
Instructs the server to listen to the given IP/port. |
void |
listen(String address,
int port,
boolean useSSL)
Starts a new thread that listen for requests. |
void |
shutdown()
Shuts down all the listener handled by this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNRPE(IPluginRepository pluginRepo,
CommandRepository commandRepo)
pluginRepo - The repository containing all the installed pluginscommandRepo - The repository containing all the configured commands.| Method Detail |
|---|
public void listen(String address,
int port)
throws UnknownHostException
address - The address to bind toport - The port to bind to
UnknownHostException - -public void addEventListener(IJNRPEEventListener listener)
listener - The event listener to be added
public void listen(String address,
int port,
boolean useSSL)
throws UnknownHostException
address - The address to bind toport - The listening portuseSSL - true if an SSL socket must be created.
UnknownHostException - -public void addAcceptedHost(String address)
address - The address to acceptpublic void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||