| | |
| | | */ |
| | | public LoggerConfigManager() |
| | | { |
| | | |
| | | configHandler = DirectoryServer.getConfigHandler(); |
| | | |
| | | activeAccessLoggers = new ConcurrentHashMap<DN,AccessLogger>(); |
| | |
| | | public void initializeLoggers() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // First, get the logger configuration base entry. |
| | | ConfigEntry loggerBaseEntry; |
| | | try |
| | |
| | | */ |
| | | public void stopLoggers() |
| | | { |
| | | |
| | | StartupErrorLogger errorLogger = new StartupErrorLogger(); |
| | | errorLogger.initializeErrorLogger(null); |
| | | |
| | |
| | | public boolean configChangeIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // Make sure that the entry has an appropriate objectclass for an access, |
| | | // error, or debug logger. |
| | | boolean isAccessLogger = false; |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationChange(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | public boolean configAddIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // Make sure that no entry already exists with the specified DN. |
| | | DN configEntryDN = configEntry.getDN(); |
| | | if (activeAccessLoggers.containsKey(configEntryDN) || |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationAdd(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | public boolean configDeleteIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // A delete should always be acceptable, so just return true. |
| | | return true; |
| | | } |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationDelete(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |