|
||||||||||
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)
Deprecated. This constructor will be removed as of version 2.0.5. Use JNRPEBuilder instead |
|
JNRPE(IPluginRepository pluginRepo,
CommandRepository commandRepo,
Charset newCharset,
boolean acceptParameters)
Deprecated. This constructor will be removed as of version 2.0.5. Use JNRPEBuilder instead |
Method Summary | |
---|---|
void |
addAcceptedHost(String address)
Deprecated. The JNRPE object will become immutable as of version 2.0.5. Use JNRPEBuilder instead |
void |
addEventListener(IJNRPEEventListener listener)
Deprecated. The JNRPE object will become immutable as of version 2.0.5. Use JNRPEBuilder instead |
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 the server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public JNRPE(IPluginRepository pluginRepo, CommandRepository commandRepo)
JNRPEBuilder
instead
pluginRepo
- The plugin repository objectcommandRepo
- The command repository object@Deprecated public JNRPE(IPluginRepository pluginRepo, CommandRepository commandRepo, Charset newCharset, boolean acceptParameters)
JNRPEBuilder
instead
pluginRepo
- The repository containing all the installed pluginscommandRepo
- The repository containing all the configured commands.newCharset
- The charset that will be used by JNRPEacceptParameters
- Sets if $ARGxx$ macros should be expandedMethod Detail |
---|
public void listen(String address, int port) throws UnknownHostException
address
- The address to bind toport
- The port to bind to
UnknownHostException
- -@Deprecated public void addEventListener(IJNRPEEventListener listener)
JNRPEBuilder
instead
listener
- The event listener to be addedpublic 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
- -@Deprecated public void addAcceptedHost(String address)
JNRPEBuilder
instead
address
- The address to acceptpublic void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |