Class AspectranShellService

  • All Implemented Interfaces:
    com.aspectran.core.service.CoreService, com.aspectran.core.service.ServiceController, ShellService

    public class AspectranShellService
    extends AbstractShellService
    The Class AspectranShellService.
    Since:
    2016. 1. 18.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AspectranShellService create​(java.io.File aspectranConfigFile)
      Returns a new instance of AspectranShellService.
      static AspectranShellService create​(java.io.File aspectranConfigFile, Console console)
      Returns a new instance of AspectranShellService.
      void execute​(CommandLineParser commandLineParser)
      Executes a Shell Activity.
      void execute​(java.lang.String commandLine)
      Executes a Shell Activity.
      void release()
      Stop the service and release all allocated resources.
      • Methods inherited from class com.aspectran.core.service.AbstractCoreService

        createSchedulerService, destroyActivityContext, determineBasePath, getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals
      • Methods inherited from class com.aspectran.core.service.AbstractServiceController

        getLock, getServiceName, isActive, joinDerivedService, pause, pause, resume, setServiceStateListener, start, stop
      • Methods inherited from class com.aspectran.core.service.AspectranCoreService

        doPause, doPause, doRestart, doResume, doStart, doStop
      • Methods inherited from interface com.aspectran.core.service.CoreService

        getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isHardReload, isLateStart, joinDerivedService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.aspectran.shell.service.ShellService

    • Method Detail

      • execute

        public void execute​(java.lang.String commandLine)
        Description copied from interface: ShellService
        Executes a Shell Activity.
        Parameters:
        commandLine - the command
      • execute

        public void execute​(CommandLineParser commandLineParser)
        Description copied from interface: ShellService
        Executes a Shell Activity.
        Parameters:
        commandLineParser - the command line parser
      • release

        public void release()
        Description copied from interface: ShellService
        Stop the service and release all allocated resources.
      • create

        public static AspectranShellService create​(java.io.File aspectranConfigFile)
        Returns a new instance of AspectranShellService.
        Parameters:
        aspectranConfigFile - the aspectran configuration file
        Returns:
        the instance of AspectranShellService
      • create

        public static AspectranShellService create​(java.io.File aspectranConfigFile,
                                                   Console console)
        Returns a new instance of AspectranShellService.
        Parameters:
        aspectranConfigFile - the aspectran configuration file
        console - the console
        Returns:
        the instance of AspectranShellService