Skip to content

Commit 5681319

Browse files
committed
ProcessState: Introduce STOPPING state
1 parent 7041647 commit 5681319

File tree

1 file changed

+8
-1
lines changed
  • cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/processes

1 file changed

+8
-1
lines changed

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/processes/ProcessState.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ public enum ProcessState {
4242
/**
4343
* The starting state
4444
*/
45-
STARTING("STARTING");
45+
STARTING("STARTING"),
46+
47+
/**
48+
* The stopping state
49+
*/
50+
STOPPING("STOPPING");
4651

4752
private final String value;
4853

@@ -61,6 +66,8 @@ public static ProcessState from(String s) {
6166
return RUNNING;
6267
case "starting":
6368
return STARTING;
69+
case "stopping":
70+
return STOPPING;
6471
default:
6572
throw new IllegalArgumentException(String.format("Unknown process state: %s", s));
6673
}

0 commit comments

Comments
 (0)