Package io.activej.jmx
Class AbstractAttributeNodeForLeaf
java.lang.Object
io.activej.jmx.AbstractAttributeNodeForLeaf
- All Implemented Interfaces:
AttributeNode
- Direct Known Subclasses:
AttributeNodeForList,AttributeNodeForMap,AttributeNodeForThrowable,AttributeNodeForType
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAttributeNodeForLeaf(String name, @Nullable String description, ValueFetcher fetcher, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectaggregateAttribute(String attrName, List<?> sources) It's guaranteed that list of sources is not empty, and it doesn't contain null valuesaggregateAttributes(Set<String> attrNames, List<?> sources) final voidapplyModifier(String attrName, AttributeModifier<?> modifier, List<?> target) final StringgetName()final voidhideNullPojos(List<?> sources) final booleanfinal voidsetVisible(String attrName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.jmx.AttributeNode
getAllRefreshables, getOpenTypes, isSettable, setAttribute
-
Field Details
-
name
-
fetcher
-
-
Constructor Details
-
AbstractAttributeNodeForLeaf
protected AbstractAttributeNodeForLeaf(String name, @Nullable @Nullable String description, ValueFetcher fetcher, boolean visible)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceAttributeNode
-
getAllAttributes
- Specified by:
getAllAttributesin interfaceAttributeNode
-
getVisibleAttributes
- Specified by:
getVisibleAttributesin interfaceAttributeNode
-
getDescriptions
- Specified by:
getDescriptionsin interfaceAttributeNode
-
aggregateAttributes
- Specified by:
aggregateAttributesin interfaceAttributeNode
-
aggregateAttribute
It's guaranteed that list of sources is not empty, and it doesn't contain null values- Parameters:
attrName- name of attribute whose value returnsources- attributes- Returns:
- value of attribute with name attrName
-
isVisible
public final boolean isVisible()- Specified by:
isVisiblein interfaceAttributeNode
-
setVisible
- Specified by:
setVisiblein interfaceAttributeNode
-
hideNullPojos
- Specified by:
hideNullPojosin interfaceAttributeNode
-
applyModifier
- Specified by:
applyModifierin interfaceAttributeNode
-