org.opends.server.admin.std.client
Interface AlertHandlerCfgClient

All Superinterfaces:
ConfigurationClient
All Known Subinterfaces:
JMXAlertHandlerCfgClient, SMTPAlertHandlerCfgClient

public interface AlertHandlerCfgClient
extends ConfigurationClient

A client-side interface for reading and modifying Alert Handler settings.

Alert Handlers are used to notify administrators of significant problems or notable events that occur in the Directory Server.


Method Summary
 ManagedObjectDefinition<? extends AlertHandlerCfgClient,? extends AlertHandlerCfg> definition()
          Get the configuration definition associated with this Alert Handler.
 java.util.SortedSet<java.lang.String> getDisabledAlertType()
          Gets the "disabled-alert-type" property.
 java.util.SortedSet<java.lang.String> getEnabledAlertType()
          Gets the "enabled-alert-type" property.
 java.lang.String getJavaClass()
          Gets the "java-class" property.
 java.lang.Boolean isEnabled()
          Gets the "enabled" property.
 void setDisabledAlertType(java.util.Collection<java.lang.String> values)
          Sets the "disabled-alert-type" property.
 void setEnabled(boolean value)
          Sets the "enabled" property.
 void setEnabledAlertType(java.util.Collection<java.lang.String> values)
          Sets the "enabled-alert-type" property.
 void setJavaClass(java.lang.String value)
          Sets the "java-class" property.
 
Methods inherited from interface org.opends.server.admin.ConfigurationClient
commit, properties
 

Method Detail

definition

ManagedObjectDefinition<? extends AlertHandlerCfgClient,? extends AlertHandlerCfg> definition()
Get the configuration definition associated with this Alert Handler.

Specified by:
definition in interface ConfigurationClient
Returns:
Returns the configuration definition associated with this Alert Handler.

getDisabledAlertType

java.util.SortedSet<java.lang.String> getDisabledAlertType()
Gets the "disabled-alert-type" property.

Specifies the names of the alert types that are disabled for this alert handler.

If there are any values for this attribute, then no alerts with any of the specified types are allowed. If there are no values for this attribute, then only alerts with a type included in the set of enabled alert types are allowed, or if there are no values for the enabled alert types option, then all alert types are allowed.

Returns:
Returns the values of the "disabled-alert-type" property.

setDisabledAlertType

void setDisabledAlertType(java.util.Collection<java.lang.String> values)
                          throws IllegalPropertyValueException
Sets the "disabled-alert-type" property.

Specifies the names of the alert types that are disabled for this alert handler.

If there are any values for this attribute, then no alerts with any of the specified types are allowed. If there are no values for this attribute, then only alerts with a type included in the set of enabled alert types are allowed, or if there are no values for the enabled alert types option, then all alert types are allowed.

Parameters:
values - The values of the "disabled-alert-type" property.
Throws:
IllegalPropertyValueException - If one or more of the new values are invalid.

isEnabled

java.lang.Boolean isEnabled()
Gets the "enabled" property.

Indicates whether the Alert Handler is enabled.

Returns:
Returns the value of the "enabled" property.

setEnabled

void setEnabled(boolean value)
                throws IllegalPropertyValueException
Sets the "enabled" property.

Indicates whether the Alert Handler is enabled.

Parameters:
value - The value of the "enabled" property.
Throws:
IllegalPropertyValueException - If the new value is invalid.

getEnabledAlertType

java.util.SortedSet<java.lang.String> getEnabledAlertType()
Gets the "enabled-alert-type" property.

Specifies the names of the alert types that are enabled for this alert handler.

If there are any values for this attribute, then only alerts with one of the specified types are allowed (unless they are also included in the disabled alert types). If there are no values for this attribute, then any alert with a type not included in the list of disabled alert types is allowed.

Returns:
Returns the values of the "enabled-alert-type" property.

setEnabledAlertType

void setEnabledAlertType(java.util.Collection<java.lang.String> values)
                         throws IllegalPropertyValueException
Sets the "enabled-alert-type" property.

Specifies the names of the alert types that are enabled for this alert handler.

If there are any values for this attribute, then only alerts with one of the specified types are allowed (unless they are also included in the disabled alert types). If there are no values for this attribute, then any alert with a type not included in the list of disabled alert types is allowed.

Parameters:
values - The values of the "enabled-alert-type" property.
Throws:
IllegalPropertyValueException - If one or more of the new values are invalid.

getJavaClass

java.lang.String getJavaClass()
Gets the "java-class" property.

Specifies the fully-qualified name of the Java class that provides the Alert Handler implementation.

Returns:
Returns the value of the "java-class" property.

setJavaClass

void setJavaClass(java.lang.String value)
                  throws IllegalPropertyValueException
Sets the "java-class" property.

Specifies the fully-qualified name of the Java class that provides the Alert Handler implementation.

Parameters:
value - The value of the "java-class" property.
Throws:
IllegalPropertyValueException - If the new value is invalid.