Package org.apache.accumulo.tserver
Class TabletServer
- java.lang.Object
-
- org.apache.accumulo.server.AbstractServer
-
- org.apache.accumulo.tserver.TabletServer
-
- All Implemented Interfaces:
AutoCloseable
,Runnable
public class TabletServer extends AbstractServer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
TabletServer.AssignmentHandler
-
Field Summary
Fields Modifier and Type Field Description static AtomicLong
seekCount
-
Method Summary
-
Methods inherited from class org.apache.accumulo.server.AbstractServer
close, getConfiguration, getContext, getHostname, getMetricsSystem, runServer
-
-
-
-
Field Detail
-
seekCount
public static final AtomicLong seekCount
-
-
Method Detail
-
getScanMetrics
public TabletServerScanMetrics getScanMetrics()
-
getMinCMetrics
public TabletServerMinCMetrics getMinCMetrics()
-
getInstanceID
public String getInstanceID()
-
getVersion
public String getVersion()
-
updateTotalQueuedMutationSize
public long updateTotalQueuedMutationSize(long additionalMutationSize)
-
getSession
public Session getSession(long sessionId)
-
executeSplit
public void executeSplit(Tablet tablet)
-
enqueueMasterMessage
public void enqueueMasterMessage(MasterMessage m)
-
getLock
public ZooLock getLock()
-
run
public void run()
-
verifyTabletInformation
public static Pair<org.apache.hadoop.io.Text,KeyExtent> verifyTabletInformation(ServerContext context, KeyExtent extent, TServerInstance instance, SortedMap<Key,Value> tabletsKeyValues, String clientAddress, ZooLock lock) throws DistributedStoreException, AccumuloException
-
getClientAddressString
public String getClientAddressString()
-
getTabletSession
public TServerInstance getTabletSession()
-
getStats
public TabletServerStatus getStats(Map<TableId,MapCounter<ScanRunState>> scanCounts)
-
minorCompactionFinished
public void minorCompactionFinished(CommitSession tablet, long walogSeq) throws IOException
- Throws:
IOException
-
minorCompactionStarted
public void minorCompactionStarted(CommitSession tablet, long lastUpdateSequence, String newMapfileLocation) throws IOException
- Throws:
IOException
-
recover
public void recover(VolumeManager fs, KeyExtent extent, List<LogEntry> logEntries, Set<String> tabletFiles, MutationReceiver mutationReceiver) throws IOException
- Throws:
IOException
-
createLogId
public int createLogId()
-
getTableConfiguration
public TableConfiguration getTableConfiguration(KeyExtent extent)
-
getServerConfig
public DfsLogger.ServerResources getServerConfig()
-
getFileSystem
public VolumeManager getFileSystem()
-
getOpeningCount
public int getOpeningCount()
-
getUnopenedCount
public int getUnopenedCount()
-
getTotalMinorCompactions
public long getTotalMinorCompactions()
-
getHoldTimeMillis
public double getHoldTimeMillis()
-
getSecurityOperation
public SecurityOperation getSecurityOperation()
-
addNewLogMarker
public void addNewLogMarker(DfsLogger copy) throws WalStateManager.WalMarkerException
-
walogClosed
public void walogClosed(DfsLogger currentLog) throws WalStateManager.WalMarkerException
-
updateBulkImportState
public void updateBulkImportState(List<String> files, BulkImportState state)
-
getMajorCompactionReadLimiter
public final RateLimiter getMajorCompactionReadLimiter()
Get theRateLimiter
for reads during major compactions on this tserver. All writes performed during major compactions are throttled to conform to this RateLimiter.
-
getMajorCompactionWriteLimiter
public final RateLimiter getMajorCompactionWriteLimiter()
Get the RateLimiter for writes during major compactions on this tserver. All reads performed during major compactions are throttled to conform to this RateLimiter.
-
-