Package org.opends.server.tools
Class StopDS
- java.lang.Object
-
- org.opends.server.tools.StopDS
-
public class StopDS extends Object
This class provides a tool that can send a request to the Directory Server that will cause it to shut down.
-
-
Constructor Summary
Constructors Constructor Description StopDS()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Invokes thestopDSmethod, passing it the provided command line arguments.static intstopDS(String[] args)Parses the provided set of command-line arguments and attempts to contact the Directory Server in order to send it the shutdown request.static intstopDS(String[] args, OutputStream outStream, OutputStream errStream)Parses the provided set of command-line arguments and attempts to contact the Directory Server in order to send it the shutdown request.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Invokes thestopDSmethod, passing it the provided command line arguments. If the call tostopDSreturns a nonzero value, then that will be used as the exit code for this program.- Parameters:
args- The command-line arguments provided to this program.
-
stopDS
public static int stopDS(String[] args)
Parses the provided set of command-line arguments and attempts to contact the Directory Server in order to send it the shutdown request.- Parameters:
args- The command-line arguments provided to this program.- Returns:
- An integer value that indicates whether the shutdown request was accepted by the Directory Server. A nonzero value should be interpreted as a failure of some kind.
-
stopDS
public static int stopDS(String[] args, OutputStream outStream, OutputStream errStream)
Parses the provided set of command-line arguments and attempts to contact the Directory Server in order to send it the shutdown request.- Parameters:
args- The command-line arguments provided to this program.outStream- The output stream to use for standard output, ornullif standard output is not needed.errStream- The output stream to use for standard error, ornullif standard error is not needed.- Returns:
- An integer value that indicates whether the shutdown request was accepted by the Directory Server. A nonzero value should be interpreted as a failure of some kind.
-
-