Package com.yahoo.config.provision
Class Cloud
- java.lang.Object
-
- com.yahoo.config.provision.Cloud
-
public class Cloud extends java.lang.Object
Represents a cloud service and its supported features.- Author:
- mpolden
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowHostSharing()
Returns wheter this allows different applications to share the same hoststatic Cloud
defaultCloud()
For testing purposes onlyboolean
dynamicProvisioning()
Returns whether this can provision hosts dynamicallyCloudName
name()
The name of thisboolean
reprovisionToUpgradeOs()
Returns whether upgrading OS on hosts in this requires the host to be reprovisionedboolean
requireAccessControl()
Returns whether to require access control for all clusters in thisjava.lang.String
toString()
Cloud
withAllowHostSharing(boolean allowHostSharing)
Cloud
withDynamicProvisioning(boolean dynamicProvisioning)
Cloud
withReprovisionToUpgradeOs(boolean reprovisionToUpgradeOs)
Cloud
withRequireAccessControl(boolean requireAccessControl)
-
-
-
Constructor Detail
-
Cloud
public Cloud(CloudName name, boolean dynamicProvisioning, boolean allowHostSharing, boolean reprovisionToUpgradeOs, boolean requireAccessControl)
-
-
Method Detail
-
name
public CloudName name()
The name of this
-
dynamicProvisioning
public boolean dynamicProvisioning()
Returns whether this can provision hosts dynamically
-
allowHostSharing
public boolean allowHostSharing()
Returns wheter this allows different applications to share the same host
-
reprovisionToUpgradeOs
public boolean reprovisionToUpgradeOs()
Returns whether upgrading OS on hosts in this requires the host to be reprovisioned
-
requireAccessControl
public boolean requireAccessControl()
Returns whether to require access control for all clusters in this
-
withDynamicProvisioning
public Cloud withDynamicProvisioning(boolean dynamicProvisioning)
-
withAllowHostSharing
public Cloud withAllowHostSharing(boolean allowHostSharing)
-
withReprovisionToUpgradeOs
public Cloud withReprovisionToUpgradeOs(boolean reprovisionToUpgradeOs)
-
withRequireAccessControl
public Cloud withRequireAccessControl(boolean requireAccessControl)
-
defaultCloud
public static Cloud defaultCloud()
For testing purposes only
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-