|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.tools.StartWindowsService
public class StartWindowsService
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 | |
---|---|
StartWindowsService()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Invokes the net start on the service corresponding to this server. |
static int |
startWindowsService(java.io.OutputStream outStream,
java.io.OutputStream errStream)
Invokes the net start on the service corresponding to this server, it writes information and error messages in the provided streams. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StartWindowsService()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- The command-line arguments provided to this program.public static int startWindowsService(java.io.OutputStream outStream, java.io.OutputStream errStream)
outStream
- The stream to write standard output messages.errStream
- The stream to write error messages.
SERVICE_START_SUCCESSFUL
,
SERVICE_NOT_FOUND
, SERVICE_ALREADY_STARTED
or
SERVICE_START_ERROR
depending on whether the service could be
stopped or not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |