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>com.jrockit.mc.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>com.jrockit.mc.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. JRockit Mission Control 3.1.0 <extension point="com.jrockit.mc.rjmx.triggerActions"> <triggerAction class="com.jrockit.example.triggers.actions.HelloAction" description="Hello World Action" icon="icons/console_view.png" id="com.jrockit.example.triggers.HelloWorld" name="Hello World"> <string id="com.jrockit.example.triggers.actions.user.name" name="Your Name" value="Mr X"> </string> </triggerAction> </extension> package com.jrockit.example.triggers.actions; import com.jrockit.mc.rjmx.triggers.TriggerAction; import com.jrockit.mc.rjmx.triggers.TriggerEvent; public class HelloAction extends TriggerAction { public void handleNotificationEvent(TriggerEvent e) { System.out.println("Hello " + getSetting("com.jrockit.example.triggers.actions.user.name").getString() +"! Trigger value is " + e.getTriggerValue()); } } Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.