Package org.opends.server.tools
Class StartWindowsService
- java.lang.Object
-
- org.opends.server.tools.StartWindowsService
-
public class StartWindowsService extends Object
This class is used to start the Windows service associated with this instance on this machine. This tool allows to start OpenDS and to make it run as a Windows service.
-
-
Constructor Summary
Constructors Constructor Description StartWindowsService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Invokes the net start on the service corresponding to this server.static intstartWindowsService(OutputStream outStream, OutputStream errStream)Invokes the net start on the service corresponding to this server, it writes information and error messages in the provided streams.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Invokes the net start on the service corresponding to this server.- Parameters:
args- The command-line arguments provided to this program.
-
startWindowsService
public static int startWindowsService(OutputStream outStream, OutputStream errStream)
Invokes the net start on the service corresponding to this server, it writes information and error messages in the provided streams.- Parameters:
outStream- The stream to write standard output messages.errStream- The stream to write error messages.- Returns:
SERVICE_START_SUCCESSFUL,SERVICE_NOT_FOUND,SERVICE_ALREADY_STARTEDorSERVICE_START_ERRORdepending on whether the service could be stopped or not.
-
-