
com.sap.cloudfoundry.client.facade.domain.InstanceState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-client-facade Show documentation
Show all versions of cloudfoundry-client-facade Show documentation
A facade of the official Cloud Foundry Java client
package com.sap.cloudfoundry.client.facade.domain;
import org.cloudfoundry.client.v3.processes.ProcessState;
public enum InstanceState {
CRASHED, DOWN, RUNNING, STARTING, UNKNOWN;
public static InstanceState valueOfWithDefault(ProcessState state) {
if (state == null) {
return UNKNOWN;
}
try {
return InstanceState.valueOf(state.getValue());
} catch (IllegalArgumentException e) {
return InstanceState.UNKNOWN;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy