Package org.apache.accumulo.server
Class AbstractServer
- java.lang.Object
-
- org.apache.accumulo.server.AbstractServer
-
- All Implemented Interfaces:
AutoCloseable,Runnable,MetricsProducer
public abstract class AbstractServer extends Object implements AutoCloseable, MetricsProducer, Runnable
-
-
Field Summary
Fields Modifier and Type Field Description protected StringapplicationName-
Fields inherited from interface org.apache.accumulo.core.metrics.MetricsProducer
LOG, METRICS_COMPACTOR_MAJC_STUCK, METRICS_COMPACTOR_PREFIX, METRICS_FATE_ERRORS, METRICS_FATE_OPS_ACTIVITY, METRICS_FATE_PREFIX, METRICS_FATE_TOTAL_IN_PROGRESS, METRICS_FATE_TX, METRICS_FATE_TYPE_IN_PROGRESS, METRICS_GC_CANDIDATES, METRICS_GC_DELETED, METRICS_GC_ERRORS, METRICS_GC_FINISHED, METRICS_GC_IN_USE, METRICS_GC_POST_OP_DURATION, METRICS_GC_PREFIX, METRICS_GC_RUN_CYCLE, METRICS_GC_STARTED, METRICS_GC_WAL_CANDIDATES, METRICS_GC_WAL_DELETED, METRICS_GC_WAL_ERRORS, METRICS_GC_WAL_FINISHED, METRICS_GC_WAL_IN_USE, METRICS_GC_WAL_STARTED, METRICS_LOW_MEMORY, METRICS_MAJC_PAUSED, METRICS_MAJC_PREFIX, METRICS_MAJC_QUEUED, METRICS_MAJC_RUNNING, METRICS_MINC_PAUSED, METRICS_MINC_PREFIX, METRICS_MINC_QUEUED, METRICS_MINC_RUNNING, METRICS_PROPSTORE_EVICTION_COUNT, METRICS_PROPSTORE_LOAD_TIMER, METRICS_PROPSTORE_PREFIX, METRICS_PROPSTORE_REFRESH_COUNT, METRICS_PROPSTORE_REFRESH_LOAD_COUNT, METRICS_PROPSTORE_ZK_ERROR_COUNT, METRICS_SCAN_BUSY_TIMEOUT, METRICS_SCAN_CLOSE, METRICS_SCAN_CONTINUE, METRICS_SCAN_OPEN_FILES, METRICS_SCAN_PAUSED_FOR_MEM, METRICS_SCAN_PREFIX, METRICS_SCAN_RESULTS, METRICS_SCAN_RETURN_FOR_MEM, METRICS_SCAN_START, METRICS_SCAN_TIMES, METRICS_SCAN_YIELDS, METRICS_THRIFT_EXECUTE, METRICS_THRIFT_IDLE, METRICS_THRIFT_PREFIX, METRICS_TSERVER_ENTRIES, METRICS_TSERVER_HOLD, METRICS_TSERVER_INGEST_BYTES, METRICS_TSERVER_INGEST_MUTATIONS, METRICS_TSERVER_MAJC_QUEUED, METRICS_TSERVER_MAJC_RUNNING, METRICS_TSERVER_MAJC_STUCK, METRICS_TSERVER_MEM_ENTRIES, METRICS_TSERVER_MINC_QUEUED, METRICS_TSERVER_MINC_RUNNING, METRICS_TSERVER_MINC_TOTAL, METRICS_TSERVER_PREFIX, METRICS_TSERVER_QUERIES, METRICS_TSERVER_SCAN_RESULTS, METRICS_TSERVER_SCAN_RESULTS_BYTES, METRICS_TSERVER_SCANNED_ENTRIES, METRICS_TSERVER_TABLETS_FILES, METRICS_TSERVER_TABLETS_LONG_ASSIGNMENTS, METRICS_TSERVER_TABLETS_ONLINE, METRICS_TSERVER_TABLETS_OPENING, METRICS_TSERVER_TABLETS_UNOPENED, METRICS_UPDATE_COMMIT, METRICS_UPDATE_COMMIT_PREP, METRICS_UPDATE_ERRORS, METRICS_UPDATE_MUTATION_ARRAY_SIZE, METRICS_UPDATE_PREFIX, METRICS_UPDATE_WALOG_WRITE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractServer(String appName, ConfigOpts opts, String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()AccumuloConfigurationgetConfiguration()ServerContextgetContext()StringgetHostname()voidregisterMetrics(io.micrometer.core.instrument.MeterRegistry registry)CalledvoidrunServer()Run this server in a main thread-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.metrics.MetricsProducer
getMetricFields
-
-
-
-
Field Detail
-
applicationName
protected final String applicationName
-
-
Constructor Detail
-
AbstractServer
protected AbstractServer(String appName, ConfigOpts opts, String[] args)
-
-
Method Detail
-
runServer
public void runServer() throws ExceptionRun this server in a main thread- Throws:
Exception
-
registerMetrics
public void registerMetrics(io.micrometer.core.instrument.MeterRegistry registry)
Called- Specified by:
registerMetricsin interfaceMetricsProducer
-
getHostname
public String getHostname()
-
getContext
public ServerContext getContext()
-
getConfiguration
public AccumuloConfiguration getConfiguration()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-