public interface ResourceDeclarer<T extends ResourceDeclarer>
Modifier and Type | Method and Description |
---|---|
T |
addSharedMemory(SharedMemory request)
Add in request for shared memory that this component will use.
|
T |
setCPULoad(Number amount)
Set the amount of CPU load for this component.
|
T |
setMemoryLoad(Number onHeap)
Set the amount of on heap memory for this component.
|
T |
setMemoryLoad(Number onHeap,
Number offHeap)
Set the amount of memory for this component on and off heap.
|
T setMemoryLoad(Number onHeap)
onHeap
- the amount of on heap memoryT setMemoryLoad(Number onHeap, Number offHeap)
onHeap
- the amount of on heap memoryoffHeap
- the amount of off heap memoryT setCPULoad(Number amount)
amount
- the amount of CPUT addSharedMemory(SharedMemory request)
SharedOnHeap
, SharedOffHeapWithinNode
, and SharedOffHeapWithinWorker
for convenient ways to create shared memory requests.request
- the shared memory request for this componentCopyright © 2023 The Apache Software Foundation. All rights reserved.