| Modifier and Type | Field and Description | 
|---|---|
| static ExitStatus | ERRORGeneric "not OK" exit status with non-zero exit code and hangup=true. | 
| static ExitStatus | OKGeneric "OK" exit status with zero exit code and hangup=false. | 
| Constructor and Description | 
|---|
| ExitStatus(int code,
          String name)Create a new  ExitStatusinstance. | 
| ExitStatus(int code,
          String name,
          boolean hangup)Create a new  ExitStatusinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCode()An exit code appropriate for use in  System.exit(). | 
| String | getName()A name describing the outcome. | 
| ExitStatus | hangup()Convert the existing code to a hangup. | 
| boolean | isHangup()Flag to signal that the caller can (or should) hangup. | 
| String | toString() | 
public static final ExitStatus OK
public static final ExitStatus ERROR
public ExitStatus(int code,
                  String name)
ExitStatus instance.code - the exit codename - the namepublic ExitStatus(int code,
                  String name,
                  boolean hangup)
ExitStatus instance.code - the exit codename - the namehangup - true if it is OK for the caller to hanguppublic int getCode()
System.exit().public String getName()
public boolean isHangup()
public ExitStatus hangup()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.