> + * have a workaround for.
> + */
> + /**
> + * @param requestPath Defaults to "/" when null.
> + * @param port Defaults to 80 when null.
> + * @param checkIntervalSec Defaults to 5 when null.
> + * @param timeoutSec Defaults to 5 when null.
> + * @param unhealthyThreshold Defaults to 2 when null.
> + * @param healthyThreshold Defaults to 2 when null.
> + */
> + static HttpHealthCheckCreationOptions createWithDefaults(String host,
> + String requestPath, Integer port, Integer checkIntervalSec, Integer
> timeoutSec, Integer unhealthyThreshold,
> + Integer healthyThreshold, String description) {
> + return create(host, requestPath != null ? requestPath : "/", port !=
> null ? port : 80,
> + checkIntervalSec != null ? checkIntervalSec : 5, timeoutSec !=
> null ? timeoutSec : 5,
> + unhealthyThreshold != null ? unhealthyThreshold : 2,
> healthyThreshold != null ? healthyThreshold : 2, description);
Would it make sense to move these default to constant values or to a constant
class?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/108/files#r21492752