This extension point is used to add new trigger actions to the JMX Console. A trigger action must have an id, name, description and a class that extends <code>org.openjdk.jmc.rjmx.triggers.TriggerAction </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. a unique identifier for this action. the name of the action the description of the action the icon for the action class that extends <code>org.openjdk.jmc.rjmx.triggers.TriggerAction</code> and that implements the method <code>handleNotificationEvent(NotificationEvent e)</code> that will execute when a trigger is triggered. Date 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. 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. Time range setting for a trigger action. a unique identifier for this setting the name of the setting the description of the setting the default value for this time range. If no unit is set, seconds will be assumed. 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 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. File 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. Boolean 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. Integer 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 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 Password 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. 5.2.0 <extension point="org.openjdk.jmc.rjmx.triggerActions"> <triggerAction class="com.example.triggers.actions.HelloAction" description="Hello World Action" icon="icons/console_view.png" id="com.example.triggers.HelloWorld" name="Hello World"> <string id="com.example.triggers.actions.username" name="Your Name" value="Mr X"> </string> </triggerAction> </extension> package com.example.triggers.actions; import org.openjdk.jmc.rjmx.triggers.TriggerAction; import org.openjdk.jmc.rjmx.triggers.TriggerEvent; public class HelloAction extends TriggerAction { public void handleNotificationEvent(TriggerEvent e) { System.out.println("Hello " + getSetting("com.example.triggers.actions.username").getString() +"! Trigger value is " + e.getTriggerValue()); } } Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.