org.glassfish.virtualization.config
Interface Virtualization

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy
All Known Subinterfaces:
NativeVirtualization

public interface Virtualization
extends org.jvnet.hk2.config.ConfigBeanProxy

Configuration about a particular virtualization technology.

Author:
Jerome Dochez

Nested Class Summary
static class Virtualization.Duck
           
static class Virtualization.ServerPoolDecorator
           
static class Virtualization.VirtResolver
           
 
Method Summary
 List<Action> getActions()
          Returns the list of @see Action for this virtualization infrastructure.
 String getName()
          Virtualization key name, that will be used as reference index by other configuration element like templates, serverPool definitions etc..
 String getScriptsLocation()
          For future use, we can have scripts attached to machine/virtual machine lifecycle that could be triggered at each event.
 List<GroupManager> getServerPoolMaster()
           
 List<ServerPoolConfig> getServerPools()
          This really should not be here mixing clients and providers information , but for prototyping it's fine.
 String getTemplateCacheRefreshRate()
          Refresh rate in seconds for the template caching facility
 String getTemplateCacheSize()
          Number of template disks the cache should maintain.
 List<Template> getTemplates()
          Returns the list of registered templates for this virtualization infrastructure.
 String getType()
           
 ServerPoolConfig serverPoolByName(String name)
          Returns a serverPool configuration using a serverPool name
 void setName(String solution)
           
 void setScriptsLocation(String location)
           
 void setTemplateCacheRefreshRate(String cache)
           
 void setTemplateCacheSize(String cache)
           
 void setType(String virtType)
           
 Template templateByName(String name)
          Looks up a registered template by the name and returns it.
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
 

Method Detail

getName

String getName()
Virtualization key name, that will be used as reference index by other configuration element like templates, serverPool definitions etc..

Returns:
the virtualization name
See Also:
)

setName

void setName(String solution)

getType

@NotNull
String getType()

setType

void setType(String virtType)

getTemplateCacheSize

String getTemplateCacheSize()
Number of template disks the cache should maintain. These disks will be used to create virtual machine avoiding last minute copy.

Returns:
template cache size

setTemplateCacheSize

void setTemplateCacheSize(String cache)

getTemplateCacheRefreshRate

String getTemplateCacheRefreshRate()
Refresh rate in seconds for the template caching facility

Returns:
the refresh rate of the cache in seconds

setTemplateCacheRefreshRate

void setTemplateCacheRefreshRate(String cache)

getTemplates

List<Template> getTemplates()
Returns the list of registered templates for this virtualization infrastructure. Such template are image files that can be duplicated to create virtual machines.

Returns:
list of registered templates

getServerPoolMaster

List<GroupManager> getServerPoolMaster()

getServerPools

List<ServerPoolConfig> getServerPools()
This really should not be here mixing clients and providers information , but for prototyping it's fine.


getScriptsLocation

String getScriptsLocation()
For future use, we can have scripts attached to machine/virtual machine lifecycle that could be triggered at each event.

Returns:
the native script location
See Also:
Action

setScriptsLocation

void setScriptsLocation(String location)

getActions

List<Action> getActions()
Returns the list of @see Action for this virtualization infrastructure.

Returns:
list of registeed actions

templateByName

@DuckTyped
Template templateByName(String name)
Looks up a registered template by the name and returns it.

Parameters:
name - template name
Returns:
the template if found or null otherwise

serverPoolByName

@DuckTyped
ServerPoolConfig serverPoolByName(String name)
Returns a serverPool configuration using a serverPool name

Parameters:
name - the serverPool name
Returns:
group configuration or null if not found


Copyright © 2012. All Rights Reserved.