Class AbstractShellService

    • Constructor Detail

      • AbstractShellService

        protected AbstractShellService​(Console console)
    • Method Detail

      • afterContextLoaded

        public void afterContextLoaded()
                                throws java.lang.Exception
        Description copied from class: AspectranCoreService
        This method is executed immediately after the ActivityContext is loaded.
        Overrides:
        afterContextLoaded in class AspectranCoreService
        Throws:
        java.lang.Exception - if an error occurs
      • isExposable

        public boolean isExposable​(java.lang.String transletName)
        Description copied from interface: ShellService
        Checks whether the Translet can be exposed.
        Specified by:
        isExposable in interface ShellService
        Overrides:
        isExposable in class AbstractCoreService
        Parameters:
        transletName - the name of the Translet to check
        Returns:
        true if the Translet can be exposed; false otherwise
      • isVerbose

        public boolean isVerbose()
        Tests if the verbose mode is enabled. If verbose mode is on, a detailed description is printed each time the command is executed. Returns a flag indicating whether to show the description or not.
        Specified by:
        isVerbose in interface ShellService
        Returns:
        true if the verbose mode is enabled
      • setVerbose

        public void setVerbose​(boolean verbose)
        Enables or disables the verbose mode. If verbose mode is on, a detailed description is printed each time the command is executed. Sets a flag indicating whether to show the description or not.
        Specified by:
        setVerbose in interface ShellService
        Parameters:
        verbose - true to enable the verbose mode; false to disable
      • setGreetings

        public void setGreetings​(java.lang.String greetings)
        Specified by:
        setGreetings in interface ShellService
      • restart

        public void restart​(java.lang.String message)
                     throws java.lang.Exception
        Description copied from interface: ServiceController
        Restarts the service.
        Specified by:
        restart in interface ServiceController
        Overrides:
        restart in class AbstractServiceController
        Parameters:
        message - the message to be delivered to the system before restart
        Throws:
        java.lang.Exception - if the service control fails