Class CmdExecutor


  • public class CmdExecutor
    extends java.lang.Object
    Helper class to execute commands in system runtime
    • Constructor Summary

      Constructors 
      Constructor Description
      CmdExecutor​(java.lang.String confirmationMessage, java.lang.String... cmds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute()
      Executes command in the runtime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmdExecutor

        public CmdExecutor​(java.lang.String confirmationMessage,
                           java.lang.String... cmds)
        Parameters:
        confirmationMessage - the message which will be used to check status of the execution
        cmds - list of string which will be used to create a command
    • Method Detail

      • execute

        public boolean execute()
        Executes command in the runtime
        Returns:
        if the command result includes confirmationMessage true will be returned