public class DefaultResourceDeclarer<T extends DefaultResourceDeclarer> extends Object implements ResourceDeclarer<T>, ITridentResource
Constructor and Description |
---|
DefaultResourceDeclarer() |
Modifier and Type | Method and Description |
---|---|
Map<String,Number> |
getResources() |
T |
setCPULoad(Number amount) |
T |
setMemoryLoad(Number onHeap) |
T |
setMemoryLoad(Number onHeap,
Number offHeap) |
public T setMemoryLoad(Number onHeap)
setMemoryLoad
in interface ResourceDeclarer<T extends DefaultResourceDeclarer>
public T setMemoryLoad(Number onHeap, Number offHeap)
setMemoryLoad
in interface ResourceDeclarer<T extends DefaultResourceDeclarer>
public T setCPULoad(Number amount)
setCPULoad
in interface ResourceDeclarer<T extends DefaultResourceDeclarer>
public Map<String,Number> getResources()
getResources
in interface ITridentResource
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.