com.microfocus.awm.zos.util

## Class JobPhaseTranslator

- java.lang.Object
- - com.microfocus.awm.zos.util.JobPhaseTranslator

-     public class JobPhaseTranslator
      extends java.lang.Object

  Contains user-readable translations for job phases (JES2 and JES3)
  Author:
    Ralf Pakosch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JobPhaseTranslator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `getPhaseText(int pPhaseCode)` Returns a user readable text for a job phase.
    `static void` | `setJesVersion(int pVersion)` Setting the JES version will disable the automatic changing from JES3 (default) to JES2.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JobPhaseTranslator

          public JobPhaseTranslator()

  - ### Method Detail

    - #### getPhaseText

          public static java.lang.String getPhaseText(int pPhaseCode)

      Returns a user readable text for a job phase.

      Supports both JES2 and JES3 translations for the possible phases. While JES3 is the default 'library', the method will return phase texts for JES2 as soon as a phase code (e.g. 128) was not found in the JES3 'library'.

      Parameters:
        `pPhaseCode` - the phase code
      Returns:
        a readable text for a job phase
      See Also:
        `setJesVersion(int)`

    - #### setJesVersion

          public static void setJesVersion(int pVersion)

      Setting the JES version will disable the automatic changing from JES3 (default) to JES2.
      Parameters:
        `pVersion` - must be either `2` or `3`
      See Also:
        `getPhaseText(int)`

Copyright © 2015 Micro Focus GmbH. All rights reserved.