private static final class RegionProcedureStorePerformanceEvaluation.MockServer extends Object implements org.apache.hadoop.hbase.Server
Modifier and Type | Field and Description |
---|---|
private boolean |
abort |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.ServerName |
serverName |
Constructor and Description |
---|
MockServer(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e) |
org.apache.hadoop.hbase.client.Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.ChoreService |
getChoreService() |
org.apache.hadoop.hbase.client.ClusterConnection |
getClusterConnection() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.client.Connection |
getConnection() |
org.apache.hadoop.hbase.CoordinatedStateManager |
getCoordinatedStateManager() |
org.apache.hadoop.hbase.ServerName |
getServerName() |
org.apache.hadoop.hbase.zookeeper.ZKWatcher |
getZooKeeper() |
boolean |
isAborted() |
boolean |
isStopped() |
void |
stop(String why) |
private final org.apache.hadoop.conf.Configuration conf
private final org.apache.hadoop.hbase.ServerName serverName
private volatile boolean abort
public MockServer(org.apache.hadoop.conf.Configuration conf)
public void abort(String why, Throwable e)
abort
in interface org.apache.hadoop.hbase.Abortable
public boolean isAborted()
isAborted
in interface org.apache.hadoop.hbase.Abortable
public boolean isStopped()
isStopped
in interface org.apache.hadoop.hbase.Stoppable
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.zookeeper.ZKWatcher getZooKeeper()
getZooKeeper
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.client.Connection getConnection()
getConnection
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection
in interface org.apache.hadoop.hbase.Server
IOException
public org.apache.hadoop.hbase.client.ClusterConnection getClusterConnection()
getClusterConnection
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.ServerName getServerName()
getServerName
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.ChoreService getChoreService()
getChoreService
in interface org.apache.hadoop.hbase.Server
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.