Java Code Examples for org.cloudfoundry.operations.applications.ApplicationHealthCheck#from()

The following examples show how to use org.cloudfoundry.operations.applications.ApplicationHealthCheck#from() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CloudFoundryAppDeployer.java    From spring-cloud-app-broker with Apache License 2.0 5 votes vote down vote up
private ApplicationHealthCheck toApplicationHealthCheck(String raw) {
	try {
		return ApplicationHealthCheck.from(raw);
	}
	catch (IllegalArgumentException e) {
		throw new IllegalArgumentException(
			String.format("Unsupported health-check value '%s'. Available values are %s", raw,
				StringUtils.arrayToCommaDelimitedString(ApplicationHealthCheck.values())), e);
	}
}
 
Example 2
Source File: CloudFoundryAppDeployer.java    From spring-cloud-deployer-cloudfoundry with Apache License 2.0 5 votes vote down vote up
private ApplicationHealthCheck toApplicationHealthCheck(String raw) {
	try {
		return ApplicationHealthCheck.from(raw);
	} catch (IllegalArgumentException e) {
		throw new IllegalArgumentException(String.format("Unsupported health-check value '%s'. Available values are %s", raw,
			StringUtils.arrayToCommaDelimitedString(ApplicationHealthCheck.values())), e);
	}
}