public class LoadMetric<T extends LoadMetric<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LoadMetric.Type |
Constructor and Description |
---|
LoadMetric(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Double |
capacity()
Maximum capacity of the metric used to normalize the load values from a
metric which require explicit capacity.
|
T |
capacity(Double value)
Maximum capacity of the metric used to normalize the load values from a
metric which require explicit capacity.
|
String |
getKey() |
Map |
property()
Properties to apply on a loaded metric instance.
|
T |
property(Map value)
Properties to apply on a loaded metric instance.
|
T |
property(String key,
Object value)
Properties to apply on a loaded metric instance.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
LoadMetric.Type |
type()
Type of a built-in load metric from the enumerated values.
|
T |
type(LoadMetric.Type value)
Type of a built-in load metric from the enumerated values.
|
Integer |
weight()
Number indicating the significance of a metric with respect to the other
metrics.
|
T |
weight(Integer value)
Number indicating the significance of a metric with respect to the other
metrics.
|
public LoadMetric(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Double capacity()
public T capacity(Double value)
public Map property()
public T property(String key, Object value)
public LoadMetric.Type type()
public T type(LoadMetric.Type value)
public Integer weight()
Copyright © 2020 JBoss by Red Hat. All rights reserved.