org.jclouds.cloudstack.domain
Class ServiceOffering

java.lang.Object
  extended by org.jclouds.cloudstack.domain.ServiceOffering
All Implemented Interfaces:
Comparable<ServiceOffering>

public class ServiceOffering
extends Object
implements Comparable<ServiceOffering>

Author:
Adrian Cole

Nested Class Summary
static class ServiceOffering.Builder
           
 
Constructor Summary
ServiceOffering(long id, String name, String displayText, Date created, String domain, long domainId, int cpuNumber, int cpuSpeed, int memory, boolean haSupport, StorageType storageType, Set<String> tags, boolean defaultUse, String hostTags, boolean systemOffering, boolean cpuUseLimited, long networkRate, boolean systemVmType)
           
 
Method Summary
static ServiceOffering.Builder builder()
           
 int compareTo(ServiceOffering arg0)
           
 boolean equals(Object obj)
           
 int getCpuNumber()
           
 int getCpuSpeed()
           
 Date getCreated()
           
 String getDisplayText()
           
 String getDomain()
           
 long getDomainId()
           
 String getHostTags()
           
 long getId()
           
 int getMemory()
           
 String getName()
           
 long getNetworkRate()
           
 StorageType getStorageType()
           
 Set<String> getTags()
           
 int hashCode()
           
 boolean isCpuUseLimited()
           
 boolean isDefaultUse()
           
 boolean isSystemOffering()
           
 boolean isSystemVmType()
           
 boolean supportsHA()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceOffering

public ServiceOffering(long id,
                       String name,
                       String displayText,
                       Date created,
                       String domain,
                       long domainId,
                       int cpuNumber,
                       int cpuSpeed,
                       int memory,
                       boolean haSupport,
                       StorageType storageType,
                       Set<String> tags,
                       boolean defaultUse,
                       String hostTags,
                       boolean systemOffering,
                       boolean cpuUseLimited,
                       long networkRate,
                       boolean systemVmType)
Method Detail

builder

public static ServiceOffering.Builder builder()

getId

public long getId()
Returns:
the id of the service offering

getName

public String getName()
Returns:
the name of the service offering

getDisplayText

public String getDisplayText()
Returns:
an alternate display text of the service offering.

getCreated

public Date getCreated()
Returns:
the date this service offering was created

getDomain

public String getDomain()
Returns:
Domain name for the offering

getDomainId

public long getDomainId()
Returns:
the domain id of the service offering

getCpuNumber

public int getCpuNumber()
Returns:
the number of CPU

getCpuSpeed

public int getCpuSpeed()
Returns:
the clock rate CPU speed in Mhz

getMemory

public int getMemory()
Returns:
the memory in MB

supportsHA

public boolean supportsHA()
Returns:
the ha support in the service offering

getStorageType

public StorageType getStorageType()
Returns:
the storage type for this service offering

isDefaultUse

public boolean isDefaultUse()
Returns:
whether this is a default system vm offering

getHostTags

public String getHostTags()
Returns:
the host tag for the service offering

isSystemOffering

public boolean isSystemOffering()
Returns:
whether this is a system vm offering

isCpuUseLimited

public boolean isCpuUseLimited()
Returns:
whether restrict the CPU usage to committed service offering

getNetworkRate

public long getNetworkRate()
Returns:
data transfer rate in megabits per second allowed.

isSystemVmType

public boolean isSystemVmType()
Returns:
whether this is a the systemvm type for system vm offering

getTags

public Set<String> getTags()
Returns:
the tags for the service offering

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(ServiceOffering arg0)
Specified by:
compareTo in interface Comparable<ServiceOffering>


Copyright © 2009-2012 jclouds. All Rights Reserved.