public class ChildEntityCustomizer extends BasicJcloudsLocationCustomizer
Use this class when the child entity should be created and started
before the parent entity has begun executing its lifecycle
methods. This is useful for supporting agent software installation
or machine configuration tasks that are too complex to be defined
in a singe pre.install.command
script.
The CREATE_CHILD_ENTITY
configuration key can be set to
false to disable creation of the child entity.
ConditionalEntity} for an alternative mechanism
BasicConfigurableObject.BasicConfigurationSupport
Configurable.ConfigurationSupport
Modifier and Type | Field and Description |
---|---|
static ConfigKey<EntitySpec<?>> |
CHILD_ENTITY_SPEC |
static ConfigKey<java.lang.Boolean> |
CREATE_CHILD_ENTITY |
Constructor and Description |
---|
ChildEntityCustomizer() |
Modifier and Type | Method and Description |
---|---|
void |
customize(JcloudsLocation location,
org.jclouds.compute.ComputeService computeService,
JcloudsMachineLocation machine)
Override to configure the given machine once it has been created and started by Jclouds.
|
apply, customize, customize, customize, customize, postRelease, postReleaseOnObtainError, preRelease, preReleaseOnObtainError
config, getBrooklynManagementContext, getConfig, getId, setManagementContext
public static final ConfigKey<EntitySpec<?>> CHILD_ENTITY_SPEC
public static final ConfigKey<java.lang.Boolean> CREATE_CHILD_ENTITY
public void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, JcloudsMachineLocation machine)
JcloudsLocationCustomizer
If CloudLocationConfig.WAIT_FOR_SSHABLE
is true the machine is guaranteed to be
SSHable when this method is called.
customize
in interface JcloudsLocationCustomizer
customize
in class BasicJcloudsLocationCustomizer