Package org.jboss.as.process
Class ExitCodes
- java.lang.Object
-
- org.jboss.as.process.ExitCodes
-
public class ExitCodes extends Object
Reserved process exit codes handled differently- Author:
- Kabir Khan
-
-
Field Summary
Fields Modifier and Type Field Description static intFAILEDExit code which indicates a process failure.static intHOST_CONTROLLER_ABORT_EXIT_CODEExit code from host controller which indicates a critical boot failure.static intNORMALExit code which indicates normal process exit.static intPERFORM_INSTALLATION_FROM_STARTUP_SCRIPTExit code to invoke the installation manager scripts.static intRESTART_PROCESS_FROM_STARTUP_SCRIPTExit code which serves two functions: standalone mode: - if a standalone server's exit code the startup script will start up the server again.
-
Constructor Summary
Constructors Constructor Description ExitCodes()
-
-
-
Field Detail
-
NORMAL
public static final int NORMAL
Exit code which indicates normal process exit.- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
Exit code which indicates a process failure. In a managed domain, if the process emitting this code is aHostController, the process controller will react to this code by attempting to respawn the host controller. For other processes this code has no special semantic associated with it.- See Also:
- Constant Field Values
-
RESTART_PROCESS_FROM_STARTUP_SCRIPT
public static final int RESTART_PROCESS_FROM_STARTUP_SCRIPT
Exit code which serves two functions:- standalone mode: - if a standalone server's exit code the startup script will start up the server again.
-
domain mode: - if the host controller process returns this exit code, the process controller will terminate
with this exit code, and the domain's startup script will start up the process controller again, which in turn will start up
the host controller and any
autostart="true"servers.
- See Also:
- Constant Field Values
-
PERFORM_INSTALLATION_FROM_STARTUP_SCRIPT
public static final int PERFORM_INSTALLATION_FROM_STARTUP_SCRIPT
Exit code to invoke the installation manager scripts. It serves two functions:- standalone mode: - if a standalone server's exit code the startup script will invoke the installation manager script and start up the server again.
-
domain mode: - if the host controller process returns this exit code, the process controller will terminate
with this exit code, and the domain's startup script will invoke the installation manager script and start up the process controller again,
which in turn will start up the host controller and any
autostart="true"servers.
- See Also:
- Constant Field Values
-
HOST_CONTROLLER_ABORT_EXIT_CODE
public static final int HOST_CONTROLLER_ABORT_EXIT_CODE
Exit code from host controller which indicates a critical boot failure. The process controller will only try to respawn the host controller if there are no running servers; if there aren't, the process controller will shut down in turn. If there are running servers, the process controller will attempt to respawn the host controller, but with longer delays between respawn attempts than would be the case withFAILED. The expectation is a critical boot failure will require some sort of human intervention to resolve, so immediately respawning will just result in noise in the logs.- See Also:
- Constant Field Values
-
-