Interface DebugTargetCfgClient
-
- All Superinterfaces:
ConfigurationClient
public interface DebugTargetCfgClient extends ConfigurationClient
A client-side interface for reading and modifying Debug Target settings.Debug Targets define the types of messages logged by the debug logPublisher.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends DebugTargetCfgClient,? extends DebugTargetCfg>
definition()
Get the configuration definition associated with this Debug Target.ValueOrExpression<String>
getDebugScope()
Gets the "debug-scope" property.ValueOrExpression<Integer>
getThrowableStackFrames()
Gets the "throwable-stack-frames" property.ValueOrExpression<Boolean>
isDebugExceptionsOnly()
Gets the "debug-exceptions-only" property.ValueOrExpression<Boolean>
isEnabled()
Gets the "enabled" property.ValueOrExpression<Boolean>
isIncludeThrowableCause()
Gets the "include-throwable-cause" property.ValueOrExpression<Boolean>
isOmitMethodEntryArguments()
Gets the "omit-method-entry-arguments" property.ValueOrExpression<Boolean>
isOmitMethodReturnValue()
Gets the "omit-method-return-value" property.void
setDebugExceptionsOnly(ValueOrExpression<Boolean> value)
Sets the "debug-exceptions-only" property.void
setDebugScope(ValueOrExpression<String> value)
Sets the "debug-scope" property.void
setEnabled(ValueOrExpression<Boolean> value)
Sets the "enabled" property.void
setIncludeThrowableCause(ValueOrExpression<Boolean> value)
Sets the "include-throwable-cause" property.void
setOmitMethodEntryArguments(ValueOrExpression<Boolean> value)
Sets the "omit-method-entry-arguments" property.void
setOmitMethodReturnValue(ValueOrExpression<Boolean> value)
Sets the "omit-method-return-value" property.void
setThrowableStackFrames(ValueOrExpression<Integer> value)
Sets the "throwable-stack-frames" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends DebugTargetCfgClient,? extends DebugTargetCfg> definition()
Get the configuration definition associated with this Debug Target.- Specified by:
definition
in interfaceConfigurationClient
- Returns:
- Returns the configuration definition associated with this Debug Target.
-
isDebugExceptionsOnly
ValueOrExpression<Boolean> isDebugExceptionsOnly()
Gets the "debug-exceptions-only" property.Indicates whether only logs with exception should be logged.
Default value:
false
- Returns:
- Returns the value of the "debug-exceptions-only" property.
-
setDebugExceptionsOnly
void setDebugExceptionsOnly(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "debug-exceptions-only" property.Indicates whether only logs with exception should be logged.
- Parameters:
value
- The value of the "debug-exceptions-only" property.- Throws:
PropertyException
- If the new value is invalid.
-
getDebugScope
@MandatoryProperty ValueOrExpression<String> getDebugScope()
Gets the "debug-scope" property.Specifies the fully-qualified OpenDJ Java package, class, or method affected by the settings in this target definition. Use the number character (#) to separate the class name and the method name (that is, org.opends.server.core.DirectoryServer#startUp).
- Returns:
- Returns the value of the "debug-scope" property.
-
setDebugScope
@MandatoryProperty void setDebugScope(ValueOrExpression<String> value) throws PropertyException, PropertyException
Sets the "debug-scope" property.Specifies the fully-qualified OpenDJ Java package, class, or method affected by the settings in this target definition. Use the number character (#) to separate the class name and the method name (that is, org.opends.server.core.DirectoryServer#startUp).
This property is read-only and can only be modified during creation of a Debug Target.
- Parameters:
value
- The value of the "debug-scope" property.- Throws:
PropertyException
- If the new value is invalid.PropertyException
- If this Debug Target is not being initialized.
-
isEnabled
@MandatoryProperty ValueOrExpression<Boolean> isEnabled()
Gets the "enabled" property.Indicates whether the Debug Target is enabled.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
@MandatoryProperty void setEnabled(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "enabled" property.Indicates whether the Debug Target is enabled.
- Parameters:
value
- The value of the "enabled" property.- Throws:
PropertyException
- If the new value is invalid.
-
isIncludeThrowableCause
ValueOrExpression<Boolean> isIncludeThrowableCause()
Gets the "include-throwable-cause" property.Specifies the property to indicate whether to include the cause of exceptions in exception thrown and caught messages.
Default value:
false
- Returns:
- Returns the value of the "include-throwable-cause" property.
-
setIncludeThrowableCause
void setIncludeThrowableCause(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "include-throwable-cause" property.Specifies the property to indicate whether to include the cause of exceptions in exception thrown and caught messages.
- Parameters:
value
- The value of the "include-throwable-cause" property.- Throws:
PropertyException
- If the new value is invalid.
-
isOmitMethodEntryArguments
ValueOrExpression<Boolean> isOmitMethodEntryArguments()
Gets the "omit-method-entry-arguments" property.Specifies the property to indicate whether to include method arguments in debug messages.
Default value:
false
- Returns:
- Returns the value of the "omit-method-entry-arguments" property.
-
setOmitMethodEntryArguments
void setOmitMethodEntryArguments(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "omit-method-entry-arguments" property.Specifies the property to indicate whether to include method arguments in debug messages.
- Parameters:
value
- The value of the "omit-method-entry-arguments" property.- Throws:
PropertyException
- If the new value is invalid.
-
isOmitMethodReturnValue
ValueOrExpression<Boolean> isOmitMethodReturnValue()
Gets the "omit-method-return-value" property.Specifies the property to indicate whether to include the return value in debug messages.
Default value:
false
- Returns:
- Returns the value of the "omit-method-return-value" property.
-
setOmitMethodReturnValue
void setOmitMethodReturnValue(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "omit-method-return-value" property.Specifies the property to indicate whether to include the return value in debug messages.
- Parameters:
value
- The value of the "omit-method-return-value" property.- Throws:
PropertyException
- If the new value is invalid.
-
getThrowableStackFrames
ValueOrExpression<Integer> getThrowableStackFrames()
Gets the "throwable-stack-frames" property.Specifies the property to indicate the number of stack frames to include in the stack trace for method entry and exception thrown messages.
Default value:
0
- Returns:
- Returns the value of the "throwable-stack-frames" property.
-
setThrowableStackFrames
void setThrowableStackFrames(ValueOrExpression<Integer> value) throws PropertyException
Sets the "throwable-stack-frames" property.Specifies the property to indicate the number of stack frames to include in the stack trace for method entry and exception thrown messages.
- Parameters:
value
- The value of the "throwable-stack-frames" property.- Throws:
PropertyException
- If the new value is invalid.
-
-