Package org.openstack4j.model.compute
Interface SimpleTenantUsage.ServerUsage
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
NovaSimpleTenantUsage.NovaServerUsage
- Enclosing interface:
- SimpleTenantUsage
public static interface SimpleTenantUsage.ServerUsage extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetEndedAt()StringgetFlavor()doublegetHours()StringgetInstanceId()intgetLocalDiskSize()intgetMemoryMb()StringgetName()DategetStartedAt()Server.StatusgetState()StringgetTenantId()intgetUptime()intgetVcpus()
-
-
-
Method Detail
-
getInstanceId
String getInstanceId()
- Returns:
- the instance id of the server
-
getUptime
int getUptime()
- Returns:
- the uptime of the server
-
getStartedAt
Date getStartedAt()
- Returns:
- the date the server was started or null
-
getEndedAt
Date getEndedAt()
- Returns:
- the date the server was last stopped or null
-
getMemoryMb
int getMemoryMb()
- Returns:
- the memory used for the server in MB
-
getTenantId
String getTenantId()
- Returns:
- the tenant assigned to the server
-
getState
Server.Status getState()
- Returns:
- the state
-
getHours
double getHours()
- Returns:
- the hours of usage
-
getVcpus
int getVcpus()
- Returns:
- the Virtual CPUs used
-
getFlavor
String getFlavor()
- Returns:
- the flavor assigned to the server
-
getLocalDiskSize
int getLocalDiskSize()
- Returns:
- the local disk size in GB
-
getName
String getName()
- Returns:
- the name of the server
-
-