Package org.apache.accumulo.tserver
Class TabletServer
- java.lang.Object
-
- org.apache.accumulo.core.client.impl.ClientContext
-
- org.apache.accumulo.server.AccumuloServerContext
-
- org.apache.accumulo.tserver.TabletServer
-
- All Implemented Interfaces:
Runnable
public class TabletServer extends AccumuloServerContext implements Runnable
-
-
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
-
Fields inherited from class org.apache.accumulo.core.client.impl.ClientContext
conn, inst
-
-
Constructor Summary
Constructors Constructor Description TabletServer(ServerConfigurationFactory confFactory, VolumeManager fs)
-
Method Summary
-
Methods inherited from class org.apache.accumulo.server.AccumuloServerContext
getConnector, getSaslParams, getSecretManager, getServerConfigurationFactory, getServerSslParams, getThriftServerType, setSecretManager
-
Methods inherited from class org.apache.accumulo.core.client.impl.ClientContext
convertClientConfig, getClientSslParams, getClientTimeoutInMillis, getConfiguration, getCredentials, getInstance, rpcCreds, setCredentials
-
-
-
-
Field Detail
-
seekCount
public static final AtomicLong seekCount
-
-
Constructor Detail
-
TabletServer
public TabletServer(ServerConfigurationFactory confFactory, VolumeManager fs) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getScanMetrics
public Metrics getScanMetrics()
-
getMinCMetrics
public Metrics getMinCMetrics()
-
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()
-
verifyTabletInformation
public static Pair<org.apache.hadoop.io.Text,KeyExtent> verifyTabletInformation(AccumuloServerContext context, KeyExtent extent, TServerInstance instance, SortedMap<Key,Value> tabletsKeyValues, String clientAddress, ZooLock lock) throws AccumuloSecurityException, DistributedStoreException, AccumuloException
-
getClientAddressString
public String getClientAddressString()
-
getReplicationAddressSTring
public String getReplicationAddressSTring()
-
getTabletSession
public TServerInstance getTabletSession()
-
config
public void config(String hostname)
-
getStats
public TabletServerStatus getStats(Map<String,MapCounter<ScanRunState>> scanCounts)
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
minorCompactionFinished
public void minorCompactionFinished(CommitSession tablet, String newDatafile, 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, TableConfiguration tconf, 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()
-
getOnlineTablets
public Collection<Tablet> getOnlineTablets()
-
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 compations on this tserver. All reads performed during major compactions are throttled to conform to this RateLimiter.
-
-