Class StartStopPauseWindowsService

  • All Implemented Interfaces:
    DBHostable, GeneralAction, JEEHostable, OSHostable, Referenceable

    public final class StartStopPauseWindowsService
    extends Action
    implements GeneralAction
    Manages a Windows service. If the application is interacting with a Windows Service, the installer may need to manage that service. This action, when the installer is run with sufficient privileges, allows the installer to stop, start, or pause registered windows services.
    • Constructor Detail

      • StartStopPauseWindowsService

        public StartStopPauseWindowsService()
    • Method Detail

      • setOperationType

        public void setOperationType​(WinServiceOperation type)
        The operation to be performed on the service.
      • getOperationType

        public WinServiceOperation getOperationType()
        The operation to be performed on the service.
      • setServiceName

        public void setServiceName​(java.lang.String name)
        The service name that will be managed.
      • getServiceName

        public java.lang.String getServiceName()
        The service name that will be managed.
      • getWaitForProcess

        public boolean getWaitForProcess()
        Whether to wait for the process to finish before continuing.
      • setWaitForProcess

        public void setWaitForProcess​(boolean WaitForProcess)
        Whether to wait for the process to finish before continuing.