|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface TemplateCustomizer
A template customizer is responsible for customizing a virtual machine for a particular template service type.
| Method Summary | |
|---|---|
void |
clean(VirtualMachine virtualMachine)
Clean the current virtual machine information from this process's configuration, this step will be called once before the virtual machine is undefined. |
void |
customize(VirtualCluster cluster,
VirtualMachine virtualMachine)
Customize the template instance running within the passed VirtualMachine instance for a particular use (like a
GlassFish instance, or a database). |
void |
start(VirtualMachine virtualMachine,
boolean firstStart)
Starts the template instance services. |
void |
stop(VirtualMachine virtualMachine)
Stop the template instance services |
| Method Detail |
|---|
void customize(VirtualCluster cluster,
VirtualMachine virtualMachine)
throws VirtException
VirtualMachine instance for a particular use (like a
GlassFish instance, or a database). This step will be performed
once when the virtual machine is allocated.
cluster - the virtual cluster runtime informationvirtualMachine - the instantiated template's virtual machine
VirtException - if the customization cannot be achieved
void start(VirtualMachine virtualMachine,
boolean firstStart)
virtualMachine - the virtual machine containing the instantiated
template.firstStart - set to true if we are starting the virtual machine
for the first timevoid stop(VirtualMachine virtualMachine)
virtualMachine - the virtual machine containing the running servicesvoid clean(VirtualMachine virtualMachine)
virtualMachine - the virtual machine instance to remove from our
configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||