Search in sources :

Example 1 with ExitStatusValue

use of com.microsoft.frameworklauncher.common.exit.ExitStatusValue in project pai by Microsoft.

the class ApplicationMaster method stopForContainer.

private void stopForContainer(int exitCode, String diagnostics, String customizedDiagnostics) {
    ExitStatusValue partialValue = new ExitStatusValue(exitCode, diagnostics, null);
    String fullDiagnostics = ExitDiagnostics.generateDiagnostics(partialValue, customizedDiagnostics);
    ExitStatusKey exitStatusKey = ExitDiagnostics.extractExitStatusKey(fullDiagnostics);
    stop(new StopStatus(exitStatusKey.toInt(), true, fullDiagnostics));
}
Also used : StopStatus(com.microsoft.frameworklauncher.common.service.StopStatus) ExitStatusKey(com.microsoft.frameworklauncher.common.exit.ExitStatusKey) ExitStatusValue(com.microsoft.frameworklauncher.common.exit.ExitStatusValue)

Aggregations

ExitStatusKey (com.microsoft.frameworklauncher.common.exit.ExitStatusKey)1 ExitStatusValue (com.microsoft.frameworklauncher.common.exit.ExitStatusValue)1 StopStatus (com.microsoft.frameworklauncher.common.service.StopStatus)1