Package org.apache.hadoop.hbase.master
Class MasterRegionServerList
java.lang.Object
org.apache.hadoop.hbase.master.MasterRegionServerList
- All Implemented Interfaces:
RegionServerList
MasterRegion
based RegionServerList
.
This is useful when we want to restart a cluster with only the data on file system, as when
restarting, we need to get the previous live region servers for scheduling SCP. Before we have
this class, we need to scan the WAL directory on WAL file system to find out the previous live
region servers, which means we can not restart a cluster without the previous WAL file system,
even if we have flushed all the data.
Please see HBASE-26245 for more details.-
Field Summary
Modifier and TypeFieldDescriptionprivate final Abortable
private static final org.slf4j.Logger
private final MasterRegion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
expired
(ServerName sn) Called when a region server is dead.getAll()
Get all live region servers.void
started
(ServerName sn) Called when a region server join the cluster.
-
Field Details
-
LOG
-
region
-
abortable
-
-
Constructor Details
-
MasterRegionServerList
-
-
Method Details
-
started
Description copied from interface:RegionServerList
Called when a region server join the cluster.- Specified by:
started
in interfaceRegionServerList
-
expired
Description copied from interface:RegionServerList
Called when a region server is dead.- Specified by:
expired
in interfaceRegionServerList
-
getAll
Description copied from interface:RegionServerList
Get all live region servers.- Specified by:
getAll
in interfaceRegionServerList
- Throws:
IOException
-