public final class MonitoringUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MonitoringUtils.LegacyMonitoringName
Annotation for legacy monitoring names.
|
Modifier and Type | Method and Description |
---|---|
static String |
findValueForAttributeInDn(String attributeName,
Dn dn)
Returns the value of the provided attribute if it is present in the provided Dn or
null if the dn does
not contain any Ava for the attribute. |
static Dn |
getDomainName(Entry e)
Returns the domain name extracted from the monitoring entry.
|
static AttributeParser |
parseAttribute(Entry e,
String... attrDescs)
Parses the attribute description, successively trying the provided monitoring attribute names until one returns a
non-
null attribute. |
public static AttributeParser parseAttribute(Entry e, String... attrDescs)
null
attribute.
You can provide the current attribute name and then the legacy ones.
e
- the entryattrDescs
- the attribute descriptions to try one after the otherpublic static Dn getDomainName(Entry e)
e
- the entryCopyright 2010-2018 ForgeRock AS.