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.
- See Also:
ServerStatus
@ConstructorProperties(value={"state","cpu","memory","disk","uptime"})
protected ServerStatus(Server.State state,
@Nullable
ResourceStatus cpu,
@Nullable
ResourceStatus memory,
@Nullable
ResourceStatus disk,
@Nullable
ServerUptime uptime)
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
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.