@PublicAPI(stability=VOLATILE, mayExtend=true) public abstract class MonitorProvider extends Object implements MeterBinder
Modifier and Type | Field and Description |
---|---|
protected MeterRegistryHolder |
registry
The possibly null meter registry holder.
|
Constructor and Description |
---|
MonitorProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addMonitorObjectClassNames(Attribute objectClassAttribute)
Adds to the provided attribute the objectclass names that should be included in the monitor entry created from
this monitor provider.
|
void |
bindTo(MeterRegistry registry) |
protected abstract Dn |
computeMonitorInstanceDn()
Returns the monitor instance DN for this monitor provider.
|
static Dn |
configurationDnToMonitorDn(Dn configDn)
Convenience method for mapping a component's configuration DN to its equivalent monitoring DN.
|
void |
deregisterAll()
Deregisters all the meters registered by this monitor provider.
|
Entry |
getMonitorEntry()
Generates and returns a monitor entry based on the contents of this monitor provider.
|
Dn |
getMonitorInstanceDn()
Returns the DN of this monitor provider.
|
String |
toString() |
protected MeterRegistryHolder registry
bindTo(MeterRegistry)
method.public static Dn configurationDnToMonitorDn(Dn configDn)
For example, a component with the name cn=LDAP,cn=Connection Handlers,cn=config
will be mapped to cn=LDAP,cn=Connection Handlers,cn=monitor
.
configDn
- The component's configuration DN.public final Dn getMonitorInstanceDn()
protected abstract Dn computeMonitorInstanceDn()
protected abstract void addMonitorObjectClassNames(Attribute objectClassAttribute)
objectClassAttribute
- the objectClass attribute where to add the object class namespublic void bindTo(MeterRegistry registry)
bindTo
in interface MeterBinder
public void deregisterAll()
public Entry getMonitorEntry()
Copyright 2010-2018 ForgeRock AS.