Interface CLIExecutor


public interface CLIExecutor
A CLIExecutor is an entity to execute CLI commands.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
  • Method Details

    • setAdminRole

      void setAdminRole(String name) throws Exception
      Sets an admin role to use in this executor
      Parameters:
      name -
      Throws:
      Exception
    • getContext

      String getContext()
      Returns the current context.
      Returns:
      context
    • execute

      void execute(String command) throws Exception
      Execute a CLI command
      Parameters:
      command - CLI command
      Throws:
      Exception - on error.
    • executeWithResult

      String[] executeWithResult(String command) throws Exception
      Execute a CLI command that returns a result
      Parameters:
      command - CLI command
      Returns:
      result
      Throws:
      Exception - on error.