Class ReplicationMetrics
- java.lang.Object
-
- org.apache.accumulo.server.metrics.AbstractMetricsImpl
-
- org.apache.accumulo.master.metrics.ReplicationMetrics
-
- All Implemented Interfaces:
ReplicationMetricsMBean,Metrics
public class ReplicationMetrics extends AbstractMetricsImpl implements ReplicationMetricsMBean
JMX bindings to expose 'high-level' metrics about Replication
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.server.metrics.AbstractMetricsImpl
AbstractMetricsImpl.Metric
-
-
Field Summary
-
Fields inherited from interface org.apache.accumulo.server.metrics.Metrics
MASTER_NAME, PREFIX, THRIFT_NAME, TSERVER_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxReplicationThreads()The total number of threads available to replicate data to peers.protected StringgetMetricsPrefix()intgetNumConfiguredPeers()Peers are systems which data can be replicated to.intgetNumFilesPendingReplication()A system may have multiple Replication targets, each of which have a queue of files to be replicated.protected ObjectNamegetObjectName()-
Methods inherited from class org.apache.accumulo.server.metrics.AbstractMetricsImpl
add, createMetric, finalize, getMetricAvg, getMetricCount, getMetricMax, getMetricMin, isEnabled, register, register
-
-
-
-
Method Detail
-
getNumFilesPendingReplication
public int getNumFilesPendingReplication()
Description copied from interface:ReplicationMetricsMBeanA system may have multiple Replication targets, each of which have a queue of files to be replicated. This returns the sum across all targets, not de-duplicating files.- Specified by:
getNumFilesPendingReplicationin interfaceReplicationMetricsMBean- Returns:
- The number of files pending replication across all targets
-
getNumConfiguredPeers
public int getNumConfiguredPeers()
Description copied from interface:ReplicationMetricsMBeanPeers are systems which data can be replicated to. This is the number of peers that are defined, but this is not necessarily the number of peers which are actively being replicated to.- Specified by:
getNumConfiguredPeersin interfaceReplicationMetricsMBean- Returns:
- The number of peers/targets which are defined for data to be replicated to.
-
getMaxReplicationThreads
public int getMaxReplicationThreads()
Description copied from interface:ReplicationMetricsMBeanThe total number of threads available to replicate data to peers. Each TabletServer has a number of threads devoted to replication, so this value is affected by the number of currently active TabletServers.- Specified by:
getMaxReplicationThreadsin interfaceReplicationMetricsMBean- Returns:
- The number of threads available to replicate data across the instance
-
getObjectName
protected ObjectName getObjectName()
- Specified by:
getObjectNamein classAbstractMetricsImpl
-
getMetricsPrefix
protected String getMetricsPrefix()
- Specified by:
getMetricsPrefixin classAbstractMetricsImpl
-
-