public interface ResourceDeclarer<T extends ResourceDeclarer>
This is a new base interface that can be used by anything that wants to mirror RAS’s basic API. Trident uses this to allow setting resources in the Stream API.
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)
Set the amount of on heap memory for this component.
onHeap
- the amount of on heap memoryT setMemoryLoad(Number onHeap, Number offHeap)
Set the amount of memory for this component on and off heap.
onHeap
- the amount of on heap memoryoffHeap
- the amount of off heap memoryT setCPULoad(Number amount)
Set the amount of CPU load for this component.
amount
- the amount of CPUT addSharedMemory(SharedMemory request)
Add in request for shared memory that this component will use. See SharedOnHeap
, SharedOffHeapWithinNode
, and SharedOffHeapWithinWorker
for convenient ways to create shared memory requests.
request
- the shared memory request for this componentCopyright © 2022 The Apache Software Foundation. All rights reserved.