public abstract static class ResourceStatus.Builder<T extends ResourceStatus.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
max |
protected String |
unit |
protected double |
usage |
Constructor and Description |
---|
ResourceStatus.Builder() |
Modifier and Type | Method and Description |
---|---|
ResourceStatus |
build() |
T |
fromResourceUsage(ResourceStatus in) |
T |
max(double max) |
protected abstract T |
self() |
T |
unit(String unit) |
T |
usage(double usage) |
protected double usage
protected double max
protected String unit
protected abstract T self()
public T usage(double usage)
ResourceStatus.getUsage()
public T max(double max)
ResourceStatus.getMax()
public T unit(String unit)
ResourceStatus.getUnit()
public ResourceStatus build()
public T fromResourceUsage(ResourceStatus in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.