@ThreadSafe public abstract class Metrics extends Object
| Modifier and Type | Field and Description |
|---|---|
private ObjectName |
name |
private boolean |
registered |
| Modifier | Constructor and Description |
|---|---|
protected |
Metrics(CdcSourceTaskContext taskContext,
String contextName) |
protected |
Metrics(CommonConnectorConfig connectorConfig,
String contextName) |
| Modifier and Type | Method and Description |
|---|---|
ObjectName |
metricName(String connectorType,
String connectorName,
String contextName)
Create a JMX metric name for the given metric.
|
void |
register(org.slf4j.Logger logger)
Registers a metrics MBean into the platform MBean server.
|
void |
unregister(org.slf4j.Logger logger)
Unregisters a metrics MBean from the platform MBean server.
|
private final ObjectName name
private volatile boolean registered
protected Metrics(CdcSourceTaskContext taskContext, String contextName)
protected Metrics(CommonConnectorConfig connectorConfig, String contextName)
public void register(org.slf4j.Logger logger)
public final void unregister(org.slf4j.Logger logger)
public ObjectName metricName(String connectorType, String connectorName, String contextName)
contextName - the name of the contextMalformedObjectNameException - if the name is invalidCopyright © 2020 JBoss by Red Hat. All rights reserved.