|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.loggers.debug.TraceSettings
public class TraceSettings
This class encapsulates the trace settings in effect at a given traceing scope.
Field Summary | |
---|---|
static TraceSettings |
DISABLED
A TraceSettings object representing a fully disabled trace state. |
Constructor Summary | |
---|---|
TraceSettings(DebugTargetCfg config)
Construct a new trace settings from the provided configuration. |
|
TraceSettings(LogLevel level)
Construct new trace settings at the specified log level. |
|
TraceSettings(LogLevel level,
java.util.Set<LogCategory> includeCategories)
Construct new trace settings at the specified log level and including the categories. |
|
TraceSettings(LogLevel level,
java.util.Set<LogCategory> includeCategories,
boolean noArgs,
boolean noRetVal)
Construct new trace settings at the specified log level and including the categories. |
|
TraceSettings(LogLevel level,
java.util.Set<LogCategory> includeCategories,
boolean noArgs,
boolean noRetVal,
int stackDepth,
boolean includeCause)
Construct new trace settings at the specified log level and including the categories. |
Method Summary | |
---|---|
ConfigChangeResult |
applyConfigurationChange(DebugTargetCfg config)
Applies the configuration changes to this change listener. |
boolean |
isConfigurationChangeAcceptable(DebugTargetCfg config,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener. |
protected static TraceSettings |
parseTraceSettings(java.lang.String value)
Parse trace settings from the string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TraceSettings DISABLED
Constructor Detail |
---|
public TraceSettings(LogLevel level)
level
- the log level for this setting.public TraceSettings(LogLevel level, java.util.Set<LogCategory> includeCategories)
level
- the log level for this setting.includeCategories
- the categories to include in this setting.public TraceSettings(LogLevel level, java.util.Set<LogCategory> includeCategories, boolean noArgs, boolean noRetVal)
level
- the log level for this setting.includeCategories
- the categories to include in this setting.noArgs
- whether to include arguments in the log messages.noRetVal
- whether to include return values in the log messages.public TraceSettings(LogLevel level, java.util.Set<LogCategory> includeCategories, boolean noArgs, boolean noRetVal, int stackDepth, boolean includeCause)
level
- the log level for this setting.includeCategories
- the categories to include in this setting.noArgs
- whether to include arguments in the log messages.noRetVal
- whether to include return values in the log messages.stackDepth
- the stack depth to display in log messages.includeCause
- whether to include the cause of exceptions.public TraceSettings(DebugTargetCfg config)
config
- The debug target configuration that contains the information
to use to initialize this trace setting.Method Detail |
---|
public boolean isConfigurationChangeAcceptable(DebugTargetCfg config, java.util.List<Message> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<DebugTargetCfg>
config
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.
true
if the proposed change is
acceptable, or false
if it is not.public ConfigChangeResult applyConfigurationChange(DebugTargetCfg config)
applyConfigurationChange
in interface ConfigurationChangeListener<DebugTargetCfg>
config
- The new configuration containing the changes.
protected static TraceSettings parseTraceSettings(java.lang.String value)
value
- the trace settings string to be parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |