@InterfaceAudience.Private public class MasterClusterInfoProvider extends Object implements ClusterInfoProvider
| Constructor and Description |
|---|
MasterClusterInfoProvider(MasterServices services) |
public MasterClusterInfoProvider(MasterServices services)
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface ClusterInfoProviderpublic Connection getConnection()
getConnection in interface ClusterInfoProviderpublic List<RegionInfo> getAssignedRegions()
getAssignedRegions in interface ClusterInfoProviderpublic void unassign(RegionInfo regionInfo) throws IOException
unassign in interface ClusterInfoProviderIOExceptionpublic TableDescriptor getTableDescriptor(TableName tableName) throws IOException
getTableDescriptor in interface ClusterInfoProviderIOExceptionpublic HDFSBlocksDistribution computeHDFSBlocksDistribution(org.apache.hadoop.conf.Configuration conf, TableDescriptor tableDescriptor, RegionInfo regionInfo) throws IOException
computeHDFSBlocksDistribution in interface ClusterInfoProviderIOExceptionpublic boolean hasRegionReplica(Collection<RegionInfo> regions) throws IOException
hasRegionReplica in interface ClusterInfoProviderIOExceptionpublic List<ServerName> getOnlineServersList()
getOnlineServersList in interface ClusterInfoProviderpublic List<ServerName> getOnlineServersListWithPredicator(List<ServerName> servers, Predicate<ServerMetrics> filter)
getOnlineServersListWithPredicator in interface ClusterInfoProviderpublic Map<ServerName,List<RegionInfo>> getSnapShotOfAssignment(Collection<RegionInfo> regions)
getSnapShotOfAssignment in interface ClusterInfoProviderpublic int getNumberOfTables()
throws IOException
getNumberOfTables in interface ClusterInfoProviderIOExceptionpublic boolean isOffPeakHour()
isOffPeakHour in interface ClusterInfoProviderpublic void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
onConfigurationChange in interface ConfigurationObserverpublic void recordBalancerDecision(Supplier<BalancerDecision> decision)
recordBalancerDecision in interface ClusterInfoProviderpublic void recordBalancerRejection(Supplier<BalancerRejection> rejection)
recordBalancerRejection in interface ClusterInfoProviderpublic ServerMetrics getLoad(ServerName serverName)
getLoad in interface ClusterInfoProviderCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.