Interface CLIExecutor

  • All Known Implementing Classes:
    CLIExecutorImpl

    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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute​(java.lang.String command)
      Execute a CLI command
      java.lang.String[] executeWithResult​(java.lang.String command)
      Execute a CLI command that returns a result
      java.lang.String getContext()
      Returns the current context.
      void setAdminRole​(java.lang.String name)
      Sets an admin role to use in this executor
    • Method Detail

      • setAdminRole

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

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

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

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