Class NodeConfigurationAction
java.lang.Object
javax.swing.AbstractAction
org.jppf.ui.actions.AbstractUpdatableAction
org.jppf.ui.monitoring.node.actions.AbstractTopologyAction
org.jppf.ui.monitoring.node.actions.NodeConfigurationAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,UpdatableAction,ValueChangeListener
This action displays an input panel for the user to type a new
thread pool size for a node, and updates the node with it.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanDetermines whether debug log statements are enabled.Fields inherited from class org.jppf.ui.monitoring.node.actions.AbstractTopologyAction
dataArray, EMPTY_TOPOLOGY_DATA_ARRAYFields inherited from class org.jppf.ui.actions.AbstractUpdatableAction
BASE, location, selectedElementsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Perform the action.getPropertiesAsMap(String source) Get the properties defined in the text area as a map.static StringgetPropertiesAsString(org.jppf.client.monitoring.topology.AbstractTopologyComponent data) Obtain the JPPF configuration as a string, one property per line.voidupdateState(List<Object> selectedElements) Update this action's enabled state based on a list of selected elements.Methods inherited from class org.jppf.ui.monitoring.node.actions.AbstractTopologyAction
getDriverMapMethods inherited from class org.jppf.ui.actions.AbstractUpdatableAction
disposeDialog, getLocation, loadPreferences, loadWithPreferences, localize, localize, readyDialog, runAction, savePreferences, setKeyAction, setLocation, setOkCancelKeys, setOkCancelKeys, setupIcon, setupNameAndTooltip, setupTooltip, valueChangedMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
debugEnabled
protected static boolean debugEnabledDetermines whether debug log statements are enabled.
-
-
Constructor Details
-
NodeConfigurationAction
public NodeConfigurationAction()Initialize this action.
-
-
Method Details
-
updateState
Update this action's enabled state based on a list of selected elements.- Specified by:
updateStatein interfaceUpdatableAction- Overrides:
updateStatein classAbstractTopologyAction- Parameters:
selectedElements- - a list of objects.- See Also:
-
actionPerformed
Perform the action.- Parameters:
event- - not used.
-
getPropertiesAsString
public static String getPropertiesAsString(org.jppf.client.monitoring.topology.AbstractTopologyComponent data) Obtain the JPPF configuration as a string, one property per line.- Parameters:
data- the topology data from which to get the config.- Returns:
- the properties as a string.
-
getPropertiesAsMap
Get the properties defined in the text area as a map.- Parameters:
source- - the text from which to read the properties.- Returns:
- a map of string keys to string values.
-