| Modifier and Type | Field and Description |
|---|---|
static ExitStatus |
ERROR
Generic "not OK" exit status with non-zero exit code and hangup=true
|
static ExitStatus |
OK
Generic "OK" exit status with zero exit code and hangup=false
|
| Constructor and Description |
|---|
ExitStatus(int code,
String name)
Create a new ExitStatus with an exit code and name as specified.
|
ExitStatus(int code,
String name,
boolean hangup) |
| 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 ExitStatus OK
public static ExitStatus ERROR
public ExitStatus(int code,
String name)
code - the exit codename - the namepublic ExitStatus(int code,
String name,
boolean hangup)
code - the exit codename - the namehangup - true if it is OK for the caller to hanguppublic int getCode()
public String getName()
public boolean isHangup()
public ExitStatus hangup()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.