| File was renamed from opendj3-server-dev/src/server/org/opends/server/api/DebugLogPublisher.java |
| | |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.api; |
| | | package org.opends.server.loggers; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.server.admin.std.server.DebugLogPublisherCfg; |
| | | import org.opends.server.loggers.TraceSettings; |
| | | |
| | | /** |
| | | * This class defines the set of methods and structures that must be |
| | |
| | | * or {@code null} if no method-level tracing is configured |
| | | * for the scope. |
| | | */ |
| | | public final Map<String,TraceSettings> getMethodSettings( |
| | | final Map<String,TraceSettings> getMethodSettings( |
| | | String className) |
| | | { |
| | | if(methodTraceSettings == null) |
| | |
| | | * |
| | | * @return The current trace settings for the class. |
| | | */ |
| | | public final TraceSettings getClassSettings(String className) |
| | | final TraceSettings getClassSettings(String className) |
| | | { |
| | | TraceSettings settings = TraceSettings.DISABLED; |
| | | |
| | |
| | | * {@code null} if no trace setting is defined for that |
| | | * scope. |
| | | */ |
| | | public final TraceSettings getTraceSettings(String scope) |
| | | final TraceSettings getTraceSettings(String scope) |
| | | { |
| | | if (scope == null) { |
| | | if(classTraceSettings != null) |
| | |
| | | * {@code null} if no trace setting is defined for that |
| | | * scope. |
| | | */ |
| | | public final TraceSettings removeTraceSettings(String scope) |
| | | final TraceSettings removeTraceSettings(String scope) |
| | | { |
| | | TraceSettings removedSettings = null; |
| | | if (scope == null) { |