|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.jnrpe.JNRPEBuilder
public final class JNRPEBuilder
Builder for the JNRPE
object.
Method Summary | |
---|---|
JNRPEBuilder |
acceptHost(String hostName)
Adds a client host to the list of accepted hosts. |
JNRPEBuilder |
acceptParams(boolean accept)
Pass true if $ARGxx$ macros should be expanded. |
JNRPE |
build()
Builds the configured JNRPE instance. |
static JNRPEBuilder |
forRepositories(IPluginRepository pluginRepository,
CommandRepository commandRepository)
Entry point for the builder. |
JNRPEBuilder |
withCharset(Charset newCharset)
Sets the charset to be used. |
JNRPEBuilder |
withListener(IJNRPEEventListener listener)
Adds a listener to the list of event listener. |
JNRPEBuilder |
withMaxAcceptedConnections(int maxConnections)
Sets the maximum number of accepted connections. |
JNRPEBuilder |
withReadTimeout(int readTimeoutSecs)
Sets the read timeout in seconds. |
JNRPEBuilder |
withWriteTimeout(int writeTimeoutSecs)
Sets the write timeout in seconds. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JNRPEBuilder forRepositories(IPluginRepository pluginRepository, CommandRepository commandRepository)
pluginRepository
- The plugin repositorycommandRepository
- The command repository
public JNRPEBuilder acceptParams(boolean accept)
true
if $ARGxx$ macros should be expanded.
accept
- true
if $ARGxx$ macros should be expanded.
public JNRPEBuilder acceptHost(String hostName)
hostName
- the hostname or ip address
public JNRPEBuilder withListener(IJNRPEEventListener listener)
listener
- the listener
public JNRPEBuilder withCharset(Charset newCharset)
newCharset
- the charset to be used
public JNRPEBuilder withMaxAcceptedConnections(int maxConnections)
maxConnections
- the maximum number of accepted connections.
public JNRPEBuilder withReadTimeout(int readTimeoutSecs)
DEFAULT_READ_TIMEOUT
seconds.
readTimeoutSecs
- the new read timeout in seconds
public JNRPEBuilder withWriteTimeout(int writeTimeoutSecs)
DEFAULT_WRITE_TIMEOUT
seconds.
writeTimeoutSecs
- the new write timeout in seconds
public JNRPE build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |