Package org.apache.accumulo.test.manager
Class SuspendedTabletsIT.HostAndPortRegexTableLoadBalancer
- java.lang.Object
-
- org.apache.accumulo.core.spi.balancer.TableLoadBalancer
-
- org.apache.accumulo.core.spi.balancer.HostRegexTableLoadBalancer
-
- org.apache.accumulo.test.manager.SuspendedTabletsIT.HostAndPortRegexTableLoadBalancer
-
- All Implemented Interfaces:
TabletBalancer
- Enclosing class:
- SuspendedTabletsIT
public static class SuspendedTabletsIT.HostAndPortRegexTableLoadBalancer extends HostRegexTableLoadBalancer
A version ofHostRegexTableLoadBalancer
that includes the tablet server port in addition to the host name when checking regular expressions. This is useful for testing when multiple tablet servers are running on the same host and one wishes to make pools from the tablet servers on that host.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.balancer.TabletBalancer
TabletBalancer.AssignmentParameters, TabletBalancer.BalanceParameters
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.core.spi.balancer.HostRegexTableLoadBalancer
DEFAULT_POOL, HOST_BALANCER_OOB_CHECK_KEY, HOST_BALANCER_OUTSTANDING_MIGRATIONS_KEY, HOST_BALANCER_PREFIX, HOST_BALANCER_REGEX_MAX_MIGRATIONS_KEY, HOST_BALANCER_REGEX_USING_IPS_KEY
-
Fields inherited from class org.apache.accumulo.core.spi.balancer.TableLoadBalancer
environment
-
-
Constructor Summary
Constructors Constructor Description HostAndPortRegexTableLoadBalancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
balance(TabletBalancer.BalanceParameters params)
protected List<String>
getPoolNamesForHost(TabletServerId tabletServerId)
-
Methods inherited from class org.apache.accumulo.core.spi.balancer.HostRegexTableLoadBalancer
getAssignments, getMaxMigrations, getMaxOutstandingMigrations, getNameFromIp, getOnlineTabletsForTable, getOobCheckMillis, getPoolNameForTable, getPoolNameToRegexPattern, init, isIpBasedRegex, splitCurrentByRegex, toString
-
Methods inherited from class org.apache.accumulo.core.spi.balancer.TableLoadBalancer
getBalancerForTable, getLoadBalancerClassNameForTable
-
-
-
-
Method Detail
-
getPoolNamesForHost
protected List<String> getPoolNamesForHost(TabletServerId tabletServerId)
- Overrides:
getPoolNamesForHost
in classHostRegexTableLoadBalancer
-
balance
public long balance(TabletBalancer.BalanceParameters params)
- Specified by:
balance
in interfaceTabletBalancer
- Overrides:
balance
in classHostRegexTableLoadBalancer
-
-