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.StringgetDebugScope()Gets the "debug-scope" property.intgetThrowableStackFrames()Gets the "throwable-stack-frames" property.booleanisDebugExceptionsOnly()Gets the "debug-exceptions-only" property.BooleanisEnabled()Gets the "enabled" property.booleanisIncludeThrowableCause()Gets the "include-throwable-cause" property.booleanisOmitMethodEntryArguments()Gets the "omit-method-entry-arguments" property.booleanisOmitMethodReturnValue()Gets the "omit-method-return-value" property.voidsetDebugExceptionsOnly(Boolean value)Sets the "debug-exceptions-only" property.voidsetDebugScope(String value)Sets the "debug-scope" property.voidsetEnabled(boolean value)Sets the "enabled" property.voidsetIncludeThrowableCause(Boolean value)Sets the "include-throwable-cause" property.voidsetOmitMethodEntryArguments(Boolean value)Sets the "omit-method-entry-arguments" property.voidsetOmitMethodReturnValue(Boolean value)Sets the "omit-method-return-value" property.voidsetThrowableStackFrames(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:
definitionin interfaceConfigurationClient- Returns:
- Returns the configuration definition associated with this Debug Target.
-
isDebugExceptionsOnly
boolean isDebugExceptionsOnly()
Gets the "debug-exceptions-only" property.Indicates whether only logs with exception should be logged.
- Returns:
- Returns the value of the "debug-exceptions-only" property.
-
setDebugExceptionsOnly
void setDebugExceptionsOnly(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
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
void setDebugScope(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
Boolean isEnabled()
Gets the "enabled" property.Indicates whether the Debug Target is enabled.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
void setEnabled(boolean value) throws PropertyExceptionSets 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
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.
- Returns:
- Returns the value of the "include-throwable-cause" property.
-
setIncludeThrowableCause
void setIncludeThrowableCause(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
boolean isOmitMethodEntryArguments()
Gets the "omit-method-entry-arguments" property.Specifies the property to indicate whether to include method arguments in debug messages.
- Returns:
- Returns the value of the "omit-method-entry-arguments" property.
-
setOmitMethodEntryArguments
void setOmitMethodEntryArguments(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
boolean isOmitMethodReturnValue()
Gets the "omit-method-return-value" property.Specifies the property to indicate whether to include the return value in debug messages.
- Returns:
- Returns the value of the "omit-method-return-value" property.
-
setOmitMethodReturnValue
void setOmitMethodReturnValue(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
int 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.
- Returns:
- Returns the value of the "throwable-stack-frames" property.
-
setThrowableStackFrames
void setThrowableStackFrames(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.
-
-