org.opends.server.tools
Class WaitForFileDelete

java.lang.Object
  extended by org.opends.server.tools.WaitForFileDelete

public class WaitForFileDelete
extends java.lang.Object

This program provides a simple tool that will wait for a specified file to be deleted before exiting. It can be used in the process of confirming that the server has completed its startup or shutdown process.


Field Summary
static int EXIT_CODE_INTERNAL_ERROR
          The exit code value that will be used if an internal error occurs within this program.
static int EXIT_CODE_SUCCESS
          The exit code value that will be used if the target file is deleted successfully.
static int EXIT_CODE_TIMEOUT
          The exit code value that will be used if a timeout occurs while waiting for the file to be removed.
 
Constructor Summary
WaitForFileDelete()
           
 
Method Summary
static void main(java.lang.String[] args)
          Processes the command-line arguments and initiates the process of waiting for the file to be removed.
static int mainWait(java.lang.String[] args)
          Processes the command-line arguments and then waits for the specified file to be removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXIT_CODE_SUCCESS

public static final int EXIT_CODE_SUCCESS
The exit code value that will be used if the target file is deleted successfully.

See Also:
Constant Field Values

EXIT_CODE_INTERNAL_ERROR

public static final int EXIT_CODE_INTERNAL_ERROR
The exit code value that will be used if an internal error occurs within this program.

See Also:
Constant Field Values

EXIT_CODE_TIMEOUT

public static final int EXIT_CODE_TIMEOUT
The exit code value that will be used if a timeout occurs while waiting for the file to be removed.

See Also:
Constant Field Values
Constructor Detail

WaitForFileDelete

public WaitForFileDelete()
Method Detail

main

public static void main(java.lang.String[] args)
Processes the command-line arguments and initiates the process of waiting for the file to be removed.

Parameters:
args - The command-line arguments provided to this program.

mainWait

public static int mainWait(java.lang.String[] args)
Processes the command-line arguments and then waits for the specified file to be removed.

Parameters:
args - The command-line arguments provided to this program.
Returns:
An integer value of zero if the file was deleted successfully, or some other value if a problem occurred.