@InterfaceAudience.LimitedPrivate(value="Configuration") public class RegionServerFlushTableProcedureManager extends RegionServerProcedureManager
HRegionServer
.Modifier and Type | Class and Description |
---|---|
class |
RegionServerFlushTableProcedureManager.FlushTableSubprocedureBuilder |
Modifier and Type | Field and Description |
---|---|
static int |
FLUSH_REQUEST_THREADS_DEFAULT |
static String |
FLUSH_REQUEST_THREADS_KEY |
static String |
FLUSH_REQUEST_WAKE_MILLIS_KEY |
static long |
FLUSH_TIMEOUT_MILLIS_DEFAULT |
static String |
FLUSH_TIMEOUT_MILLIS_KEY |
Constructor and Description |
---|
RegionServerFlushTableProcedureManager() |
Modifier and Type | Method and Description |
---|---|
Subprocedure |
buildSubprocedure(String table)
If in a running state, creates the specified subprocedure to flush table regions.
|
String |
getProcedureSignature()
Return the unique signature of the procedure.
|
void |
initialize(RegionServerServices rss)
Initialize this region server flush procedure manager
Uses a zookeeper based member controller.
|
void |
start()
Start accepting flush table requests.
|
void |
stop(boolean force)
Close this and all running tasks
|
equals, hashCode
public static final String FLUSH_REQUEST_THREADS_KEY
public static final int FLUSH_REQUEST_THREADS_DEFAULT
public static final String FLUSH_TIMEOUT_MILLIS_KEY
public static final long FLUSH_TIMEOUT_MILLIS_DEFAULT
public static final String FLUSH_REQUEST_WAKE_MILLIS_KEY
public RegionServerFlushTableProcedureManager()
public void start()
start
in class RegionServerProcedureManager
public void stop(boolean force) throws IOException
stop
in class RegionServerProcedureManager
force
- forcefully stop all running tasksIOException
public Subprocedure buildSubprocedure(String table)
table
- public void initialize(RegionServerServices rss) throws org.apache.zookeeper.KeeperException
initialize
in class RegionServerProcedureManager
rss
- region serverorg.apache.zookeeper.KeeperException
- if the zookeeper cannot be reachedpublic String getProcedureSignature()
ProcedureManager
getProcedureSignature
in class ProcedureManager
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.