Class DummyClusterInfoProvider
java.lang.Object
org.apache.hadoop.hbase.master.balancer.DummyClusterInfoProvider
- All Implemented Interfaces:
org.apache.hadoop.hbase.conf.ConfigurationObserver
,org.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
public class DummyClusterInfoProvider
extends Object
implements org.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.HDFSBlocksDistribution
computeHDFSBlocksDistribution
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.client.RegionInfo>
org.apache.hadoop.conf.Configuration
org.apache.hadoop.hbase.client.Connection
org.apache.hadoop.hbase.ServerMetrics
getLoad
(org.apache.hadoop.hbase.ServerName serverName) int
List<org.apache.hadoop.hbase.ServerName>
List<org.apache.hadoop.hbase.ServerName>
getOnlineServersListWithPredicator
(List<org.apache.hadoop.hbase.ServerName> servers, Predicate<org.apache.hadoop.hbase.ServerMetrics> filter) getSnapShotOfAssignment
(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) org.apache.hadoop.hbase.client.TableDescriptor
getTableDescriptor
(org.apache.hadoop.hbase.TableName tableName) boolean
hasRegionReplica
(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) boolean
void
onConfigurationChange
(org.apache.hadoop.conf.Configuration conf) void
recordBalancerDecision
(Supplier<org.apache.hadoop.hbase.client.BalancerDecision> decision) void
recordBalancerRejection
(Supplier<org.apache.hadoop.hbase.client.BalancerRejection> rejection) void
unassign
(org.apache.hadoop.hbase.client.RegionInfo regionInfo)
-
Field Details
-
conf
-
-
Constructor Details
-
DummyClusterInfoProvider
-
-
Method Details
-
getConfiguration
- Specified by:
getConfiguration
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
getConnection
- Specified by:
getConnection
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
getAssignedRegions
- Specified by:
getAssignedRegions
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
unassign
- Specified by:
unassign
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
- Throws:
IOException
-
getTableDescriptor
public org.apache.hadoop.hbase.client.TableDescriptor getTableDescriptor(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getTableDescriptor
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
- Throws:
IOException
-
getNumberOfTables
- Specified by:
getNumberOfTables
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
- Throws:
IOException
-
computeHDFSBlocksDistribution
public org.apache.hadoop.hbase.HDFSBlocksDistribution computeHDFSBlocksDistribution(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException - Specified by:
computeHDFSBlocksDistribution
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
- Throws:
IOException
-
hasRegionReplica
public boolean hasRegionReplica(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) throws IOException - Specified by:
hasRegionReplica
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
- Throws:
IOException
-
getOnlineServersList
- Specified by:
getOnlineServersList
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
getOnlineServersListWithPredicator
public List<org.apache.hadoop.hbase.ServerName> getOnlineServersListWithPredicator(List<org.apache.hadoop.hbase.ServerName> servers, Predicate<org.apache.hadoop.hbase.ServerMetrics> filter) - Specified by:
getOnlineServersListWithPredicator
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
getSnapShotOfAssignment
public Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> getSnapShotOfAssignment(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) - Specified by:
getSnapShotOfAssignment
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
isOffPeakHour
- Specified by:
isOffPeakHour
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
recordBalancerDecision
public void recordBalancerDecision(Supplier<org.apache.hadoop.hbase.client.BalancerDecision> decision) - Specified by:
recordBalancerDecision
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
recordBalancerRejection
public void recordBalancerRejection(Supplier<org.apache.hadoop.hbase.client.BalancerRejection> rejection) - Specified by:
recordBalancerRejection
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-
onConfigurationChange
- Specified by:
onConfigurationChange
in interfaceorg.apache.hadoop.hbase.conf.ConfigurationObserver
-
getLoad
- Specified by:
getLoad
in interfaceorg.apache.hadoop.hbase.master.balancer.ClusterInfoProvider
-