Package org.openstack4j.model.compute
Interface Flavor
-
- All Superinterfaces:
Buildable<FlavorBuilder>,ModelEntity,Serializable
- All Known Implementing Classes:
NovaFlavor
public interface Flavor extends ModelEntity, Buildable<FlavorBuilder>
An OpenStack Flavor which is a template used for configuration against running Instances- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDisk()intgetEphemeral()Gets the ephemeral.StringgetId()List<? extends Link>getLinks()Gets the links.StringgetName()intgetRam()intgetRxtxCap()Gets the rxtx cap.floatgetRxtxFactor()intgetRxtxQuota()Gets the rxtx quota.intgetSwap()intgetVcpus()BooleanisDisabled()Checks if is disabled.BooleanisPublic()Checks if is public.
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the id for this flavor
-
getName
String getName()
- Returns:
- the descriptive name of the flavor
-
getRam
int getRam()
- Returns:
- the Memory in MB for the flavor
-
getVcpus
int getVcpus()
- Returns:
- the Number of VCPUs for the flavor
-
getDisk
int getDisk()
- Returns:
- the size of the local disk in GB
-
getSwap
int getSwap()
- Returns:
- the Swap space in MB
-
getRxtxFactor
float getRxtxFactor()
- Returns:
- the RX/TX factor
-
getEphemeral
int getEphemeral()
Gets the ephemeral.- Returns:
- the ephemeral
-
getRxtxQuota
int getRxtxQuota()
Gets the rxtx quota.- Returns:
- the rxtx quota
-
getRxtxCap
int getRxtxCap()
Gets the rxtx cap.- Returns:
- the rxtx cap
-
isPublic
Boolean isPublic()
Checks if is public.- Returns:
- true, if is public
-
isDisabled
Boolean isDisabled()
Checks if is disabled.- Returns:
- true, if is disabled
-
-