Class ToolsState

All Implemented Interfaces:
Callable<Integer>

@Deprecated public class ToolsState extends AbstractTargets
Deprecated.
  • Constructor Details

    • ToolsState

      public ToolsState()
      Deprecated.
  • Method Details

    • doTargetCall

      protected Integer doTargetCall(WanakuPrinter printer) throws Exception
      Deprecated.
      Executes the tools state command. This method performs the following operations:
      1. Initializes the targets service
      2. Retrieves the current tools state from the service
      3. Formats and prints the tools state in a tabular format
      Specified by:
      doTargetCall in class AbstractTargets
      Returns:
      BaseCommand.EXIT_OK (0) on successful execution, or appropriate error code if an exception occurs during processing
      Throws:
      IOException - if there's an I/O error while creating the terminal instance or communicating with the targets service
      RuntimeException - if the targets service initialization fails or if there's an error retrieving the tools state
      Exception