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>com.jrockit.mc.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>com.jrockit.mc.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 JRockit Mission Control 3.1.0 <pre> <extension point="com.jrockit.mc.rjmx.triggerConstraints"> <triggerConstraint class="com.jrockit.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.jrockit.example.triggers.HelloWorld" name="Disabling constraint"> <boolean id="com.jrockit.example.triggers.constraint.disable.rule" name="Disable rule"> </boolean> </triggerConstraint> </extension> </pre> <pre> package com.jrockit.example.triggers.constraints; import com.jrockit.mc.rjmx.triggers.TriggerConstraint; import com.jrockit.mc.rjmx.triggers.internal.NotificationEvent; public class DisablingConstraint extends TriggerConstraint { public boolean isValid(NotificationEvent e) { return !getSetting("com.jrockit.example.triggers.constraint.disable.rule").getBoolean(); } } </pre> Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.