public class DefaultMigrationAddressComparator extends Object implements MigrationAddressComparator
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_ADDRESS_SIZE |
static String |
OLD_ADDRESS_SIZE |
| Constructor and Description |
|---|
DefaultMigrationAddressComparator() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Integer> |
getAddressSize(String displayServiceKey) |
<T> boolean |
shouldMigrate(ClusterInvoker<T> newInvoker,
ClusterInvoker<T> oldInvoker,
MigrationRule rule) |
public static final String OLD_ADDRESS_SIZE
public static final String NEW_ADDRESS_SIZE
public <T> boolean shouldMigrate(ClusterInvoker<T> newInvoker, ClusterInvoker<T> oldInvoker, MigrationRule rule)
shouldMigrate in interface MigrationAddressComparatorpublic Map<String,Integer> getAddressSize(String displayServiceKey)
getAddressSize in interface MigrationAddressComparatorCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.