@InitialPresentation(initialPresentationClass=ShutdownEnginePresentation.class) @HelpPresentation(helpPresentationClass=ShutdownEngineHelpPresentation.class) @OnLinePresentationFunctionCharacteristics(leaveFunctionOnExit=true, descriptionLocalizationKey="ShutdownEngine.Text") public class ShutdownEngine extends MonitorWebClientFunction
The shutdown command starts the server's graceful-shutdown procedure. The port listener is stopped to prevent new connections from becoming active, all idle connections that do not have a transaction running are closed, and then the server waits for all currently running transactions to end, after which point the corresponding connections are also closed, the java virtual machine exits, and the server can be restarted.
Should there be a running transaction that doesn't ever seem to end, even after the transaction has already been set to cancel via the KILLCONNECTION command, then there is no other option left but to stop the SIRA_PRISE server by whatever facility is available for that purpose at the OS level (or some other even more drastic kind of cold restart, such as switching the hardware off and on), and restoring all databases to a guaranteeably consistent state from the most recent backup (and possibly running a rollforward recovery procedure after that).
| Constructor and Description |
|---|
ShutdownEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
doInitialLogic()
Function is called when the presentation is initialized, after the presentation object has been filled.
|
void |
doPresentationLogic()
Performs the presentation logic
|
doActionLogic, doCancel, doResumeLogic, getFromFunctionContext, getFromFunctionContextMandatory, getFromSessionContext, getInitialPresentationClass, getInitialPresentationName, getMemorizeData, getPresentation, getPresentationFunctionDescription, getPresentationValue, leaveFunctionOnExit, log, log, popoffPresentation, popupPresentation, popupPresentation, popupPresentation, saveInFunctionContext, saveInSessionContext, setMemorizeData, setPresentation, setPresentation, setPresentation, setPresentationMessage, setPresentationValue, setPresentationValue, setPresentationValue, setPresentationValue, setPresentationValue, setPresentationValue, setPresentationValue, setPresentationValuepublic void doInitialLogic()
throws be.ASPL.presentationlayer.ASPLException
be.ASPL.presentationlayer.OnLinePresentationFunctiondoInitialLogic in class be.ASPL.presentationlayer.OnLinePresentationFunctionbe.ASPL.presentationlayer.ASPLException - -public void doPresentationLogic()
throws be.ASPL.presentationlayer.ASPLException
be.ASPL.presentationlayer.OnLinePresentationFunctiondoPresentationLogic in class be.ASPL.presentationlayer.OnLinePresentationFunctionbe.ASPL.presentationlayer.ASPLException - -