|
||||||||||
| 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(PluginRepository pluginRepository,
CommandRepository commandRepository)
Initializes the JNRPE worker. |
|
| Method Summary | |
|---|---|
void |
addAcceptedHost(String sAddress)
Adds an address to the list of accepted hosts. |
void |
addEventListener(IJNRPEEventListener listener)
Adds a new event listener. |
void |
listen(String sAddress,
int iPort)
Instructs the server to listen to the given IP/port. |
void |
listen(String sAddress,
int iPort,
boolean bSSL)
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(PluginRepository pluginRepository,
CommandRepository commandRepository)
pluginRepository - The repository containing all the installed pluginscommandRepository - The repository containing all the configured commands.| Method Detail |
|---|
public void listen(String sAddress,
int iPort)
throws UnknownHostException
sAddress - The address to bind toiPort - The port to bind to
UnknownHostExceptionpublic void addEventListener(IJNRPEEventListener listener)
listener - The event listener to be added
public void listen(String sAddress,
int iPort,
boolean bSSL)
throws UnknownHostException
sAddress - The address to bind toiPort - The listening portbSSL - true if an SSL socket must be created.
UnknownHostExceptionpublic void addAcceptedHost(String sAddress)
sAddress - The address to acceptpublic void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||