This extension point is used to add new trigger constraints to the JMX Console. A trigger constraint must have an id, name, description and a class that extends <code>org.openjdk.jmc.rjmx.triggers.TriggerConstraint</code>. It may also define settings of various types(string, file, boolean, integer, date or time) that can be configured in the JMX Console user interface. the identifier for the constraint the name for the constraint the icon for the constraint the description for the constraint class that extends <code>org.openjdk.jmc.rjmx.triggers.TriggerConstraint</code> and that implements the method <code>validate(NotificationEvent e)</code> which accepts or rejects a notification event. Date setting for a trigger constraint. the identifier for the setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. Time setting for a trigger action. a unique identifier for this setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. String setting for a trigger constraint. a unique identifier for this setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. File setting for a trigger constraint. a unique identifier for this setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. Boolean setting for a trigger constraint. a unique identifier for this setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. Integer setting for a trigger constraint. a unique identifier for this setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. the minimum allowed integer value for this setting the maximum allowed integer value for this setting Float setting for a trigger action. a unique identifier for this setting the name of the setting the description of the setting the default value set to true if the default value should be fetched from the preference store for the RJMXPlugin using the id as a key. the minimum allowed float value for this setting the maximum allowed float value for this setting 5.0.0 <pre> <extension point="org.openjdk.jmc.rjmx.triggerConstraints"> <triggerConstraint class="com.example.triggers.constraints.DisablingConstraint" description="This constraint will disable the rule, if the 'Disable rule' value is true. The event data of a particular event will not matter." icon="icons/disablingconstraint.gif" id="com.example.triggers.HelloWorld" name="Disabling constraint"> <boolean id="com.example.triggers.constraint.disable.rule" name="Disable rule"> </boolean> </triggerConstraint> </extension> </pre> <pre> package com.example.triggers.constraints; import org.openjdk.jmc.rjmx.triggers.TriggerConstraint; import org.openjdk.jmc.rjmx.triggers.internal.NotificationEvent; public class DisablingConstraint extends TriggerConstraint { public boolean isValid(NotificationEvent e) { return !getSetting("com.example.triggers.constraint.disable.rule").getBoolean(); } } </pre> Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.