public abstract static class ServerStatus.Builder<T extends ServerStatus.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected ResourceStatus |
cpu |
protected ResourceStatus |
disk |
protected ResourceStatus |
memory |
protected Server.State |
state |
protected ServerUptime |
uptime |
Constructor and Description |
---|
ServerStatus.Builder() |
Modifier and Type | Method and 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) |
protected Server.State state
protected ResourceStatus cpu
protected ResourceStatus memory
protected ResourceStatus disk
protected ServerUptime uptime
protected abstract T self()
public T state(Server.State state)
ServerStatus.getState()
public T cpu(ResourceStatus cpu)
ServerStatus.getCpu()
public T memory(ResourceStatus memory)
ServerStatus.getMemory()
public T disk(ResourceStatus disk)
ServerStatus.getDisk()
public T uptime(ServerUptime uptime)
ServerStatus.getUptime()
public ServerStatus build()
public T fromServerStatus(ServerStatus in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.