Class ScriptAction.ScriptRunner

  • All Implemented Interfaces:
    Runnable, Future<Object>, RunnableFuture<Object>
    Enclosing class:
    ScriptAction

    protected class ScriptAction.ScriptRunner
    extends SwingWorker<Object,​org.jboss.as.cli.gui.metacommand.ScriptAction.OutMessage>
    Use a SwingWorker to run the script in the background. Some commands such as deploy can take a long time, so they can tie up the event dispatch thread and freeze the UI.
    • Method Detail

      • process

        protected void process​(List<org.jboss.as.cli.gui.metacommand.ScriptAction.OutMessage> messages)
        Overrides:
        process in class SwingWorker<Object,​org.jboss.as.cli.gui.metacommand.ScriptAction.OutMessage>