Class MetricsRegionServerSourceFactoryImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceFactoryImpl
- All Implemented Interfaces:
MetricsRegionServerSourceFactory
@Private
public class MetricsRegionServerSourceFactoryImpl
extends Object
implements MetricsRegionServerSourceFactory
Factory to create MetricsRegionServerSource when given a MetricsRegionServerWrapper
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateIO
(MetricsIOWrapper wrapper) Create a MetricsIOSource from a MetricsIOWrapper.createRegion
(MetricsRegionWrapper wrapper) Create a MetricsRegionSource from a MetricsRegionWrapper.createServer
(MetricsRegionServerWrapper regionServerWrapper) Given a wrapper create a MetricsRegionServerSource.createTable
(String table, MetricsTableWrapperAggregate wrapper) Create a MetricsTableSource from a MetricsTableWrapper.createUser
(String shortUserName) Create a MetricsUserSource from a userGet a MetricsHeapMemoryManagerSourceprivate MetricsRegionAggregateSourceImpl
Get a MetricsTableAggregateSourceReturn the singleton instance for MetricsUserAggregateSource
-
Constructor Details
-
MetricsRegionServerSourceFactoryImpl
public MetricsRegionServerSourceFactoryImpl()
-
-
Method Details
-
getRegionAggregate
-
getUserAggregate
Description copied from interface:MetricsRegionServerSourceFactory
Return the singleton instance for MetricsUserAggregateSource- Specified by:
getUserAggregate
in interfaceMetricsRegionServerSourceFactory
- Returns:
- A metrics user aggregate source
-
getTableAggregate
Description copied from interface:MetricsRegionServerSourceFactory
Get a MetricsTableAggregateSource- Specified by:
getTableAggregate
in interfaceMetricsRegionServerSourceFactory
- Returns:
- A metrics table aggregate source
-
getHeapMemoryManager
Description copied from interface:MetricsRegionServerSourceFactory
Get a MetricsHeapMemoryManagerSource- Specified by:
getHeapMemoryManager
in interfaceMetricsRegionServerSourceFactory
- Returns:
- A metrics heap memory manager source
-
createServer
Description copied from interface:MetricsRegionServerSourceFactory
Given a wrapper create a MetricsRegionServerSource.- Specified by:
createServer
in interfaceMetricsRegionServerSourceFactory
- Parameters:
regionServerWrapper
- The wrapped region server- Returns:
- a Metrics Source.
-
createRegion
Description copied from interface:MetricsRegionServerSourceFactory
Create a MetricsRegionSource from a MetricsRegionWrapper.- Specified by:
createRegion
in interfaceMetricsRegionServerSourceFactory
- Parameters:
wrapper
- The wrapped region- Returns:
- A metrics region source
-
createTable
Description copied from interface:MetricsRegionServerSourceFactory
Create a MetricsTableSource from a MetricsTableWrapper.- Specified by:
createTable
in interfaceMetricsRegionServerSourceFactory
- Parameters:
table
- The table namewrapper
- The wrapped table aggregate- Returns:
- A metrics table source
-
createIO
Description copied from interface:MetricsRegionServerSourceFactory
Create a MetricsIOSource from a MetricsIOWrapper.- Specified by:
createIO
in interfaceMetricsRegionServerSourceFactory
- Returns:
- A metrics IO source
-
createUser
Description copied from interface:MetricsRegionServerSourceFactory
Create a MetricsUserSource from a user- Specified by:
createUser
in interfaceMetricsRegionServerSourceFactory
- Returns:
- A metrics user source
-