Package org.jclouds.glesys.domain
Class ServerStatus.Builder<T extends ServerStatus.Builder<T>>
- java.lang.Object
-
- org.jclouds.glesys.domain.ServerStatus.Builder<T>
-
- Enclosing class:
- ServerStatus
public abstract static class ServerStatus.Builder<T extends ServerStatus.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceStatus
cpu
protected ResourceStatus
disk
protected ResourceStatus
memory
protected Server.State
state
protected ServerUptime
uptime
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ServerStatus
build()
T
cpu(ResourceStatus cpu)
T
disk(ResourceStatus disk)
T
fromServerStatus(ServerStatus in)
T
memory(ResourceStatus memory)
protected abstract T
self()
T
state(Server.State state)
T
uptime(ServerUptime uptime)
-
-
-
Field Detail
-
state
protected Server.State state
-
cpu
protected ResourceStatus cpu
-
memory
protected ResourceStatus memory
-
disk
protected ResourceStatus disk
-
uptime
protected ServerUptime uptime
-
-
Method Detail
-
self
protected abstract T self()
-
state
public T state(Server.State state)
- See Also:
ServerStatus.getState()
-
cpu
public T cpu(ResourceStatus cpu)
- See Also:
ServerStatus.getCpu()
-
memory
public T memory(ResourceStatus memory)
- See Also:
ServerStatus.getMemory()
-
disk
public T disk(ResourceStatus disk)
- See Also:
ServerStatus.getDisk()
-
uptime
public T uptime(ServerUptime uptime)
- See Also:
ServerStatus.getUptime()
-
build
public ServerStatus build()
-
fromServerStatus
public T fromServerStatus(ServerStatus in)
-
-