Class NodeConfigurationAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, UpdatableAction, ValueChangeListener

public class NodeConfigurationAction extends AbstractTopologyAction
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 Details

    • debugEnabled

      protected static boolean debugEnabled
      Determines whether debug log statements are enabled.
  • Constructor Details

    • NodeConfigurationAction

      public NodeConfigurationAction()
      Initialize this action.
  • Method Details

    • updateState

      public void updateState(List<Object> selectedElements)
      Update this action's enabled state based on a list of selected elements.
      Specified by:
      updateState in interface UpdatableAction
      Overrides:
      updateState in class AbstractTopologyAction
      Parameters:
      selectedElements - - a list of objects.
      See Also:
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      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

      public static Map<Object,Object> getPropertiesAsMap(String source)
      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.