public class DynamicLoadProvider<T extends DynamicLoadProvider<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DynamicLoadProvider.DynamicLoadProviderResources
Child mutators for DynamicLoadProvider
|
Constructor and Description |
---|
DynamicLoadProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
customLoadMetric(CustomLoadMetric value)
Add the CustomLoadMetric object to the list of subresources
|
T |
customLoadMetric(CustomLoadMetricSupplier supplier)
Install a supplied CustomLoadMetric object to the list of subresources
|
T |
customLoadMetric(String childKey)
Create and configure a CustomLoadMetric object to the list of
subresources
|
T |
customLoadMetric(String childKey,
CustomLoadMetricConsumer consumer)
Create and configure a CustomLoadMetric object to the list of
subresources
|
T |
customLoadMetrics(List<CustomLoadMetric> value)
Add all CustomLoadMetric objects to this subresource
|
Double |
decay()
The factor by which a historic load values should degrade in
significance.
|
T |
decay(Double value)
The factor by which a historic load values should degrade in
significance.
|
String |
getKey() |
Integer |
history()
The number of historic (previous) load values to consider in the load
balance factor computation.
|
T |
history(Integer value)
The number of historic (previous) load values to consider in the load
balance factor computation.
|
T |
loadMetric(LoadMetric value)
Add the LoadMetric object to the list of subresources
|
T |
loadMetric(LoadMetricSupplier supplier)
Install a supplied LoadMetric object to the list of subresources
|
T |
loadMetric(String childKey)
Create and configure a LoadMetric object to the list of subresources
|
T |
loadMetric(String childKey,
LoadMetricConsumer consumer)
Create and configure a LoadMetric object to the list of subresources
|
T |
loadMetrics(List<LoadMetric> value)
Add all LoadMetric objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
DynamicLoadProvider.DynamicLoadProviderResources |
subresources() |
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public DynamicLoadProvider.DynamicLoadProviderResources subresources()
public T loadMetrics(List<LoadMetric> value)
value
- List of LoadMetric objects.public T loadMetric(LoadMetric value)
value
- The LoadMetric to addpublic T loadMetric(String childKey, LoadMetricConsumer consumer)
key
- The key for the LoadMetric resourceconfig
- The LoadMetricConsumer to usepublic T loadMetric(String childKey)
key
- The key for the LoadMetric resourcepublic T loadMetric(LoadMetricSupplier supplier)
public T customLoadMetrics(List<CustomLoadMetric> value)
value
- List of CustomLoadMetric objects.public T customLoadMetric(CustomLoadMetric value)
value
- The CustomLoadMetric to addpublic T customLoadMetric(String childKey, CustomLoadMetricConsumer consumer)
key
- The key for the CustomLoadMetric resourceconfig
- The CustomLoadMetricConsumer to usepublic T customLoadMetric(String childKey)
key
- The key for the CustomLoadMetric resourcepublic T customLoadMetric(CustomLoadMetricSupplier supplier)
public Double decay()
public T decay(Double value)
public Integer history()
Copyright © 2019 JBoss by Red Hat. All rights reserved.