Class ShutdownOrRestartNodeAction

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

public class ShutdownOrRestartNodeAction extends AbstractTopologyAction
This action stops a node.
See Also:
  • Constructor Details

    • ShutdownOrRestartNodeAction

      public ShutdownOrRestartNodeAction(boolean restart, boolean interruptIfRunning, String name)
      Initialize this action.
      Parameters:
      restart - whether to restart the nodes or to shut them down.
      interruptIfRunning - whether to restart/shutdown immediately or wait until each node are idle.
      name - the name of the corresponding UI element.
  • 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 selected in the tre table.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Perform the action.
      Parameters:
      event - not used.