it.jnrpe.server
Class JNRPEConfiguration

java.lang.Object
  extended by it.jnrpe.server.JNRPEConfiguration

public abstract class JNRPEConfiguration
extends Object

Base class for all the JNRPE configuration classes (INI, XML, etc.).

Author:
Massimiliano Ziccardi

Constructor Summary
JNRPEConfiguration()
           
 
Method Summary
 CommandRepository createCommandRepository()
          Returns a command repository containing all the commands configured inside the configuration file.
 it.jnrpe.server.CommandsSection getCommandSection()
          Returns the command section of the configuration file.
 ServerSection getServerSection()
          Returns the server section of the configuration file.
abstract  void load(File f)
          All the concrete configuration classes must load the configuration file inside this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNRPEConfiguration

public JNRPEConfiguration()
Method Detail

load

public abstract void load(File f)
                   throws ConfigurationException
All the concrete configuration classes must load the configuration file inside this method.

Parameters:
f - The configuration file
Throws:
ConfigurationException - on any configuration error.

getCommandSection

public final it.jnrpe.server.CommandsSection getCommandSection()
Returns the command section of the configuration file.

Returns:
The command section

getServerSection

public final ServerSection getServerSection()
Returns the server section of the configuration file.

Returns:
The server section

createCommandRepository

public final CommandRepository createCommandRepository()
Returns a command repository containing all the commands configured inside the configuration file.

Returns:
The command repository


Copyright © 2014. All Rights Reserved.