public class CustomLoadMetric<T extends CustomLoadMetric<T>> extends Object
Constructor and Description |
---|
CustomLoadMetric(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
attributeClass()
Class name to use to construct a load metric from.
|
T |
attributeClass(String value)
Class name to use to construct a load metric from.
|
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() |
String |
module()
Module name from which to load the load metric class.
|
T |
module(String value)
Module name from which to load the load metric class.
|
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
|
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 CustomLoadMetric(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Double capacity()
public T capacity(Double value)
public String attributeClass()
public T attributeClass(String value)
public String module()
public Map property()
public T property(String key, Object value)
public Integer weight()
Copyright © 2020 JBoss by Red Hat. All rights reserved.