public interface DebugLogPublisherCfgClient extends LogPublisherCfgClient
Debug Log Publishers are responsible for distributing debug log messages from the debug logger to a destination.
Modifier and Type | Method and Description |
---|---|
<C extends DebugTargetCfgClient> |
createDebugTarget(ManagedObjectDefinition<C,? extends DebugTargetCfg> d,
String name,
Collection<PropertyException> exceptions)
Creates a new Debug Target.
|
ManagedObjectDefinition<? extends DebugLogPublisherCfgClient,? extends DebugLogPublisherCfg> |
definition()
Get the configuration definition associated with this Debug Log Publisher.
|
DebugTargetCfgClient |
getDebugTarget(String name)
Gets the named Debug Target.
|
int |
getDefaultThrowableStackFrames()
Gets the "default-throwable-stack-frames" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
boolean |
isDefaultDebugExceptionsOnly()
Gets the "default-debug-exceptions-only" property.
|
boolean |
isDefaultIncludeThrowableCause()
Gets the "default-include-throwable-cause" property.
|
boolean |
isDefaultOmitMethodEntryArguments()
Gets the "default-omit-method-entry-arguments" property.
|
boolean |
isDefaultOmitMethodReturnValue()
Gets the "default-omit-method-return-value" property.
|
String[] |
listDebugTargets()
Lists the Debug Targets.
|
void |
removeDebugTarget(String name)
Removes the named Debug Target.
|
void |
setDefaultDebugExceptionsOnly(Boolean value)
Sets the "default-debug-exceptions-only" property.
|
void |
setDefaultIncludeThrowableCause(Boolean value)
Sets the "default-include-throwable-cause" property.
|
void |
setDefaultOmitMethodEntryArguments(Boolean value)
Sets the "default-omit-method-entry-arguments" property.
|
void |
setDefaultOmitMethodReturnValue(Boolean value)
Sets the "default-omit-method-return-value" property.
|
void |
setDefaultThrowableStackFrames(Integer value)
Sets the "default-throwable-stack-frames" property.
|
void |
setJavaClass(String value)
Sets the "java-class" property.
|
isEnabled, setEnabled
commit, properties
ManagedObjectDefinition<? extends DebugLogPublisherCfgClient,? extends DebugLogPublisherCfg> definition()
definition
in interface ConfigurationClient
definition
in interface LogPublisherCfgClient
boolean isDefaultDebugExceptionsOnly()
Indicates whether only logs with exception should be logged.
void setDefaultDebugExceptionsOnly(Boolean value) throws PropertyException
Indicates whether only logs with exception should be logged.
value
- The value of the "default-debug-exceptions-only" property.PropertyException
- If the new value is invalid.boolean isDefaultIncludeThrowableCause()
Indicates whether to include the cause of exceptions in exception thrown and caught messages logged by default.
void setDefaultIncludeThrowableCause(Boolean value) throws PropertyException
Indicates whether to include the cause of exceptions in exception thrown and caught messages logged by default.
value
- The value of the "default-include-throwable-cause" property.PropertyException
- If the new value is invalid.boolean isDefaultOmitMethodEntryArguments()
Indicates whether to include method arguments in debug messages logged by default.
void setDefaultOmitMethodEntryArguments(Boolean value) throws PropertyException
Indicates whether to include method arguments in debug messages logged by default.
value
- The value of the "default-omit-method-entry-arguments" property.PropertyException
- If the new value is invalid.boolean isDefaultOmitMethodReturnValue()
Indicates whether to include the return value in debug messages logged by default.
void setDefaultOmitMethodReturnValue(Boolean value) throws PropertyException
Indicates whether to include the return value in debug messages logged by default.
value
- The value of the "default-omit-method-return-value" property.PropertyException
- If the new value is invalid.int getDefaultThrowableStackFrames()
Indicates the number of stack frames to include in the stack trace for method entry and exception thrown messages.
void setDefaultThrowableStackFrames(Integer value) throws PropertyException
Indicates the number of stack frames to include in the stack trace for method entry and exception thrown messages.
value
- The value of the "default-throwable-stack-frames" property.PropertyException
- If the new value is invalid.String getJavaClass()
The fully-qualified name of the Java class that provides the Debug Log Publisher implementation.
getJavaClass
in interface LogPublisherCfgClient
void setJavaClass(String value) throws PropertyException
The fully-qualified name of the Java class that provides the Debug Log Publisher implementation.
setJavaClass
in interface LogPublisherCfgClient
value
- The value of the "java-class" property.PropertyException
- If the new value is invalid.String[] listDebugTargets() throws ConcurrentModificationException, AuthorizationException, CommunicationException
ConcurrentModificationException
- If this Debug Log Publisher has been removed from the
server by another client.AuthorizationException
- If the server refuses to list the Debug Targets because
the client does not have the correct privileges.CommunicationException
- If the client cannot contact the server due to an
underlying communication problem.DebugTargetCfgClient getDebugTarget(String name) throws DefinitionDecodingException, ManagedObjectDecodingException, ManagedObjectNotFoundException, ConcurrentModificationException, AuthorizationException, CommunicationException
name
- The name of the Debug Target to retrieve.DefinitionDecodingException
- If the named Debug Target was found but its type could
not be determined.ManagedObjectDecodingException
- If the named Debug Target was found but one or more of
its properties could not be decoded.ManagedObjectNotFoundException
- If the named Debug Target was not found on the server.ConcurrentModificationException
- If this Debug Log Publisher has been removed from the
server by another client.AuthorizationException
- If the server refuses to retrieve the named Debug
Target because the client does not have the correct
privileges.CommunicationException
- If the client cannot contact the server due to an
underlying communication problem.<C extends DebugTargetCfgClient> C createDebugTarget(ManagedObjectDefinition<C,? extends DebugTargetCfg> d, String name, Collection<PropertyException> exceptions) throws IllegalManagedObjectNameException
ConfigurationClient.commit()
method.C
- The type of the Debug Target being created.d
- The definition of the Debug Target to be created.name
- The name of the new Debug Target.exceptions
- An optional collection in which to place any PropertyException
s that occurred whilst attempting to
determine the default values of the Debug Target. This
argument can be null.
IllegalManagedObjectNameException
- If the name of the new Debug Target is invalid.void removeDebugTarget(String name) throws ManagedObjectNotFoundException, OperationRejectedException, ConcurrentModificationException, AuthorizationException, CommunicationException
name
- The name of the Debug Target to remove.ManagedObjectNotFoundException
- If the Debug Target does not exist.OperationRejectedException
- If the server refuses to remove the Debug Target due to
some server-side constraint which cannot be satisfied
(for example, if it is referenced by another managed
object).ConcurrentModificationException
- If this Debug Log Publisher has been removed from the
server by another client.AuthorizationException
- If the server refuses to remove the Debug Target
because the client does not have the correct privileges.CommunicationException
- If the client cannot contact the server due to an
underlying communication problem.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.