Interface ErrorLogPublisherCfgClient
-
- All Superinterfaces:
ConfigurationClient
,LogPublisherCfgClient
- All Known Subinterfaces:
ConsoleErrorLogPublisherCfgClient
,FileBasedErrorLogPublisherCfgClient
public interface ErrorLogPublisherCfgClient extends LogPublisherCfgClient
A client-side interface for reading and modifying Error Log Publisher settings.Error Log Publishers are responsible for distributing error log messages from the error logger to a destination.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends ErrorLogPublisherCfgClient,? extends ErrorLogPublisherCfg>
definition()
Get the configuration definition associated with this Error Log Publisher.SortedSet<ValueOrExpression<ErrorLogPublisherCfgDefn.DefaultSeverity>>
getDefaultSeverity()
Gets the "default-severity" property.ValueOrExpression<String>
getJavaClass()
Gets the "java-class" property.SortedSet<ValueOrExpression<String>>
getOverrideSeverity()
Gets the "override-severity" property.void
setDefaultSeverity(Collection<ValueOrExpression<ErrorLogPublisherCfgDefn.DefaultSeverity>> values)
Sets the "default-severity" property.void
setJavaClass(ValueOrExpression<String> value)
Sets the "java-class" property.void
setOverrideSeverity(Collection<ValueOrExpression<String>> values)
Sets the "override-severity" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Methods inherited from interface org.forgerock.opendj.server.config.client.LogPublisherCfgClient
isEnabled, setEnabled
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends ErrorLogPublisherCfgClient,? extends ErrorLogPublisherCfg> definition()
Get the configuration definition associated with this Error Log Publisher.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceLogPublisherCfgClient
- Returns:
- Returns the configuration definition associated with this Error Log Publisher.
-
getDefaultSeverity
SortedSet<ValueOrExpression<ErrorLogPublisherCfgDefn.DefaultSeverity>> getDefaultSeverity()
Gets the "default-severity" property.Specifies the default severity levels for the logger.
Default values:
error
,warning
- Returns:
- Returns the values of the "default-severity" property.
-
setDefaultSeverity
void setDefaultSeverity(Collection<ValueOrExpression<ErrorLogPublisherCfgDefn.DefaultSeverity>> values) throws PropertyException
Sets the "default-severity" property.Specifies the default severity levels for the logger.
- Parameters:
values
- The values of the "default-severity" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getJavaClass
@MandatoryProperty ValueOrExpression<String> getJavaClass()
Gets the "java-class" property.The fully-qualified name of the Java class that provides the Error Log Publisher implementation.
Default value:
org.opends.server.loggers.ErrorLogPublisher
- Specified by:
getJavaClass
in interfaceLogPublisherCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
@MandatoryProperty void setJavaClass(ValueOrExpression<String> value) throws PropertyException
Sets the "java-class" property.The fully-qualified name of the Java class that provides the Error Log Publisher implementation.
- Specified by:
setJavaClass
in interfaceLogPublisherCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getOverrideSeverity
SortedSet<ValueOrExpression<String>> getOverrideSeverity()
Gets the "override-severity" property.Specifies the override severity levels for the logger based on the category of the messages.
Each override severity level should include the category and the severity levels to log for that category, for example, core=error,info,warning. Valid categories are: core, extensions, protocol, config, log, util, schema, plugin, jeb, backend, tools, task, access-control, admin, sync, version, setup, admin-tool, dsconfig, user-defined. Valid severities are: all, error, info, warning, notice, debug.
- Returns:
- Returns the values of the "override-severity" property.
-
setOverrideSeverity
void setOverrideSeverity(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "override-severity" property.Specifies the override severity levels for the logger based on the category of the messages.
Each override severity level should include the category and the severity levels to log for that category, for example, core=error,info,warning. Valid categories are: core, extensions, protocol, config, log, util, schema, plugin, jeb, backend, tools, task, access-control, admin, sync, version, setup, admin-tool, dsconfig, user-defined. Valid severities are: all, error, info, warning, notice, debug.
- Parameters:
values
- The values of the "override-severity" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
-