Package org.jclouds.glesys.domain
Class ServerStatus
- java.lang.Object
-
- org.jclouds.glesys.domain.ServerStatus
-
public class ServerStatus extends Object
Detailed information server status including hardware usage (cpu, memory and disk), bandwidth and up-time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerStatus.Builder<T extends ServerStatus.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerStatus(Server.State state, ResourceStatus cpu, ResourceStatus memory, ResourceStatus disk, ServerUptime uptime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerStatus.Builder<?>
builder()
boolean
equals(Object obj)
ResourceStatus
getCpu()
ResourceStatus
getDisk()
ResourceStatus
getMemory()
Server.State
getState()
ServerUptime
getUptime()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
ServerStatus.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
ServerStatus
@ConstructorProperties({"state","cpu","memory","disk","uptime"}) protected ServerStatus(Server.State state, @Nullable ResourceStatus cpu, @Nullable ResourceStatus memory, @Nullable ResourceStatus disk, @Nullable ServerUptime uptime)
-
-
Method Detail
-
builder
public static ServerStatus.Builder<?> builder()
-
toBuilder
public ServerStatus.Builder<?> toBuilder()
-
getState
@Nullable public Server.State getState()
- Returns:
- the state of the server (e.g. "running")
-
getCpu
@Nullable public ResourceStatus getCpu()
- Returns:
- CPU usage information
-
getMemory
@Nullable public ResourceStatus getMemory()
- Returns:
- details of memory usage and limits
-
getDisk
@Nullable public ResourceStatus getDisk()
- Returns:
- details of disk usage and limits
-
getUptime
@Nullable public ServerUptime getUptime()
- Returns:
- the uptime of the server
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-