@Address(value="/subsystem=modcluster/proxy=*/load-provider=dynamic/custom-load-metric=*") public class CustomLoadMetric<T extends CustomLoadMetric<T>> extends Object implements Keyed
| 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 void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="capacity") public Double capacity()
public T capacity(Double value)
@ModelNodeBinding(detypedName="class") public String attributeClass()
public T attributeClass(String value)
@ModelNodeBinding(detypedName="module") public String module()
@ModelNodeBinding(detypedName="property") public Map property()
public T property(String key, Object value)
@ModelNodeBinding(detypedName="weight") public Integer weight()
Copyright © 2019 JBoss by Red Hat. All rights reserved.