public class BasicJcloudsLocationCustomizer extends java.lang.Object implements JcloudsLocationCustomizer
JcloudsLocationCustomizer
is marked Beta
.Constructor and Description |
---|
BasicJcloudsLocationCustomizer() |
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.
|
void |
customize(JcloudsLocation location,
org.jclouds.compute.ComputeService computeService,
JcloudsSshMachineLocation machine)
Deprecated.
|
void |
customize(JcloudsLocation location,
org.jclouds.compute.ComputeService computeService,
org.jclouds.compute.domain.Template template)
Override to configure a subclass of this with the built template, or to configure the built
template's
TemplateOptions . |
void |
customize(JcloudsLocation location,
org.jclouds.compute.ComputeService computeService,
org.jclouds.compute.domain.TemplateBuilder templateBuilder)
Override to configure
templateBuilder
before it is built and immutable. |
void |
customize(JcloudsLocation location,
org.jclouds.compute.ComputeService computeService,
org.jclouds.compute.options.TemplateOptions templateOptions)
Override to configure the
TemplateOptions that will
be used by JcloudsLocation to obtain machines. |
void |
postRelease(JcloudsMachineLocation machine)
Override to handle machine-related cleanup after Jclouds is called to release (destroy) the machine.
|
void |
postRelease(JcloudsSshMachineLocation machine)
Deprecated.
|
void |
preRelease(JcloudsMachineLocation machine)
Override to handle machine-related cleanup before Jclouds is called to release (destroy) the machine.
|
void |
preRelease(JcloudsSshMachineLocation machine)
Deprecated.
|
public void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, org.jclouds.compute.domain.TemplateBuilder templateBuilder)
JcloudsLocationCustomizer
templateBuilder
before it is built and immutable.customize
in interface JcloudsLocationCustomizer
public void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, org.jclouds.compute.domain.Template template)
JcloudsLocationCustomizer
TemplateOptions
.
This method will be called before JcloudsLocationCustomizer.customize(JcloudsLocation, ComputeService, TemplateOptions)
.customize
in interface JcloudsLocationCustomizer
public void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, org.jclouds.compute.options.TemplateOptions templateOptions)
JcloudsLocationCustomizer
TemplateOptions
that will
be used by JcloudsLocation
to obtain machines.customize
in interface JcloudsLocationCustomizer
public void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, JcloudsMachineLocation machine)
JcloudsLocationCustomizer
CloudLocationConfig.WAIT_FOR_SSHABLE
is true the
machine is guaranteed to be SSHable when this method is called.customize
in interface JcloudsLocationCustomizer
public void preRelease(JcloudsMachineLocation machine)
JcloudsLocationCustomizer
preRelease
in interface JcloudsLocationCustomizer
public void postRelease(JcloudsMachineLocation machine)
JcloudsLocationCustomizer
postRelease
in interface JcloudsLocationCustomizer
@Deprecated public void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, JcloudsSshMachineLocation machine)
JcloudsLocationCustomizer
CloudLocationConfig.WAIT_FOR_SSHABLE
is true the
machine is guaranteed to be SSHable when this method is called.customize
in interface JcloudsLocationCustomizer
@Deprecated public void preRelease(JcloudsSshMachineLocation machine)
JcloudsLocationCustomizer
preRelease
in interface JcloudsLocationCustomizer
@Deprecated public void postRelease(JcloudsSshMachineLocation machine)
JcloudsLocationCustomizer
postRelease
in interface JcloudsLocationCustomizer